please-submit-5-separate-c-cpp-files-for-each-question

Question 1


You are given a list of students names and their test scores. Design a pseudocode that does the following:

  1. Calculates the average test scores.
  2. Determines and prints the names of all the students whose test scores are below the average test score.
  3. Determines the highest test score.
  4. Prints the names of all the students whose test scores are the same as the highest test score.

You are to divide this problem into sub problems as follows:

  1. The first sub problem determines the average test score.
  2. The second sub problem determines and prints the names of all the students whose test scores are below the average test score.
  3. The third sub problem determines the highest test score.
  4. The fourth sub problem prints the names of all the students whose test scores are the same as the highest test score. The main pseudocode combines the solutions of the sub problems.

Question 2


Write a program that prompts the user to input a number of quarters, dimes, and nickels. The program then outputs the total value of the coins in pennies.

Question 3


Write a program, using case statements, that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. For division, if the denominator is zero, output an appropriate message.

Some sample outputs are as follow:

3 + 4 = 7
13 * 5 = 65

Question 4


Write a program that reads a set of integers and then finds and prints the sum of the even and odd integers.

Question 5

Write a program that uses while loops to perform the following steps:

  1. Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).
  2. Output all odd numbers between firstNum and secondNum.
  3. Output the sum of all even numbers between firstNum and secondNum.
  4. Output the numbers and their squares between 1 and 10.
  5. Output the sum of the square of the odd numbers between firstNum and secondNum.
  6. Output all uppercase letters.