Design and run a program that takes a numerical score

Assignment Help Programming Languages
Reference no: EM13703721

Question: Design and run a program that takes a numerical score and outputs a letter grade. Precise numeral scores and letter grades are listed show.

In this program, create two void functions titled getScore and printGrade with an int argument. The function getScoreshould have a Reference parameter and printGrade should have a Value parameter.

90-100   =             Grade A

80-89     =             Grade B

70-79     =             Grade C

60-69     =             Grade D

0-59       =             Grade F

The function getScore will prompt the user for the numerical score, get the input from the user, and print the numerical score.

The function printGrade will calculate the course grade and print the course grade.

(Be careful and note that the assignment needs you to input the grade into getScore and not directly into the main function.)

Do not forget to put in the proper prompts and appropriate output messages.

(Note: This program is a natural for use of the switch command, but if?else structures will also work.)

I am having difficulty with this program because I do not know where to start with:

Reference no: EM13703721

Questions Cloud

Explain the average mass of an atom of sodium : Problem- Suppose that the atomic mass unit (amu) had been defined as one-tenth of the average mass of an atom of sodium instead of one-twelfth of the mass of an atom of carbon-12.
Write select statement that returns categoryname : Write a SELECT statement that returns the CategoryName column from the Categories table.
Write a select statement that answers the problem : Write a SELECT statement that answers this problem - Which products have a list price that's greater than the average list price for all products?
What is the concentration of the hcl : Problem- A student pipets 10 mL of HCl into a beaker and dilutes it to 25mL with water He adds .20M NaOH to a burette. The initial reading of the burette is 26.45 mL and the final reading is 10.05 mL several drops of phenolpthalein are added as an..
Design and run a program that takes a numerical score : Design and run a program that takes a numerical score and outputs a letter grade. Precise numeral scores and letter grades are listed show.
What would the average atomic mass of aluminum : Problem- Suppose that the atomic mass unit (amu) had been defined as one-twentieth of the average mass of an atom of carbon instead of one-twelfth of the mass of an atom of carbon-12. What would the average atomic mass of aluminum be on this new s..
Rules of inference to show that the hypotheses : Use rules of inference to show that the hypotheses "If it does not rain or if it is not foggy, then the sailing race will be held and the lifesaving demonstration will go on,"
Define the 1h nmr spectrum of camphor is complex : Problem- The 1H NMR spectrum of camphor is complex, so we won't use that for characterization. Instead, consider the structures of starting material (Isoborneol) and product (camphor) and describe how 13C NMR analysis could determine whether your ..
Can you design a hybrid data structure : Arrays are fast at jumping quickly to a given element, whereas linked lists are fast at insertion after a given element.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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