Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The question is: Write a program that can be used as a math tutor for a young student. The program should display two random numbers

image text in transcribed
The question is:
Write a program that can be used as a math tutor for a young student. The program should display two random numbers 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.
CIS 2541: C++ Language Programming Lab Assignment Name: Lab Assignment Due Date (end of class) Points #3- Making Decisions 02/07/2018 Math Tutor Problem 1pts. 2 pts. random numbers4pts. 12pts. 3 pts. 5 pts. 3 pts. 20 pts header variables input calculations display Sample Output Total LabAssignmentnActivities Create a C++ program to solve the Chapter 4 Programming Challenge 11 (Math Tutor) on page 224 of your textbook. a) Include the following additional design requirements in your code: Add a block comment at the top of the file to identify your name, file, date, class, assignment, and short description of the program. The program should display two random integer numbers (in the range of 500 to 1500, inclusive) that are to be added, in the aligned format given below 547 + 1249 Use output manipulators, not tabs or spaces, to align your output. The program should prompt and wait for the student to enter the answer. If the incorrect, print an error message showing the correct answer. answer is correct, print a message of congratulations. If the answer is b) Compile the source code until there are no syntax errors. Run the program with a sample set of data and compare your expected results with the actual output. Debug as needed to ensure accurate output c) Run the application with a correct and incorrect response. d) Copy and paste the generated output of a correct and incorrect response as a multi-line comment at the end of your code file. e) Upload a copy of your source code file as a multi-line comment to the appropriate Blackboard assignment. The upload link will disappear after the due date/time and reappear at the next class period for late submission. College of DuPage CREngland

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

Students also viewed these Databases questions

Question

consider how quantitative data can contribute to your research;

Answered: 1 week ago

Question

draw appropriate conclusions based on your data.

Answered: 1 week ago

Question

make sense of basic terminology used in quantitative data analysis;

Answered: 1 week ago