Question: Task1: Write a C++ program that prompts the user to input two numbers, save the first number in x, save the second number in y,
Task1:
Write a C++ program that prompts the user to input two numbers, save the first number in x, save the second number in y, then swap the two numbers.
Solution:(flowchart + Program)
Task2:
Write a C++ program that prompts the user to input three integer numbers, if one of the numbers are negative then compute the sum, otherwise find the largest number among them.
Solution:(flowchart + Program)
Task3:
Write a C++ program that prompts the user to input three students grades (quiz, mid-term, and final scores), then compute the average of the grades, and determine the grade based on the following rules:
-if the average score =90 then grade=A -if the average score >= 70 and <90 then grade=B -if the average score>=60 and <70 then grade=C -if the average score<60 gade =F
Invalid numbers need to be considered.
Solution:(flowchart + Program)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
