subject

Your assignment is to write a class averaging program that outputs a summary of classes and students, given input data in a specific format (more on that in a bit). For a high-level view, look at the sample program execution below. Your program will read from an input file (courseData. txt) a number of data items, stored in the file in the following order:

(1) Global data is on the first line, as this applies to all classes. This first line holds the weights to use for all classes,

in this order: program weight, midterm weight, and final exam weight.

(2) Every other line in the file is specific to a class, and so the next line starts with a course identifier

(161, 162, or 263, and this is an int).

(3) After the course identifier ,a set of lines belonging to that course are listed, each with a student ID (four digits, such as 1234),

an unweighted program score, an unweighted midterm score, and an unweighted final score.

(4) Reaching a 0 indicates the end of input for a specific class ,or the end of file if all class data has been consumed.

Given this data file, your program should:

(1) Be well-documented with comments! I’ve included a number of comments in the sample code

below as examples. This is the first assignment where you’ll be graded on both correctness and code quality,

with respect comments. (Read the grading rubric for a list of everything you’ll be graded on!)

(2) Read in weights, IDs, coursenumbers ,programs scores, midterm scores, and final scores per student from

the sample input file provided (using Scanner or FileReader).

(3) :

a. Output a weighted average per student.

b. Output a Pass/Fail mark per student.

c. Output an average per class.

(4) .

(5) There should be at least one method that you write that can be used to provide output for tracing variables:

a. The method should be called test-something, e. g., testStatistics.

b. Somewhere in your program, there should be a call to that method. In the code you

submit, that call should be commented out, but I should be able to find it.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, gmc2771
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, katherinemoreno353
Write a program to analyze student’s scores. each student’s id and 4 original test scores are saved in the attached file “student_id_scores. txt”. assume there are exactly 15 students in the class.• the program first opens the file, reads student’s ids and scores from the file and saves them in two arrays: o create a one-dimensional string array “ids” to store the student’s ids. o create a (parallel) two-dimensional int array “scores” to store student’s original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.• the program then retrieves test scores from the array “scores”, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value. average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f• the average score should be saved back in the 5th column of “scores” array.• create a new parallel one-dimensional char array “grades” to save each student’s letter grade.• program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.• finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.• the program must contain at least the following functions: (1) a function “getscores” to read and store data into “ids” and “scores” arrays.(2) a function “analyzescores” to calculate student’s average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function “displayresults” to display all of the results
Answers: 3
image
Computers and Technology, 24.06.2019 20:20, jdkrisdaimcc11
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
image
Computers and Technology, 25.06.2019 02:00, Aaraar
Feedback is one of the basic elements games have in common true false
Answers: 2
You know the right answer?
Your assignment is to write a class averaging program that outputs a summary of classes and students...

Questions in other subjects:

Konu
Mathematics, 10.11.2020 21:50
Konu
Computers and Technology, 10.11.2020 21:50
Konu
Mathematics, 10.11.2020 21:50