Write c++ statements for each of the following:
Write the statements that allow you to input a series of numbers and print whether it is odd or even. Entering 0 causes the program to quit.
Write the statements to input numeric exam scores from a file and output the appropriate letter grade.
Write a loop that will continuously input and print the names of contest participants, until QUIT is entered in place of the name.
Implement (4-8) using a while loop and a for loop:
Write code to print Towson University 10 times.
Write code to print the numbers from 1 to 10.
Write c++ statements for each of the following:
Write the statements that allow you to input a series of numbers and print whether it is odd or even. Entering 0 causes the program to quit.
Write the statements to input numeric exam scores from a file and output the appropriate letter grade.
Write a loop that will continuously input and print the names of contest participants, until QUIT is entered in place of the name.
Implement (4-8) using a while loop and a for loop:
Write code to print Towson University 10 times.
Write code to print the numbers from 1 to 10.
Write code to print the numbers from 10 to 1.
Write code to print the following numbers:
2 4 6 8 10 12
Write code that prints your name 5 times.
Write code that will input a number and print the number, the square of the number, and the cube of the number. Continue the operation until 999 is entered.
Write code that will request the length and width of a rectangle until 0 is entered for either the length or the width. Print the area and perimeter for each set of inputs.
Write code that reads in integers and then counts and prints out the number of positive integers and negative integers. If a value is zero, it should not be counted. The process should continue until end-of-file occurs.
What is the output for the following loop?
int number;
number = 1;
while (number 12)
done = TRUE;
cout > num;
while (infile)
{
if (num % 2 == 0)
sum = sum + num;
infile >> num;
}
cout





