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 down a program which asks the user for an angle

write a program that asks the user for an angle entered in radians. the program should then display the sine cosine and

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Display the property tax for n property owners

Write a java application that calculates and displays the property tax for N property owners. N should be declared as a constant and it should be equal to the largest digit of your student ID number

  Design and implement class instance data for title of book

Design and implement a class called Book that contains instance data for the title, author, publisher, and copyright date. Define the Book constructor to accept and initialize this data.

  Write program which reads three integer from input dialogs

Write down the program which reads three integer. Integers are entered from input dialogs and stored in variable num1, num2, and num3, respectively.

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Advantages and disadvantages for windows login

The Windows login can be a user or a group with users defined to the group. What do you think the advantages and disadvantages are for each type?

  Application to feature a gui

A program written in Dr. Racket Scheme that makes use of lists, higher order procedures (e.g. map, filter, reduce) and/or recursion. If all of those could be used it would be best

  Create link invisible to begin-display after submit button

Create link invisible to begin but display it after Submit button has been clicked. Confirmation page should say "Thank you for your order".

  Write program to initializes array with ten random integers

Write a program which initializes the array with ten random integers and then prints four lines of output, containing: - Every element at an even index.

  Imagine you are a marketing consultant brought in to help a

imagine you are a marketing consultant brought in to help a company who has a product that is so successful they cannot

  Write application that inputs a telephone number as string

Write an application that inputs a telephone number as a string in the form (555) 555-5555. The application should String method split to extract the area code as a token.

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