Question
c++ Program ASSIGNMENT 1 Fix the code 1) This code has errors. Do not delete lines, Do not add lines. Only fix lines if needed.
c++
Program ASSIGNMENT 1 Fix the code
1) This code has errors. Do not delete lines, Do not add lines. Only fix lines if needed. // add comment to end of line 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.
# iostream>
using namespace std;
Int 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 << You are < FEET << feet and <> 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 computercoping code cause error, so just type it.
return 0;
} // end of program
Step 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