Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

calculated follows: Grade Code GPA (out of 5.00) 5.00 GPA (out of 4.00) 4.00 A- 4.75 3.75 B- 4.50 3.50 B 4.00 3.00 3.50 2.50

image text in transcribedimage text in transcribed

calculated follows: Grade Code GPA (out of 5.00) 5.00 GPA (out of 4.00) 4.00 A- 4.75 3.75 B- 4.50 3.50 B 4.00 3.00 3.50 2.50 3.00 2.00 D 2.50 1.50 D 2.00 1.00 F 1.00 0.00 Tweny Assignment (2) - Protected View - Saved to this PC- Search A ALALALAWI LA GS File Home Insert Draw Design Layout References Mailings Review View Help Grammarly Share Comments PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit it's safer to stay in Protected View Enable Editing ICS 108 - Object-Oriented Programming Assignment1 # 1 Develop a GPA calculator in which the user enters the number of courses then for each course he enters the course code, grade, and hours. Use the following formula to compute the GPA where n is the number of courses, GPA- points, four's 2 hours Your program should contain the following methods /** Compute the points for a given letter grade public static doublell getPoints(String[] grade) /** Compute the mean of an array of double values */ public static double getGPA(double[1 points, int[] hours) Here is sample run Enter numbers of courses: 2 Enter code, grade, and hours ICS104 A 3 MATH101 C4 SPA Calculations Course Grade ICS104 A MATH101 B+ Points 3.75 3.5 Hours 3 4 The GPA is 3.61 Page 1 of 1 127 words Focus 1009 Type here to search O a ? A VE I 6:45 PM 2/11/2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions