Create a program to implement a simplified gradebook

Assignment Help Programming Languages
Reference no: EM131310459

Assignment

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.

EXAMPLE OUTPUT

What is the student's name? Sam

How many grades does Sam have? 5

Enter grade 1: A

Enter grade 2: A

Enter grade 3: E

Error: invalid grade entered. Try again.

Enter grade 3: B

Enter grade 4: D

Enter grade 5: A

Sam's GPA: 3.2

Do you want to enter data for another student (Y/N)? N

Thank you. Bye!

APPROACH DOCUMENT

Along with your program, you should also submit an Approach Document for this assignment. This is a short document (two to five pages long) explaining the project's design and testing. The font size should be 12 point. The page margins should be one inch. The paragraphs can be single- or double-spaced. All figures, tables, equations, and references should be properly labeled, and do not count towards the page count.

This document should address the following points:

How did you approach this assignment?

How did you design your solution?

What difficulties, if any, did you encounter implementing your solution?

How did you test your solution? (Include test data)

What weaknesses, if any, can you identify in the program? How can these weaknesses be addressed?

How can this program be improved?

Reference no: EM131310459

Questions Cloud

Explain why quality service delivery depend on the execution : Critique the idea that the CIO can be a bridge between enterprise finance, marketing, and sales functions. Justify the legitimacy of the statement.Explain the factors that have caused customer relationship management to become a priority for many C..
Static routing versus a dynamic routing protocol : Discuss your findings. How would you decide when to use static routing versus a dynamic routing protocol? What network environment conditions would you consider before choosing a specific dynamic routing protocol?
Understand the methods of dynamic routing protocols : Recently, two new interns have joined your network team. They do not understand the methods of dynamic routing protocols and have asked for your help.
Returns the total charges for an oil change and lube job : Returns the total charges for an oil change and/or lube job, if any. FlushCharges: returns the total charges for a radiator flush and/or transmission flush, if any.
Create a program to implement a simplified gradebook : 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.
First write a set of instructions : Problem: First write a set of instructions (algorithm) that can be used to determine whether a year is a leap year. The instruction must be very clear and simple. . To check that the algorithm works correctly, you will code it INDIVIDUALLY as an a..
Discuss inheritance from class bicycle from other closely : Show a class hierarchy in which the class bicycle inherits from other classes, which, in turn, can aslo be inherited from yet other classes; Discuss inheritance from class bicycle from other closely related derived classes.
Create your own java class that includes three data fields : Design your own Java Class that includes at least 3 data fields, 2 constructors and 4 methods. When designing your class, pick an object that you are familiar with and make it your own, realistic, yet simple design with reasonable data fields and ..
Describe the key activities that the cio should be engaged : List three positive and three negative impacts of social networking. In your opinion, determine whether the positive impacts outweigh the negative impacts for a company determined to increase company awareness. Describe the role of the CIO in rela..

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