In this question, we will write a complete Java program to prompt the student for a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this question, we will write a complete Java program to prompt the student for a sequence of courses with its grade in the format of "Course1/Grade1;Course2| Grade2; Course3 | Grade3;" as one string. Your program should separate the string into the course name and grade individually and save the course names and grades in two different arrays (2D-character array for course names and integer array for grade) and display the list of courses, average of the grades as a numerical value and letter accordingly. You can expect a perfect user who will enter the correct format. Your program should work for any numbers of course that were entered. Note: The table below depicts the numerical grades and their corresponding letter grade. Letter grade A B C D F Numerical value 288 >80 267 ≥60 <60 For example If the user's input is "COMP248| 95, ENGLISH201|75, CHEMISTRY-1| 45, ", then the info saved in the 2D-character array is: C 0 M P 2 ENGL || H E M I C the info saved in the integer array is: 95 4 S S 75 8 H 2 T R 45 0 Y ---****………………_****_ Welcome to Student Courses Grade Program! 1 your program should display "Here is the list of courses you are taking: No.1 COMP248 No.2 ENGLISH201 No.3 CHEMISTRY-1 1 The average of your courses: 71.67 and the average courses letter grade is: C You are not taking any course now! Thank you for using Student Courses Grade Program! (Note: your program should read the output data from the arrays). Hint: you can use Integer.parseInt() to convert a string to an integer number and to CharArray () to convert a string to a character array. The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. (assume that the data in green has been entered by the user). **************** Please enter the courses your are taking this semester (courselgrade and separated by a semicolon): 0 ****. .**** Welcome to Student Courses Grade Program! ‒‒‒‒****. .****. **** **** .****. Please enter the courses your are taking this semester (coursel grade and separated by a semicolon): MATH101 40; STAT-102|20; LANG304|85; Here is the list of courses you are taking: .****. No.1 MATH101 No.2 STAT-102 No.3 LANG304 The average of your courses: 48.33 and the average courses letter grade is: F Thank you for using Student Courses Grade Program! No.1 comp248 No.2 STAT202 No.3 COMP101 ****** Figure 2 Sample output of Question2 ****‒‒‒‒ Welcome to Student Courses Grade Program! ***‒‒‒‒‒‒‒****_ ****. Please enter the courses your are taking this semester (courselgrade and separated by a semicolon): comp248 88; STAT202 92; COMP101|96; ENGG-203|95; ****. ****.... [ Here is the list of courses you are taking: No.4 ENGG-203 The average of your courses: 92.75 and the average courses letter grade is: A Thank you for using Student Courses Grade Program! In this question, we will write a complete Java program to prompt the student for a sequence of courses with its grade in the format of "Course1/Grade1;Course2| Grade2; Course3 | Grade3;" as one string. Your program should separate the string into the course name and grade individually and save the course names and grades in two different arrays (2D-character array for course names and integer array for grade) and display the list of courses, average of the grades as a numerical value and letter accordingly. You can expect a perfect user who will enter the correct format. Your program should work for any numbers of course that were entered. Note: The table below depicts the numerical grades and their corresponding letter grade. Letter grade A B C D F Numerical value 288 >80 267 ≥60 <60 For example If the user's input is "COMP248| 95, ENGLISH201|75, CHEMISTRY-1| 45, ", then the info saved in the 2D-character array is: C 0 M P 2 ENGL || H E M I C the info saved in the integer array is: 95 4 S S 75 8 H 2 T R 45 0 Y ---****………………_****_ Welcome to Student Courses Grade Program! 1 your program should display "Here is the list of courses you are taking: No.1 COMP248 No.2 ENGLISH201 No.3 CHEMISTRY-1 1 The average of your courses: 71.67 and the average courses letter grade is: C You are not taking any course now! Thank you for using Student Courses Grade Program! (Note: your program should read the output data from the arrays). Hint: you can use Integer.parseInt() to convert a string to an integer number and to CharArray () to convert a string to a character array. The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. (assume that the data in green has been entered by the user). **************** Please enter the courses your are taking this semester (courselgrade and separated by a semicolon): 0 ****. .**** Welcome to Student Courses Grade Program! ‒‒‒‒****. .****. **** **** .****. Please enter the courses your are taking this semester (coursel grade and separated by a semicolon): MATH101 40; STAT-102|20; LANG304|85; Here is the list of courses you are taking: .****. No.1 MATH101 No.2 STAT-102 No.3 LANG304 The average of your courses: 48.33 and the average courses letter grade is: F Thank you for using Student Courses Grade Program! No.1 comp248 No.2 STAT202 No.3 COMP101 ****** Figure 2 Sample output of Question2 ****‒‒‒‒ Welcome to Student Courses Grade Program! ***‒‒‒‒‒‒‒****_ ****. Please enter the courses your are taking this semester (courselgrade and separated by a semicolon): comp248 88; STAT202 92; COMP101|96; ENGG-203|95; ****. ****.... [ Here is the list of courses you are taking: No.4 ENGG-203 The average of your courses: 92.75 and the average courses letter grade is: A Thank you for using Student Courses Grade Program!
Expert Answer:
Answer rating: 100% (QA)
Below is a complete Java program that accomplishes the task described java import javautilScanner pu... View the full answer
Related Book For
Computer Networking A Top-Down Approach
ISBN: 978-0136079675
5th edition
Authors: James F. Kurose, Keith W. Ross
Posted Date:
Students also viewed these programming questions
-
In this project, we will write a program that controls a quiz show, much like the many popular TV shows. The program will read in a group of questions and their multiple choice answers, storing them...
-
Organisations use safe work practices to ensure the health and safety of workers using essential functions and features of equipment used to clean kitchen premises and equipment. List at least three...
-
Refer to the information in Exercise 16-11. Using the direct method, prepare the statement of cash flows for the year ended June 30, 2017. IKIBAN INC. Comparatlve Balance Sheets June 30, 2017 and...
-
What type of investors would be interested in a target date retirement fund? Why?
-
A sheet of paper with dimensions 20.4 cm by 31.0 cm lies on a desk. Calculate the downward force exerted on the paper by the atmosphere. Considering the magnitude of this force, why is it so easy to...
-
MAC Industries completed the following inventory transactions during the month of August: Requirements 1. Without resorting to calculations, determine which inventory method will result in MAC...
-
Refer to the information in Problem. In Problem Required Prepare the cash flows from operating activities section only of the companys 2015 statement of cash flows using the direct method. LANSING...
-
AZC Ltd needs to prepare pro forma financial statements for the next fiscal year. To do so, the company must forecast its total overhead cost. The actual machine hours and total overhead cost are...
-
Wilson Vistas is a leading producer of vinyl replacement windows. The company's growth strategy focuses on developing domestic markets in large metropolitan areas. The company operates a single...
-
Plot all of the existing five features of the following rational function (some may not be needed). If you get a fraction or decimal then plot as close to the true location as possible. f(x) = 32 -...
-
To draw a graph for the line y = 10x+ 90, a person can draw one point at (0, 90) and another point with which coordinates?
-
Alec was an actor and producer in a small, independent film. He had a scene coming up where he had to shoot an actor, Miranda. He organised a professional shooter to come to the film set to give him...
-
What is the role of phylogenetic diversity in maintaining ecological functions, and how does it differ from the concept of species richness when assessing the overall health of an ecosystem ?
-
Big Bend Inc. makes only cash sales. It began 2023 with a credit balance of $32,700 in the refund liability account. Sales during 2023 were $670,000. Big Bend Inc. estimates that 5% of all sales will...
-
Explain how the following transactions would be entered into the US balance of payments: (a) Macys purchases of $20,000 of wool socks from Australia. (b) An US citizen opens a $1,000 bank account in...
-
I'm getting these errors on the following code that wasanswered. I also included the instructions from theassignment at the very bottom. Any help would be muchappreciated. ERRORS: Car.java:18: error:...
-
For what reason might an exporter use standard international trade documentation (letter of credit, draft, order bill of lading) on an intrafirm export to its parent or sister subsidiary?
-
In Figure 4.42, suppose that there is another stub network V that is a customer of ISP A. Suppose that Band C have a peering relationship, and A is a customer of both Band C. Suppose that A would...
-
Consider the polyalphabetic system shown in Figure 8.4. Will a chosenplaintext attack that is able to get the plaintext encoding of the message "The quick brown fox jumps over the lazy dog." be...
-
Consider a packet of length L which begins at end system A and travels over three links to a destination end system. These three links are connected by two packet switches. Let dp, sp and Ri denote...
-
Examples of random variables used in this chapter included (a) the sex of the next person you meet, (b) the number of times a wireless network fails, (c) the time it takes to commute to school, (d)...
-
An econometrics class has 80 students, and the mean student weight is \(145 \mathrm{lb}\). A random sample of 4 students is selected from the class, and their average weight is calculated. Will the...
-
Suppose that \(Y_{1}, \ldots, Y_{n}\) are i.i.d. random variables with a \(N(1,4)\) distribution. Sketch the probability density of \(\bar{Y}\) when \(n=2\). Repeat this for \(n=10\) and \(n=100\)....
Study smarter with the SolutionInn App