How to creat this program in C++

How to creat this program in C++

Page 1 of 1

10 Replies - 3484 Views - Last Post: 09 August 2008 - 09:34 AM Rate Topic: **--- 1 Votes

#1 Brain  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 08-August 08

How to creat this program in C++

Post icon  Posted 08 August 2008 - 07:53 AM

Project Title: Daewoo (a Bus service) Reservation System Project Description:This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation.The Daewoo Reservation System will ask the user for the following information :
· Name of passenger
· Departure City
· Destination City
· Date of travel
· Time of travel
· Number of tickets
The Daewoo Reservation System should have the following features:

1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.

2. Modify reservation-to modify the already made reservation

3. Cancel reservation-to cancel a particular reservation

4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
B) Date of travel

5. Exit –to exit from applicationDaewoo Reservation System should also support persistence for passenger ticket reservation recordsSupporting simple persistence by any application requires handling of two scenarios
· On start up of application-data (passenger ticket reservation records) must be read from file.
· On end/finish up of application -data (passenger ticket reservation records) must be saved in file.

Is This A Good Question/Topic? 0
  • +

Replies To: How to creat this program in C++

#2 AmitTheInfinity  Icon User is offline

  • C Surfing ∞
  • member icon

Reputation: 119
  • View blog
  • Posts: 1,565
  • Joined: 25-January 07

Re: How to creat this program in C++

Posted 08 August 2008 - 07:57 AM

Step 1: Open C compatible IDE
Step 2: Create New File with extension .c
Step 3: Write main() function and other required functions for given problem
Step 4: Compile the program and see if it's fine, else correct the errors.
Step 5: Run the program.
Step 6: You are done!!!


I hope this will help you. :D
Was This Post Helpful? 0
  • +
  • -

#3 Xarver  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 60
  • Joined: 06-August 08

Re: How to creat this program in C++

Posted 08 August 2008 - 07:59 AM

Okay, this sounds like homework.

Oh, and show some effort.
Sounds like your trying to make us program this for you
and we get absolutely nothing out of it.

~ Xarver :rolleyes:
Was This Post Helpful? 0
  • +
  • -

#4 Techno Mage  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 86
  • Joined: 10-June 07

Re: How to creat this program in C++

Posted 08 August 2008 - 08:11 AM

I'm wondering who has homework in the summer? Well, my girlfriend's got some summer homework but still, it's pretty unusual.
Was This Post Helpful? 0
  • +
  • -

#5 Brain  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 08-August 08

Re: How to creat this program in C++

Posted 09 August 2008 - 06:14 AM

That was a challange for me and i throw this to you. But i thik no one here is so competent. That's why replies are nothing just look like lame excuses to hide their ignorance and guilty. Anyway Its OK. :v:
Was This Post Helpful? 0
  • +
  • -

#6 red_4900  Icon User is offline

  • Code T(h)inkers
  • member icon

Reputation: 21
  • View blog
  • Posts: 1,120
  • Joined: 22-February 08

Re: How to creat this program in C++

Posted 09 August 2008 - 06:45 AM

rules :

[rules][/rules]

challenge for us? what a lame excuses. do you have *insert your name here*?

This post has been edited by red_4900: 09 August 2008 - 06:45 AM

Was This Post Helpful? 0
  • +
  • -

#7 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: How to creat this program in C++

Posted 09 August 2008 - 07:29 AM

View PostBrain, on 9 Aug, 2008 - 06:14 AM, said:

That was a challange for me and i throw this to you. But i thik no one here is so competent. That's why replies are nothing just look like lame excuses to hide their ignorance and guilty. Anyway Its OK. :v:


LOL!!!

I always love it when people take this approach. "No one will do my homework for me because its too hard for them. Woe is me!"

BTW: if anyone did post a program for you, I or another moderator would have deleted the code since the rules of the site do not allow them to give away answers to homework questions to people who have shown no effort.

Your homework assignment is so common that you could easily have got a code base to start from with a simple google search. You are too lazy to even put a little effort into cheating.
Was This Post Helpful? 0
  • +
  • -

#8 DTR  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 33
  • Joined: 07-August 08

Re: How to creat this program in C++

Posted 09 August 2008 - 08:59 AM

Why are you even bothering with this stuff?

If you are a CS student, you should really just sit down and do some research. There are many ways you can accomplish this assignment. Others are pretty, others are not.

In this case the most important thing for you is to actually try the assignment instead of outsourcing it here.


If you are in High school, I doubt that course you are on is compulsory. In this case, I don't see any reason why you should attend this class, that is no doubt going to get even more advanced?
Was This Post Helpful? 0
  • +
  • -

#9 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: How to creat this program in C++

Posted 09 August 2008 - 09:02 AM

Well said!!! It only gets harder form here, so if you are unwilling to work at it at this level, what are you going to do when the assignments are actually difficult?
Was This Post Helpful? 0
  • +
  • -

#10 Guest_Whizzy*


Reputation:

Re: How to creat this program in C++

Posted 09 August 2008 - 09:06 AM

View PostBrain, on 9 Aug, 2008 - 06:14 AM, said:

[b]That was a challange for me and i throw this to you.


So, apperantly, it was to much of a challenge for you. Because you thre it on these fine gents... Your approach is appauling, however, I'll give you the benefiet of the doubt. How to create a program.

The first thing you need to do, is figure out all the program should look from the users perspective, write it down on Paper if you need too.
create a flow chart that will cover all your needed functions, data you will need to work withand so on...

Go into your editor and set up all your inital values.

· Name of passenger
· Departure City
· Destination City
· Date of travel
· Time of travel
· Number of tickets

Set up these values (even if they are empty)



The Daewoo Reservation System should have the following features:

Consider a feature as a function. For each feature, expect to write one, or more functions designed to accomplish this task.

1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.

Here: You need Name, ticket number, seat number, time, and date.
Input the name, have your system generate a ticket number, and assign a seat. Return those values to the screen

2. Modify reservation-to modify the already made reservation

Write your function to allow a customer to be pulled up by name, and re-assign the seat, time, date, and or ticket number.

3. Cancel reservation-to cancel a particular reservation

Write a function to delete the required information and return those values as "available" so the system can re-use them.

4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
Date of travel

This function would be a search through your arrays to match and display your information.


5. Exit –to exit from applicationDaewoo Reservation System should also support persistence for passenger ticket reservation recordsSupporting simple persistence by any application requires handling of two scenarios

This function will allow you to write the proper information into your file.

· On start up of application-data (passenger ticket reservation records) must be read from file.
· On end/finish up of application -data (passenger ticket reservation records) must be saved in file.


Now, Go write your program. Don't worry about the errors. When you get this much written come back and post it, and these guys will help you with your errors. (Even though with your attitude, they shouldn't) They are professionals.
Was This Post Helpful? 0

#11 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3120
  • View blog
  • Posts: 19,163
  • Joined: 14-September 07

Re: How to creat this program in C++

Posted 09 August 2008 - 09:34 AM

\o/ drama!!!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1