Answered step by step
Verified Expert Solution
Link Copied!

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++image text in transcribed

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 program

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_2

Step: 3

blur-text-image_3

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

Example. Evaluate 5n+7 lim 7-00 3n-5

Answered: 1 week ago

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago