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

  Develop a domain-specific language within ruby

Develop a domain-specific language within Ruby, such as for manipulating files in a directory system, editing files, generating quizzes, describing graphical or geographical scenes, and adding and viewing entries in a calendar.

  Design logic for a program contains housekeeping

Design the logic for a program that contains housekeeping,detail loop,and end-of-job modules,and that calculates the service of charge customers owe for writing a bad check.

  List the six steps in the problem solving methodology

List the six steps in the problem solving methodology described in the text to be applied to computer programming assignments?

  Create class polynomial is array of terms

Create the class Polynomial. Internal representation of the Polynomial is the array of terms. Each term contains the coefficient and the exponent.

  Write a program that simulates battle between a cat and mice

I have written the program for the below assignment, but I am not getting the correct output. Below is the assignment and the program I have written along with the output I get.

  Write program to establish two savings accounts

Write program which establishes two savings accounts with saver1 having account number 10002 with initial balance of $2,000, and saver2 having account 10003 with initial balance of $3,000.

  Design a c# windows phone 8 application

Design and implement a C# Windows Phone 8 application based on the SoundBoard app in the Windows Phone 8 Development for Absolute Beginners textbook.

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Define a virtual terminal emulation window

NETW240: Managing User and Group Accounts, Using the mouse, click on the Fedora icon. Select ‘System Tools' and then select ‘Terminal'. A virtual terminal emulation window will appear. The window will provide access to the shell command-line prompt..

  Write a program that bounces blue ball inside jpanel

Write a program that bounces a blue ball inside JPanel. The ball should begin moving with a mousePressed event. When the ball hits the edge of the JPanel.

  Program to continuously accepts each worker-s first name

Program which continuously accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced.

  Create a model using the entities movie

Create a model to represent this report using the entities MOVIE, THEATER, and SHOW_TIME. Assume that theaters may show multiple movies.

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