Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ple program. 2. The following program contains a few errors. Type the code into your IDE and correct all the mistakes. When your program successfully

ple program. 2. The following program contains a few errors. Type the code into your IDE and correct all the mistakes. When your program successfully compiles, it should produce the Desired Output listed below. Windows users should save the file as Debug lastname.cpp where lastname is replaced with your actual last name. Mac users should leave the file name as main.cpp Your code should be neatly formatted to include whitespace and indentation. /Debug.cp /this program needs some help! include use namespace std; number = value + 4; int Main() ( cout < "The num stored in the variable value is value"; int num; int Value; cout <; value = 36 count >> value "is stored in the variable num return Desired Output: The number stored in the variable value is 36 40 is stored in the variable num Press any key to continue . . . 3. Modify your code to include the following steps: Add a variable, result that will store an integer value Create another variable , newNum, that has an initial value of 10. Perform the following calculation replacing all values with their associated variable: Result = 36 + 4 * (36 /4) 40/10 Display the result with a label 4. Add a comment to the top of your program that includes your name. Add additional detailed comments to your program code explaining what the program is doing. 5. Create a flowchart of your program showing each step. The flowchart can be handwritten or created with a program such as Word, Excel or VISIO. 6. Attach your completed Debug lastname.cpp (Windows users) or main.cpp (Mac users) file and flowchart to the Learning Unit 1 Assessment Link.

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions