Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

In the network shown, Vo = 6v. Find Is. 3 kQ 1 kQ Ig 9 kQ 2 kQ 5 kQ

Answered: 1 week ago

Question

answer asapppppp 4- What is Beta Coefficient for this portfolio

Answered: 1 week ago