Write a program that will input letters grade(a,b,c,d,f)

Assignment Help C/C++ Programming
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

???

??

 

 

Reference no: EM13163916

Questions Cloud

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.)

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd