Question: C++ Write C++ programs for the following problems. Ensure that your program compiles and runs correctly. Upload the .cpp files. Make sure to use constants
C++
Write C++ programs for the following problems. Ensure that your program compiles and runs correctly. Upload the .cpp files. Make sure to use constants where necessary and your variable names are descriptive.
1)mathTutor.cpp
Write a C++ program that can be used as a math teacher for a young student. The program should display two random numbers in the range 0 - 999 inclusive that are to be added, such as:
247 + 129 =
The program should wait for the student to enter the answer. If the answer is correct, a message of congratulations should be printed. If the answer is incorrect, a message should be printed showing the correct answer.
2)mobileService.cpp
A mobile phone service provider has three different data plans for its customers:
| Package | Price per month |
| Package A | For $39.99 per month, 4 gigabytes are provided. Additional data costs $10 per gigabyte. |
| Package B | For $59.99 per month, 8 gigabytes are provided. Additional data costs $5 per gigabyte. |
| Package C | For $69.99 per month, unlimited data is provided. |
Write a C++ program that calculates a customers monthly bill. It should ask which package the customer has purchased and how many gigabytes were used. It should then display the total amount due.
Input Validation: Be sure the user only selects package A, B, or C.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
