Ditutup

Postal Bar Code

Project Description

For this part of the project, you will add a menu to your program in Part 2 and add functionality to create and display mailing labels by reading input from a text file. The menu should be the first thing that is displayed when your program is run. Allow the user to continue making choices until they choose the option to quit. Redisplay the menu before prompting the user for a menu option. See the Sample Output for how your menu should look.

Invalid menu choices should be validated. If the user enters an invalid menu option, your program should give them an error message that explains what they did wrong and redisplay the menu with a prompt to enter a different option number. This process should continue until the user enters a valid option number. In addition, your program should validate the user’s input for type of item to be mailed. If the user enters any number other than 1, 2 or 3, your program should give them an error message that explains what they did wrong and prompt them to enter a different number. This process should continue until the user enters valid data.

The multiple mailings option of your menu should read a text file named [url removed, login to view] and display to the console all the information that was displayed in Project 2 for each mailing in the file. When the user selects the multiple mailings option, the mailing labels should be created and displayed for every mailing in the file without the user needing to do anything else. The [url removed, login to view] file contains 5 mailings, but your program must be able to process an identically formatted file with any number of mailings.

If a user selects the multiple mailings option, your program should calculate and display the total cost of all the postage in the text file. After displaying all the mailing labels, display the total amount of postage owed. Format the total cost of the postage in dollars and cents. See Sample Output.

Instructions:

1. Add a menu to offer the user a choice of mailing a single item, mailing multiple items or quitting the program. The menu should be the first thing displayed when your program begins executing. The menu format should match the one in the Sample Output.

2. Allow the user to continue making menu choices until they choose the option to quit. Always display the menu before prompting the user for a menu option.

3. Properly handle an invalid menu choice.

4. Validate the user’s input for type of mailing.

5. Add functionality to create and display mailing labels by reading input from the [url removed, login to view] text file. Make sure your program can process an identically formatted file containing any number of mailings.

6. Calculate and display the total cost of all the postage in the text file. Make sure your program will correctly calculate the total cost no matter how many mailings are in the text file.

7. Bonus Pts (5pts). Follow all the instructions above. Add functionality to also display the postage cost of the mailing with the largest amount of postage owed. Your code MUST be efficient and work no matter how many mailings are in the text file.

Kemahiran: Pengaturcaraan C++

Lihat lagi: will do anything for 5 dollars, how to quit, do anything for 5 dollars, anything for 5 dollars, 5 dollars to do anything

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #10118490

6 pekerja bebas membida secara purata $29 untuk pekerjaan ini

Weebside

Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you. We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction. Lagi

$30 USD dalam sehari
(138 Ulasan)
4.7
SahibYar

Dear Valued Customer I am a C++/C# developer for about 5+ year in a software development industry building cross platforms software. Knows all the minor details of C++ and C# including lambda expressions, managed co Lagi

$28 USD dalam sehari
(22 Ulasan)
3.9
$25 USD dalam sehari
(2 Ulasan)
1.2
TomerSh

3 years experience in C++ programming, this project appears to be a very simple task, I have no doubt I can complete it easily.

$25 USD dalam sehari
(1 Ulasan)
0.6
terminull

Hi, I have plenty of experience in C++. I see this is a school assignment of some sort, I have a bachelor's of computer science which will obviously help a lot. Here is my resume [login to view URL] Lagi

$40 USD dalam sehari
(0 Ulasan)
0.0
gcoolmoon

i will do it fast and make it attractive with all the functionality stated. And if you have comments will correct them fast.

$25 USD dalam sehari
(0 Ulasan)
0.0