Question: n this lab, you complete a prewritten C++ program that computes the largest and smallest of three integer values. The three values are -50, 53,
n this lab, you complete a prewritten C++ program that computes the largest and smallest of three integer values. The three values are -50, 53, 78. Instructions 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. 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. Execute the program by clicking the Run button at the bottom of the screen. Your output should be: The largest value is 78 The smallest value is -50 // LargeSmall.cpp - This program calculates the largest and smallest of three integer values. #include using namespace std; int main() { // This is the work done in the housekeeping() function // Declare and initialize variables here int largest; // Largest of the three values int smallest; // Smallest of the three values // This is the work done in the detailLoop() function // Write assignment and conditional statements here as appropriate // This is the work done in the endOfJob() function // Output largest and smallest number. cout << "The largest value is " << largest << endl; cout << "The smallest value is " << smallest << endl; return 0; } Can i get help on this one?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
