C++ programming Project

Ukończone Opublikowano Oct 27, 2015 Płatność przy odbiorze
Ukończone Płatność przy odbiorze

write desired code in c++ ;

1. Solve the problems a), b) and c) below:

a) The Ski Our Mountain ski resort provides four types of tickets for its customers: season tickets for the whole season, monthly tickets for certain months, daily ticket for a whole day, and half-day tickets for 4 hours starting between 9 am and 1 pm on the day. Implement a base class Ticket and derived classes as needed to represent the tickets of Ski Our Mountain. Write a virtual method is_Valid with suitable arguments that checks whether a ticket is valid at a certain moment. In the test program fill a vector of Ticket pointers with the addresses of dynamically allocated Ticketobjects containing ticket data read from a file. Your input file should contain an unordered sequence of at least 15 tickets, some for overlapping time intervals. Have the user enter a date and time and print out a list of tickets valid at this oment. Use sequential search.

b) Implement Quick Sort as a template function and sort a partial copy of your Ticket* vector, containing only half-day tickets by date and time. Have the user enter a date and print out a list of tickets for that date. Use binary search to find a ticket for that date, and linear search around this ticket to find all tickets for that date.

c) Change the doubly-linked list class from Chapter 12 of the textbook (file [url removed, login to view]) to accommodate nodes containing Ticket pointers. Create a linked list of half-day tickets ordered by the ticket date and time from the appointments in your original Ticket * vector, by inserting them in appropriate positions, one at a time, into a linked list that is originally empty. In the printout show how the list is filled ticket by ticket.

2. Implement and test a Stack class of integers using the doubly-linked list class from Chapter 12 of the textbook (file [url removed, login to view]) as a superclass. Use private inheritance. Supply operations size, push, pop, and top.

3. Implement and test a Queue class of integers using a private data member of type the doubly-linked list class from Chapter 12 of the textbook (file [url removed, login to view]). Supply operations size, enque, deque, front, and back.

Algorytmy Programowanie C Programowanie w C++ Java Matematyka

Numer ID Projektu: #8773925

O projekcie

3 ofert Zdalny projekt Aktywny Oct 27, 2015

Przyznany użytkownikowi:

void93

Hi there! I'm perfect for this work as I'm very fluent in c++ and have developed many projects in c++. this project of yours looks like a interesting project and I'm fully confident that I can do this in minimum amou Więcej

$30 USD w ciągu 3 dni
(3 ocen)
1.4

3 freelancerów złożyło ofertę za $32 w tym projekcie

ironceo

This is very easy. I can finish your project perfectly. The doubly-linked list is not complex. Please contact me.

$37 USD w ciągu 3 dni
(0 Oceny)
0.0
SANAMS

IIT GUWAHATI STUDENT, BTECH IN ECE , GOOD PROGRAMMING SKILLS, C++ IS MY BEST CODING SKILL. I CAN MAKE ANY PROGRAM IN THIS

$30 USD w ciągu 3 dni
(0 Oceny)
0.0