Reference no: EM13163916
Write a program that will input letters grade(A,B,C,D,F), the number of which is input by the user (a maximum of 50 grades). The grades will be read into array. A function will be called five times(once for each letter grade) and will return the total number of grades in that category. The function must be passed 3 parameters: the array, the number of elements in the array, and the letter to be searched for and counted (A, B, C, D or F). The program will print the number of each grade.
Additional Information:
Store all the input grades one by one in an array;
The function prototype looks like the following:
int countChar(char[], int, char);
The function will go through the array and count how many occurrences for the designated letter grade.
Sample Run:
Please input the number of grades to be read in.(1-50): 6
all grades must be upper case A B C D or F
?Input a grade: A
Input a grade: C
Input a grade: A
Input a grade: B
Input a grade: B
Input a grade: D
Number of As = 2
Number of Bs =2
Number of Cs = 1
Number of Ds = 1
Number of Fs = 0
???
??
What is the thickness of the paint
: If 1 gallon of paint can cover a square room and ceiling with walls that are 9.36 feet high and 9.36 long, what is the thickness of the paint (in micrometers)?
|
Design a phishing pages for a popular website
: Design a "Phishing" Pages for a popular "PayPal" Website. Needs the Phishing pages like this first page: the login page that will request for login info (Email + pass) check paypal.com home page
|
Compute the equivanent weight of the acid
: calculate the equivanent weight of the acid. (B) How many moles of protons were titrated? (C) How many moles of H3PO4 were titrated? (D) How many grams of H3PO4 were titrated?
|
How many grams of oxygen would be required in the combustion
: How many grams of oxygen would be required in the combustion of propane to produce 582 kJ of heat?
|
Write a program that will input letters grade(a,b,c,d,f)
: Write a program that will input letters grade(A,B,C,D,F), the number of which is input by the user (a maximum of 50 grades). The grades will be read into array. A function will be called five times(once for each letter grade) and will return the tota..
|
Write the balanced chemical equation for the combustion
: Carbon dioxide is a green house gas that is linked to global warming. It is released into the atmosphere through the combustion of octane (C8H18) in gasoline.
|
State dangerous to attempt to carry out a distillation
: Why is it extremely dangerous to attempt to carry out a distillation in a completely closed apparatus
|
Calculate the molarity of the hcl solution
: A sample of 0.0020 mole of HCl is dissolved in water to make a 2000-mL solution. Calculate the molarity of the HCl solution, the [H3O+], and the pH. For a strong acid such as HCI, the [H3O+] is the same as the molarity of the HCl solution.
|
What is the vapor pressure of the water-ethylene glycol
: A 51.0 g sample of ethylene glycol, HOCH2CH2OH, is dissolved in 540.0 g of water. The vapor pressure of water at 32°C is 35.7 mm Hg. What is the vapor pressure of the water-ethylene glycol solution at 32°C? (ethylene glycol is nonvolatile.)
|