Question: q - can someone help with this coding assignment Companion x How to Use the Code Editor Select the Run Code button to execute the

q - can someone help with this coding assignment
Companion x
How to Use the Code Editor
Select the "Run Code" button to execute the program.
Select the "Calculate Grade" button to generate a score based on the completed tasks.
Continue to modify, run, and calculate your code until you are happy with the grade.
Select the "Submit" button to turn in the assignment to your instructor.
Your Tasks
In this lab, you will complete a C++ program that swaps values stored in three int variables and determines maximum and minimum values. The C++ file provided for this lab contains the necessary variable initializations, as well as the input and output statements. You want to end up with the smallest value stored in the variable named first and the largest value stored in the variable named third. You need to write statements that compare the values and swap them, if appropriate. Comments included in the code tell you where to write your statements
Instructions
Write the statements that test the first two integers and swap them, if necessary.
Write the statements that test the second and third integer and swap them, if necessary.
Write the statements that test the first and second integers again and swap them, if necessary.
Instructions
Write the statements that test the first two integers and swap them, if necessary.
Write the statements that test the second and third integer and swap them, if necessary.
Write the statements that test the first and second integers again and swap them, if necessary.
Task 1: Execute the program using the following sets of input values:
161,22,-23
630,1500,9
2122
An example of the program is shown below:
Enter first number: 101
Enter second number: 22
Enter third number: -23
Smallest: -23
Next largest: 22
Largest: 101
Your current grade is: 0.00%
swap.cpp
c+ Swap.cpp >dots
1// Swap.cpp - This program determines the minimum and maximum of three values input by
// the user and performs necessary swaps.
// Input: Three int values.
// Output: The numbers in numerical order.
#include =0;??=0=0;????????
q - can someone help with this coding assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!