Loading

[NEW SOLN] CMIS 141 ASSIGNMENT 3 CALCULATE STUDENT GRADE

Write a Java program to calculate student’s final course grade. The program should:

(1) Prompt and read user’s input for the student’s name, assignment 1 grade (A1), assignment 2 grade (A2), ex@m grade (EX), and participation grade (P). User Scanner to read input.

(2) Each grade input should be 0-100 and the final grade should be calculated as follows: A1*0.25+A2*0.25+EX*0.4+P*0.1

(3) Output the student’s information and the calculated course grade

(4) prompt user whether they want to calculate grade for another student and repeat the input/output processing

(5) Allow user to exit program without inputting student’s data

Test program:

A minimum of 3 test cases should be supplied in the form of table with columns indicating the input values, expected output, actual output and if the test case passed or failed. This table should contain 4 columns with appropriate labels and a row for each test case. An example template is shown below. Note that the actual output should be the actual results you receive when running your program and applying the input for the test record.

The three minimum test cases should include:
(1) Run for one student’s data
(2) Run for 2 students’ data
(3) Start program but select to exit without inputting student’s data

Make sure your Java program is using the recommended style such as:

  • Javadoc comment up front with your name as author, date, and brief purpose of the
    program
  • Comments for variables and blocks of code to describe major functionality
  • Meaningful variable names and prompts
  • Identifiers are written in upper CamelCase
  • Class name starts with upper case letter and variables in lower case letter
  • Constants are written in All Capitals
  • Use proper spacing and empty lines to make code human readable

Capture execution:

You should capture and label screen captures associated with compiling your code, and running each of your 3 test cases.
Here are a couple sample runs:
RUN1:
Welcome to the grade calculation program

Do you want to enter student’s data? Yes/No => Yes
Enter student’s name => Alicja Jones
Enter student’s grades separated by space: A1 A2 Ex P => 80 95 90 88

Student Name: Alicja Jones A1=80 A2=95 Ex@m=90 Participation=88 Final course grade=88.55

Do you want to enter another student’s data? Yes/No => Yes
Enter student’s name => John Paul
Enter student’s grades separated by space: A1 A2 Ex P => 75 70 80 85

Student Name: John Paul A1=75 A2=70 Ex@m=80 Participation=85 Final course grade=76.75

Do you want to enter another student’s data? Yes/No => No

Thank you for using the grade calculation program

RUN2:

Welcome to the grade calculation program

Do you want to enter student’s data? Yes/No => No

Thank you for using the grade calculation program

Related tasks

CMIS 141 Assignment 1 Student GPA,

CMIS 141 Assignment 2 Perform Operation on Two Numbers,

CMIS 141 Assignment 3 Calculate Student Grade,

CMIS 141 Assignment 4 Output Triangle and Diamond Pattern,

CMIS 141 Assignment 6 Highest and Lowest Score,

CMIS 141 Final Project Employee Salary,

Support