Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Needed in C++ USE FUNCTIONS. I also need a menu to be able to test all of your functions within the code. You can put

Needed in C++

USE FUNCTIONS. I also need a menu to be able to test all of your functions within the code. You can put all of your exception classes in one file or have them in their own files. If you submit more than one file, compress the files in one ZIP file. DO NOT submit one file per function. ALL functions must be in one file.

1. Write a function for the following problem: Ask the user for a series of numbers entered from the keyboard. Use a sentinel value such as 999 to end the input process. If the entered values are not numbers, throw an exception and ask the user again making sure that only integers are allowed as input. Calculate and display the total of the numbers entered by the user.

2. Write a function that converts the characters in a given string using conversion criteria known as the International Civil Aviation Organization (ICAO) alphabet. For a list of the conversion process, see http://www.icao.int/Pages/AlphabetRadiotelephony.aspx Handle the exception when a character in a given string is not in the alphabet. You need to display a message such as Invalid letter and also display the offending character. Allow for user input. A continuous loop is needed for the testing process.

3. We like to be able to prompt the user to enter a persons date of birth in numeric form such as 1-1-2000. The program outputs the date of birth in the form: January 1, 2000. The program should contain 3 exception classes: invalidDay, invalidMonth, and invalidYear. If the user enters an invalid value for day, throw and catch an invalidDay object. Follow the same process for invalid month and invalid year. Note that an invalid year is any year before 1970. Note that you must also be able to handle a leap year. I need various input scenarios to fully test the code. A continuous menu will be required to allow for testing the code.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions