Question: Create a C++ program that inputs the students four test scores. The details of the test marks are also in the following table 1. Compute
Create a C++ program that inputs the students four test scores. The details of the test marks are also in the following table
1. Compute the percentage (out of 500 total marks) and output a grade corresponding to the percentage as follows:
| Course Name | Course Maximum Marks | Percentage | Grade |
| Physics | 150 | 80 100 | A |
| Chemistry | 150 | 70 - <80 | B |
| English | 100 | 60 <70 | C |
| History | 100 | UNDER 60 | F |
2. You are given an array with 10 elements. Write a program to solve the following. a. Find and print the sum of all negative numbers in the array. (Note: - A number is negative if it is less than 0) b. Find and print the total number of occurrences of the number 0 in the array. c. Print the elements in the array in the reverse order.
3. Write a program to solve the following problem: An array named MYARRAY contains 6 numbers. For each of these numbers, print out the number itself and also the difference between the number and the sum of all the numbers.
4. The University of the Commonwealth Caribbean (UCC) is interested in you writing a grading system program that would help to keep track of students semester grades. Your program must process the grade information for 10 students. Each student contains the grades of 2 subjects (the Maximum Score for each subject is 100 Marks). Find the average of each student and print the total number of students who passed. The passing average is 60 or more. (two-dimensional arrays to store student information)
5. Create a program that has the following characteristics: a. To check if a given number is a positive or negative number. b. to check if a given number is an odd or even number
6. A grocery store sells many cases of soft drinks every day. In each case, there are 20 bottles, and the store profits 35 cents per bottle. We want to compute the profit that the store has every day from selling soft drinks. We also want to know the profit from selling soft drinks in a year. Assume a year is 365 days. a. Compute the profit that a store has in one day for selling soft drinks? b. Compute the profit that a store has in one year for selling soft drinks?
7. Create a C++ program that takes an input integer number from the User and generates the following by using a recursive function: a. The Factorial of a given number. b. The Fibonacci series up to a given number.
8. Sorting in C++ is a concept in which the elements of an array are rearranged in a logical order. This order can be from lowest to highest or highest to lowest. Sorting an unsorted array helps to solve many problems such as searching for the minimum or maximum element, etc. Arranging things in a sorted manner makes it easier to analyze and search for a particular element among the collection of elements. Write a C++ program to implement the bubble sort algorithm.
9. Create a program that has the following characteristics a. Use loops to construct a program that displays a pyramid of Xs on the screen. The pyramid should look like this X XXX XXXXX XXXXXXX XXXXXXXXX. b. Use loops to construct a program that displays a diamond of Xs on the screen. The pyramid should look like this X XXX XXXXX XXXXXXX XXXXXXXXX XXXXXX XXX X. c. Use loops to construct a program that displays a diamond of Xs on the screen. The pyramid should look like this 1 2 2 3 3 3 4 4 4 4 4 5 5 5 5 5 5
10. Write a program that performs a survey tally on beverages. The program should prompt for the next person until a sentinel value of 1 is entered to terminate the program. Each person participating in the survey should choose their favorite beverage from the following list: 1. Coffee 2. Tea 3. Coke 4. Orange Juice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
