For this lab you will write a Java program that produces a simple formatted repo
ID: 3690243 • Letter: F
Question
For this lab you will write a Java program that produces a simple formatted report
Create the project named as SP2016PROJECT_LastName
Provide the UML of class StudentInfo_YourLastName and write the pseudo-code of the application that allows users to process two tasks as below and only terminate when users select to exit.
Task1: GRADE ONE STUDENT:
-read the following information of a student from the keyboard:
Assignment
Data type
Number
Max score
Total
Name
String
Student id
Int or String
Quizzes
Double array
15
6
90
Homework
Double array
10
10
100
Lab
Double array
7
30
210
Exam
Double array
3
100
300
Project
Double
1
80
80
Discussion
Double
20
20
MaxScores
800
Then display the grade of this student format on the screen and also write it to the output file named GradingReport_yourLastName.txt.
The format the output on the screen. For example of student Bill Washington:
Student Name: Bill Washington
Student ID: 0097765
Quizzes: 6 4 4 6 6 4 6 4 4 6 4 2 4 6 4
Homework: 10 8.0 8.2 7.8 8.8 9.2 9.6 9.2 10 10
Labs: 30 28 29 30 26 28 30
Tests: 88 96 78
Project: 80
Discussion: 20
Total scores: 723.8
Max scores: 800
Percentage: 90.5
The format of the output in the output file:
Bill Washington – 0097765 – 90.5% - A
Task 2: PRINT THE GRADE REPORT: read information from file GradingReport_yourLastName.txt and display all the lines on the screen
.
Assignment
Data type
Number
Max score
Total
Name
String
Student id
Int or String
Quizzes
Double array
15
6
90
Homework
Double array
10
10
100
Lab
Double array
7
30
210
Exam
Double array
3
100
300
Project
Double
1
80
80
Discussion
Double
20
20
MaxScores
800
Explanation / Answer
Consider an simple example program. Imagine that the program must replace all instances of the word "foo" in a text file. The program will read each line in a file, look for a certain word in each line, and then replace that word. You can see that the steps to be repeated are indented with spaces in the pseudocode, just like it would be ideally in real code. A first draft of the pseudocode might look like this:
2.
Example Pseudocode
1
2
Standard Pseudocode Procedure
2
Capitalize the initial keyword of each main direction. In the above example, READ and WRITE are capitalized to indicate that they are the primary functions of the program. Relevant keywords might include: READ, WRITE, IF, ELSE, ENDIF, WHILE, ENDWHILE, REPEAT, and UNTIL.
3
Write what you mean, not how to program it. Some programmers write pseudocode like a computer program: they write something like "if a % 2 == 1 then". However, most readers must stop to reason through lines that are so abstractly symbolic. It is easier to understand a verbal line like "if an odd then". The clearer you are, the more easily people will be able to understand what you mean.[3]
4
5
6
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.