Write a program which asks the user to enter a letter grade

Assignment Help Programming Languages
Reference no: EM131321724

Write a program which:

1. Asks the user to enter a letter grade (A, B, C, D, F) or (a, b, c, d, f)
2. Validates that the entry is a letter grade (A, B, C, D, F) or (a, b, c, d, f)
3. The program then asks the user to enter the number of units (INTEGER) of the course, such that: 0 < UNITS < 6
4. Validates that the entry is such that: 0 < UNITS < 6
5. The program then displays the GPA for the course as a decimal number formatted with two decimal places.
6. The user must be asked if he/she wants to continue entering information or quit.
7. Comment your code
8. Use meaningful or mnemonic variable names
9. RESTRICTIONS: no global variables, no GOTO statements

Reference no: EM131321724

Questions Cloud

Economic forecasting staff has developed probability : Merrill Finch's economic forecasting staff has developed probability estimates for the state of the economy, and its security analysts have developed a sophisticated computer program, which was used to estimate the rate of return on each alternative ..
Describe conventions and attributes of your selected genre : Explain genre theory and describe the conventions and attributes of your selected genre. Identify a feature-length film that fits this genre and provide a basic summary of the movie. As you develop this summary, remember the differences between a f..
Develop a disaster recovery plan for hhr : Draw a plan of how you will go about setting up a Disaster Recovery Committee, indicating who will be in it and why. Also send a memo to the committee members telling them about the first organizing meeting, and list out the items to be discussed ..
Write a program which asks the user to enter a letter grade : Write a program which Asks the user to enter a letter grade (A, B, C, D, F) or (a, b, c, d, f) and Validates that the entry is a letter grade (A, B, C, D, F) or (a, b, c, d, f).
Develop a disaster plan for the lab : Based on your plan in (4) above, develop a rescue plan for the lab by developing a list of tools needed by the lab for disaster recovery, when needed.
Demographic trends that underlie the social changes : In a report of 4-5 pages, discuss the following: Demographic trends that underlie the social changes of the past quarter-century and How these demographic trends affect health care in the United States
Money will be in account after you made last payment : You plan to buy a house in 8 years. You want to save money for a down payment on the new house. You are able to place $407 every month at the end of the month into a savings account at an annual rate of 12.17 percent, compounded monthly. How much mon..
Identify three proposals for its capital budget : Compute the net present value of the new machine using the tables in Exhibits 26-3 and 26-4 - What nonfinancial factors should EnterTech consider?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a program that demonstrates the core algorithms

Create a program that demonstrates the core algorithms that will prototype the general operation of the application.

  Explain book constructor to accept and initialize data

Create and execute the class called Book which contains instance data for title, author, publisher, and copyright date. Explain the Book constructor to accept and initialize this data.

  Create program to randomly access data on stocks

A small mutual company wishes you to create program to randomly access data on stocks it holds. Presently, data are stored in a text file, each line of which contains following: a stock code.

  What is the standard terminal symbol for a flowchart

What might be considered the seventh step of the programming process?

  Modify the pseudocode and optimize it.

Provide valid reasons why the pseudocode is now more efficient.

  Write a program that plays tic-tac-toe

Write a program that plays tic-tac-toe. The tic-tac-toe game is played on a 3 × 3 grid. The game is played by two players, who take turns. The first player marks moves with a circle, the second with a cross.

  Create project to compute checking account balance

Create a project to compute your checking account balance. Form: Include radio buttons to indicate the type of transaction: deposit, check, or service charge.

  Write an application to calculate the factorials

Write an application that calculates the factorials of 1 through 20. use type long. Display the results in tabular format. What difficulty might prevent you from calculating the factorial of 100?

  Write a recursive-descent parser

Use any programming language you prefer to write a recursive-descent parser that parses the language generated by the following EBNF descriptions.

  Calculate transaction-based indi­rect overhead cost

calculate transaction-based indi­rect overhead cost (receiving, engineering, and packing) per unit for each of the three products. Use this new information to recalculate overall cost per unit for products A, B, and C.

  Program to read from an input file

Write a program to read from an input file for 15 students, that contains each individual student ID, the course code, letter grade, and credit hours for five courses.

  Calculate the sum of squares of numbers using for loop

Given int variables k and total which have already been declared, use for loop to calculate the sum of squares of first 50 counting numbers, and store this value in total.

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