Question: question: Please show code, its from a textbook u can find code, Screenshot of program running, Output, input file show in screenshot all clearly have

question:  question: Please show code, its from a textbook u can find
code, Screenshot of program running, Output, input file show in screenshot all
Please show code, its from a textbook u can find code,
Screenshot of program running, Output, input file show in screenshot all clearly have to upload screenshot.
clearly have to upload screenshot. Compile run and show screenshot kindly for
Compile run and show screenshot kindly for both programs.

Suppose we are given a file consisting of students' names and their test scores, a number between 0 and 100 (inclusive). Each line in the file consists of a student name followed by the test score. We want a program that outputs each student's name followed by the test score and the grade. The program also needs to output the average test score for the class. Consider the following program. outFile.close ) Sample Run: Input File: Steve Gill 89 Rita Johnson 91.5 Randy Brown 85.5 Seema Arora 76.5 Samir Mann 731 Samantha McCoy 88.5 Output File: Steve Rita Randy Seema Samir Samantha Gill Johnson Brown Arora Mann McCoy 89.00 B 91.50 A 85.50 B 76.50 C 73.00 C 88.50 B Class Average: 84.00 1/Program: Diviaibility test by 3 and 9 import java.util. public class DiviaibilityTest statio Scanner console now Scanner (System. in) z publte statie vold main (Str args) int num int temp int sum Sytem.out.print ("Enter a positive integer: "); num console.nextInt O z System.out.printin 01 temp num sum -0 do sum- um + num % 10; //extract the last digit //and add it to sum //remove the last digit num-num/ 10 while (num > 0): System.out,println ("The sun of the digits-sum) if (sum 3-0) else syatem.out.printin (temp + in diviaible by 3)1 System.out.printin (temp+ is not divisible by 3") Systen.oat .printin (temp + " f# divisible by 9"); System.out . printin (temp + " is not divisile by 9"); if {sum 9-0) else Sample Runs: (In these sample runs, the user input is shaded) Sample Run 1: Eater a positive integer: 27193257 The aum of the digits 36 27193257 is divisible by 3 27193257 is divisible by 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!