Question: Write full programs for the below questions and print it out on same sheet. Do not forget to take a screenshot for the output of

 Write full programs for the below questions and print it out

Write full programs for the below questions and print it out on same sheet. Do not forget to take a screenshot for the output of each question. 1. Write a complete C++ program that will find and print the area and perimeter of a rectangle. Check that the entered length is larger than the width (L > W), to calculate the area otherwise print an error message. Note that: Area =width * length; Perimeter = 2*(width+length); 2. Write a program to read a real number and print (positive) when it is greater than zero and negative otherwise. 3. Write a program to read two numbers and exchange them if the first one is greater than the second one. 4. Write a program to check if an integer number divides by 5 or not. 5. Write a program that asks the user to type a student mark between (0-100) and outputs "PASS" if the value is between 70 and 100 (both included). Otherwise, the program prints out "FAIL". 6. Write a Program to read a character if it's in alphabet then find if its uppercase or lowercase. If its a digit print that it is a digit. Else, print that its a special character. 7. Write a program that will input 2 integers x and y then check if y is multiple of x. 8. Write a program that will input four integers and check if their summation is even or odd. 9. Correct the errors in the blocks of code below. int x; cin >> x; if (x%2 != 0) cout Write full programs for the below questions and print it out on same sheet. Do not forget to take a screenshot for the output of each question. 1. Write a complete C++ program that will find and print the area and perimeter of a rectangle. Check that the entered length is larger than the width (L > W), to calculate the area otherwise print an error message. Note that: Area =width * length; Perimeter = 2*(width+length); 2. Write a program to read a real number and print (positive) when it is greater than zero and negative otherwise. 3. Write a program to read two numbers and exchange them if the first one is greater than the second one. 4. Write a program to check if an integer number divides by 5 or not. 5. Write a program that asks the user to type a student mark between (0-100) and outputs "PASS" if the value is between 70 and 100 (both included). Otherwise, the program prints out "FAIL". 6. Write a Program to read a character if it's in alphabet then find if it's uppercase or lowercase. If it's a digit print that it is a digit. Else, print that it's a special character. 7. Write a program that will input 2 integers x and y then check if y is multiple of x. 8. Write a program that will input four integers and check if their summation is even or odd. 9. Correct the errors in the blocks of code below. int x; int y=5; cin >> x; if ( 4

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 Databases Questions!