473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to get a program to display entered information?

1
I am making a program for a train ticket. I have done it up until the program needs to display the completed ticket. The completed ticket has the following:

BOARDED AT
Stop no. _____ Stop name __________________
No. Adults _____ No. of Children ___ No. of OAP’s ____
Adult fare _____ Child fare ___ OAP’s fare ____
Cost Adults _____ Cost Children ___ Cost of OAP’s ____
Total no. persons _____ Total fares paid ___
TRAVELLING TO
Stop no. _____ Stop name ___________________

In the program I have already declared the stops, and no. of children, adult fare etc. But I don't know how I can get the program to show the information already inputted by the user. When it asks for the departure and destination stop no, etc what code to use to be able to show what has already been inputted.
Also how to display the total of a calculation in the total fare and cost adults as I have already written the calculation within the code.
Dec 28 '10 #1
1 1794
whodgson
542 512MB
Declare each heading on the ticket as a variable.
e.g Stop no.(heading) == int stop_no (variable)
Now the ticket will read:-
cout<<"Stop no. "<<stop_no<<etc
Dec 29 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Omer Ahmad | last post by:
Hi All, I've been working with python for about 6 months now, and have been very impressed with the size and scope of the libraries. I have, however, run into a bit of a problem. I...
2
by: pothik05 | last post by:
Hi: I have created a custom Attribute for the assembly and lets call it AssemblyAbc. I want it to be displayed with the other Assembly Information. If you right click the dll, click Properties...
1
by: jm001 | last post by:
Hi, I am creating a database that will hold contact information plus additional information on different tables. ID on contact will auto assign. I want to have the system prompt for ID and...
1
by: JL | last post by:
Hi all, I want to display a processing result after processed by popup windows, for example, i want to display the login name and login password in pop up window after user applied the new...
1
by: Cammie Watson | last post by:
Hi there, I have an .aspx page which I use to gather various pieces of information from the user. One of the fields is a free text field for address or optionally the user can type in a...
2
by: Stephen | last post by:
Hi, Suppose there is a column in the dataset that is a very large field (say varchar(500)) and i want to display partial information with (....) so that the user can click on it to view for...
2
by: vbezard | last post by:
Hello, I have compiled my program with COFF Debug information. When I use the dumpbin.exe utility, I can see that the line numbers, and my symbols are exported. So, the linker has done his job,...
0
by: biganimal | last post by:
I have a program and I want the program to be able to save question/answers so the program actually gets smarter without getting amnesia everytime its started. Can anyone help??? # questor.py ...
0
by: sos | last post by:
I am new to VBasic - I understand that forms are used to enter data, but it would be nice for the person entering to see some summarizing information derived from all inputted data on the screen...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.