![kat9490](/avatars/36065.jpg)
kat9490
20.02.2020 •
Computers and Technology
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.
Solved
Show answers
More tips
- F Food and Cooking Discover Delicious Recipes You Can Make with Ground Meat...
- C Computers and Internet Google Search Tips and Tricks: Everything You Need to Know...
- S Science and Technology Why is there no gravity on other planets?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
Answers on questions: Computers and Technology
- C Computers and Technology how do you follow a podcast?...
- C Computers and Technology You are given an IPv4 network address of 192.168.10.0/24 by your ISP. You need to subnet this network. You know that the subnet mask will be 255.255.255.252. Therefore,...
- M Mathematics A gold bar has a trapezium cross-sectional area. Gold has a density of 19.3 grams per cm^3 work out the mass of the gold bar in kg...
- H Health WILL MARK BRAINLIEST! WRITE IN YOUR OWN WORDS List three exercises that would not be safe for you and explain why for each one....
- E English What is the adjective in the sentence below? Do not include the articles--a, an, or the. The tall man is my uncle. Adjective:...
- B Business Equilibrium price is $8 in a perfectly competitive market. For a perfectly competitive firm, MR = MC at 150 units of output. At 150 units, ATC is $11, and AVC is $10. The...
- P Physics A bowling ball weighing 71.2 N is attached to the ceiling by a 3.70 m rope. The ball is pulled to one side and released; it then swings back and forth like a pendulum....
- M Mathematics 3. Which sum is rational? A. 7+ 18 B. 125 +1.75 C. 3 + 5.5 D. 1+ V2...
- M Mathematics Cleo is making Giant Burgers for a school cookout. Each one starts with a large bun. On the bun, Cleo puts 1 burger patty,1 slice of cheese, 3 pickle slices. 1 more hamburger...
- M Mathematics Find the value of x that satisfies the identity cos(x+30) = sin(x)...
Ответ:
Indian actor producer who work primarily in Tamil language movie
☃️ hope this help☃️