Write a program use at least one user-defined function

Assignment Help Programming Languages
Reference no: EM13762967

In this assignment, you will implement a simplified gradebook. Your application should:

Ask for a student's name.

Ask for how many letter grades will be inputted.

After all of the valid letter grades are entered, display the student's grade point average (GPA).

Ask if there is another student to be entered. (If yes, then repeat this workflow. If no, end the program cleanly.)
Note that the student's grades are entered as letters, but the GPA calculation will require translating those grades to numerical values. Use the "standard" letter grade-to-number conversion:

A = 4

B = 3

C = 2

D = 1

F = 0

When doing this conversion, you must use a switch block. For the "default" case, output an "invalid grade" message and repeat the input request.

Also, your program must use at least one user-defined function (main does not count). You must define the function and actually use it in your program. You can use the function to prompt for input, calculate the average, etc. It's your choice, but you must have at least one function.

Reference no: EM13762967

Questions Cloud

Undergrad and grad : * Create a superclass, Student, and two subclasses, Undergrad and Grad. * The superclass Student should have the following data members: name, ID, grade, age, and address. * The superclass, Student should have at least one method: boolean isPassed ..
Summary of american society for training and development : Executive Summary for American Society for Training and Development. Which are the three most CRITICAL ISSUES of this reading? Please explain why? and analyze, and discuss in great detail.
Organizations of acceptable use policy : An Acceptable Use Policy (AUP) is a very important policy within organizations to define acceptable employee behavior when accessing company resources. Additionally, there are also legal implications within AUPs.
Human population issuses : Reputable resources and your textbook, discuss the economic impacts of any proposed policy.
Write a program use at least one user-defined function : program must use at least one user-defined function (main does not count). You must define the function and actually use it in your program.
Weather disasters problems : Like earthquakes and volcano eruptions, major hurricanes and tornadoes have occurred long before there were humans on Earth.
Establishing an effective it security policy framework : Establishing an effective Information Technology Security Policy Framework is critical in the development of a comprehensive security program. Additionally, there are many security frameworks that organizations commonly reference when developing t..
Review the merits of corporate growth and the situations : Review the merits of corporate growth and the situations in which a stability strategy might be more appropriate. Some say that a firm that isn't growing isn't healthy? Do you agree? Why or why not?
Write a paper that defines innovation-design and creativity : Write a 350- to 700-word paper that defines and compares and contrasts the following: Innovation, Design and Creativity. Describe the importance of the three items in meeting organizationalobjectives.

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