Two variables named largest and smallest are declared for


USING IF-ELSE STATEMENTS In this lab, you complete a prewritten C++ program that computes the largest and smallest of three integer values. The three values are 210, 330, and -1.

1. Open the file named LargeSmall.cpp using Notepad or the text editor of your choice.

2. Two variables named largest and smallest are declared for you. Use these variables to store the largest and smallest of the three integer values. You must decide what other variables you will need and initialize them if appropriate.

3. Write the rest of the program using assignment statements, if statements, or if-else statements as appropriate. There are comments in the code that tell you where you should write your statements. The output statements are written for you.

4. Compile the program.

5. Execute the program. Your output should be:

1046_f9c40154-211e-49f2-9a55-c717dc06539c.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Two variables named largest and smallest are declared for
Reference No:- TGS02194153

Expected delivery within 24 Hours