C++ Programming/Exercises/Variables and types/Pages

EXERCISE 1
Write a program that asks the user to type the width and the height of a rectangle and then outputs to the screen the area and the perimeter of that rectangle.

EXERCISE 2
Write a program that asks the user to type 5 integers and writes the average of the 5 integers. This program can use only 2 variables.

EXERCISE 3
Write a program that asks the user to type 2 integers A and B and exchange the value of A and B.

EXERCISE 4
Write a program that asks the user to type the price without tax of one kilogram of tomatoes,the number of kilograms you want to buy and the tax in percent units. The program must write the total price including taxes.

EXERCISE 5
Write a program that asks the user to type the coordinate of 2 points, A and B (in a plane), and then writes the distance between A and B.

EXERCISE 6
Find the Answer to 100C10 ; Find the Answer to 20C5 ; Find the Answer to 40C30 ; Find the Answer to 90C10.6 ; Find the Answer to 120C30 ; Find the Answer to 150C32.32 ;

Write a program in C++ ISO/IEC or C++/CLI without ever closing down the program find the answers to all above questions.

EXERCISE 7
Write a program which asks for a student score. Score is a number from 0-100. Translate the score into grade according to the next limits: score >= 90 ==> "A" score >= 80 ==> "B" score >= 70 ==> "C" score >= 60 ==> "D" anything else ==> "F" if the score is 100 print "Perfect score!".