Improve the source code from class lecture (see the starter code) to display error messages if the user enters non numeric values. Also, the program needs to present the user with an error message if the initial deposit is more than their financial goal ($10,000).
Note: In order to get full credit for this exercise, you need to:
Sample Program Run:
Enter your initial deposit $: [ user enters 1800]
Your initial $1800 needs 287 years to mature to $10020.6
Another Sample Program Run:
Enter your initial deposit $: [user enters -1]
Invalid input!
Please enter your initial deposit (less than $10K): [user enters 0]
Invalid input!
Please enter your initial deposit (less than $10K): [user enters 8000]
Your initial $8000 needs 38 years to mature to $10041.8
Using a while loop write a program to compute the sum of numbers between 20 and 25
Problem = write a program that takes as input from the user three sides of a triangle(numbers),checks and displays whether the triangle is right angled triangle or not?
Write a program that will ask user to enter a digit character (i.e. ‘0’ or ‘1’ .... or ‘9’). If user
enters a non-digit character then the program should display message to re-enter correct input. If user
enters a correct character (i.e. a digit character) then your program should convert that character to
a same digit but in integer type. Do this for five inputs. Finally, add all digits and display their sum. Do
not use any library function or loops.
A New Telephone Company has the following rate structure for long distance calls:
● The regular rate for a call is $0.10 per minute. (10 marks)
● Any call started at or after 6:00P.M. (1800 hours) but before 8:00A.M. (0800 hours) is discounted 50 percent.
● Any call longer than 60 minutes receives a 15 percent discount on its cost (after any other discount is subtracted).
● All calls are subject to a 4 percent federal tax on their final cost.
Write a program that reads the start time for a call based on a 24-hour clock and the length of the call. The gross cost (before any discounts or tax) should be printed, followed by the net cost (after discounts are deducted and tax is added). Print instructions to the user and compute the net cost.
Write a program which takes a 9-digit number input from user, converts it into its reverse and then display one of the following statements: (
• Original number is x steps bigger (where x is the difference between the two) •
Reversed number is x steps bigger
• Both numbers are equal; hence it is a palindrome.
Write a complete C++ program that will prompt name, gender (M or F), age (in years) and marital status (single or married) for each student in FISE and calculate the numbers of married men, single men, married women and single women. Printthese numbers on a student summary report. If any single men are over 30 years of age, print their names and ages on a separate eligible bachelor’s report.
Write a program that will ask user to enter a digit character (i.e. ‘0’ or ‘1’ .... or ‘9’). If user enters a non-digit character then the program should display message to re-enter correct input. If user enters a correct character (i.e. a digit character) then your program should convert that character to a same digit but in integer type. Do this for five inputs. Finally, add all digits and display their sum. Do not use any library function or loops
Write a complete C++ program
a) that will prompt the number of the pancake produce per day, the thickness in mm (millimetres) and the diameter in cm (centimetres) of each pancake,
b) to identify and display minimum and maximum for both dimensions,
c) to calculate and display the average for both the dimensions
Write a program to create a class which name is rectangle and also creat two data members Wich data type is float and calculate area of triangle which formula is(area=1/2 *base*height) uses constructor