Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Program ASSIGNMENT 1- Fix the code This code has errors. Do not delete lines, Do not add lines. Only fix lines if needed.//add comment
C++
Program ASSIGNMENT 1- Fix the code This code has errors. Do not delete lines, Do not add lines. Only fix lines if needed.//add comment to end of ine describing fix. Compile good code, Put Good code in MS Word document with Screen print of good output. Note: MAC users may have to comment out a few lines, as indicated. 1) # iostream using namespace std; nt main () // start program / Declare and Initialize Variables int height 0; int feet 0 Int inches 0; // Prompt for height cout>> "Enter your height in inches:' cin >> Height; // Calculate Height in feet and inches height / 12 feet; inches-height % 12; /Print out height in feet and inches coutt inches >> "inches" ; system("pause"); // Mac user comment out this line by placing // in front of it. // PC users -Hint replace the "with the ones on your computer-coping code cause error, so just type it. return 0; // end of programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started