Description
It says 1100 to 1400 words so I am estimating it is 3 to 4 pages: Individual
websites for the company McBride Financial which the paper is on: web files
transcript about computer network needed for McBride: transcipt
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Review
Review
Anonymous
Really helped me to better understand my coursework. Super recommended.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
programming need code
Objective:Review file streams and sorting (or learn this if you haven't in 22A)Learn about vectors (if you haven't in 22A ...
programming need code
Objective:Review file streams and sorting (or learn this if you haven't in 22A)Learn about vectors (if you haven't in 22A), string streams and sort Assignment:Write a program that reads a text file containing a set of test scores. Each line in the file contains ten scores of a specific student. For example, the first line has the scores for the first student, the second line has the scores for the second student, and so forth. Average the scores of each student and save them in a vector of final scores. So, if there are 10 students, the vector should have 10 final scores. Sort the final scores to calculate the class median. Print the final scores sorted from least to greatest, the class average and the class median.Detailed set of requirements:File processing:
Program should try to open a file using a default file path first, then check if it was successful, if not, ask the user for a different file name/path and try again until it succeeds. Do not try to process a file that you could not open. Remember to close the file when done reading. Store all final scores in a vector (not an array!).To add values to a vector, use function push_back.Sort the data using the sort function (you will need this for the median)Refer to http://www.cplusplus.com/reference/algorithm/sort/ (Links to an external site.)Links to an external site. to learn how to use sort.Calculate the average and median of the values in the vector.Average is calculated by adding all data points then dividing by the number of data points.Median is the data point in the middle after you have sorted them. If there is an odd number of data points, there will be only one in the middle. If there is an even number of data points, the median is the average of the two in the middle. Your algorithm must work for both cases.Define separate functions to calculate and return average and median.Define a separate function to print the required info on the screen:This function should receive the vector, the average and median as parameters.Use a range-based for loop to print the scores in the vector.Do not use global variables! Do not use goto!Document your source code following the guidelines: Lab Documentation GuidelinesAttach the output of your program as a comment at the end of your source code.
0 pages
Symtab New
// // This is the interface for a generic symbol table. A table stores // (symbol, data) pairs. // // A symbol is simply a ...
Symtab New
// // This is the interface for a generic symbol table. A table stores // (symbol, data) pairs. // // A symbol is simply a C string (null-terminated ...
UP Developing a JUnit Like Test Tool in Java Using intellij Programming Exercise
Develop a JUnit-like test tool in Java using intelliJ. Please find the attached document that has all the details for the ...
UP Developing a JUnit Like Test Tool in Java Using intellij Programming Exercise
Develop a JUnit-like test tool in Java using intelliJ. Please find the attached document that has all the details for the assignment.
Flowcharts, Algorithms, and More Alice
Assignment 2: Dropbox Assignment Flowcharts, Algorithms, and More Alice In this assignment, you will apply what you lear ...
Flowcharts, Algorithms, and More Alice
Assignment 2: Dropbox Assignment Flowcharts, Algorithms, and More Alice In this assignment, you will apply what you learned in Week 2 about using flowcharts and algorithms for program development. There are two parts to this assignment: In Part 1, you will create a flowchart and an algorithm for a program for ordering a pizza. In Part 2, you will complete Programming Project 2 Alice 3 in Action with Java and analyze its results. Part 1: Creating a Flowchart and an Algorithm Scenario Bruce Williams wants to order a pizza for dinner from Silver Pizza, but he does not have the telephone number of the pizza company. Based on the given situation, complete the following tasks: Create a flowchart of steps necessary for Williams to find the telephone number of Silver Pizza and order a pizza for dinner. Create an algorithm to support your flowchart as a list of steps with logic, if necessary. Create pseudocode to support the processes for the given situation. Describe your flowchart and algorithm and explain what is occurring within each. Please note that you do not need to write code at this point—just ensure the logic is correct. Part 2: Alice Tutorial Use Alice 3 in Action with Java and answer the following questions upon completion of the Alice project: Programming Project 2: Build an undersea world that contains a clownfish and a shark. Build a swim()method that makes each kind of fish swim forward 1 meter in a more or less realistic fashion. Build a program containing a scene in which a shark chases the clownfish and the clownfish swims to its giant cousin, a clownfish, which chases the shark away. What are some of the other methods listed in the Alice tool that you experimented with? Describe your experience with using them. When you used the Turn and the Roll methods, what differences did you find? Compile your answers for Parts 1 and 2 in a Microsoft Word document. Support your responses with appropriate research and examples. Cite any sources in APA format on a separate page. Submission Details Name your document SU_ITS2104_W2_A2_LastName_FirstInitial.doc. Assignment 2 Grading Criteria Maximum Points Created a flowchart with the necessary steps to find the telephone number of Silver Pizza. 10 Created an algorithm to support the flowchart and ensured that the algorithm included the necessary steps and demonstrated the required logic for the program. 10 Described the flowchart and the algorithm in detail to explain what is happening in each. 5 Completed Programming Project 2 and ensured that the answers meet the requirements of the assignment. 10 Listed the other methods listed in the Alice tool you experimented with and described your experiences with them. 5 Described your experience with using the Turn and the Roll methods and identified the differences between the two methods. 5 Used correct spelling, grammar, and professional vocabulary. Cited all sources using APA format. 5
Write a java project answer provided. Rewrite.
Object Relationship and File IOWrite a program to perform statistical analysis of scores for a class of students.The class ...
Write a java project answer provided. Rewrite.
Object Relationship and File IOWrite a program to perform statistical analysis of scores for a class of students.The class may have up to 40 students.There are five quizzes during the term. Each student is identified by a four-digit student ID number.The program is to print the student scores and calculate and print the statistics for each quiz. The output is in the same order as the input; no sorting is needed. The input is to be read from a text file. The output from the program should be similar to the following:Here is some sample data (not to be used) for calculations:Stud Q1 Q2 Q3 Q4 Q51234 78 83 87 91 862134 67 77 84 82 791852 77 89 93 87 71High Score 78 89 93 91 86Low Score 67 77 84 82 71Average 73.4 83.0 88.2 86.6 78.6The program should print the lowest and highest scores for each quiz.Plan of AttackLearning ObjectivesYou will apply the following topics in this assignment:File Input operations.Working and populating an array of objects.Wrapper Classes.Object Oriented Design and Programming.Understanding RequirementsHere is a copy of actual data to be used for input.Stud Qu1 Qu2 Qu3 Qu4 Qu51234 052 007 100 078 0342134 090 036 090 077 0303124 100 045 020 090 0704532 011 017 081 032 0775678 020 012 045 078 0346134 034 080 055 078 0457874 060 100 056 078 0788026 070 010 066 078 0569893 034 009 077 078 0201947 045 040 088 078 0552877 055 050 099 078 0803189 022 070 100 078 0774602 089 050 091 078 0605405 011 011 000 078 0106999 000 098 089 078 020Essentially, you have to do the following:Read Student data from a text file.Compute High, Low and Average for each quiz.Print the Student data and display statistical information like High/Low/Average..DesignThis program can be written in one class. But dividing the code into simple and modular classes based on functionality, is at the heart of Object Oriented Design.You must learn the concepts covered in the class and find a way to apply.Please make sure that you put each class in its own .java file.package lab2;class Student { private int SID;private int scores[] = new int[5];//write public get and set methods for//SID and scores//add methods to print values of instance variables.}/************************************************************************************/package lab2;class Statistics{int [] lowscores = new int [5];int [] highscores = new int [5];float [] avgscores = new float [5];void findlow(Student [] a) {/* This method will find the lowest score and store it in an array names lowscores. */}void findhigh(Student [] a) {/* This method will find the highest score and store it in an array names highscores. */}void findavg(Student [] a) {/* This method will find avg score for each quiz and store it in an array names avgscores. */}//add methods to print values of instance variables.}************************************************************************************/package lab2;class Util {Student [] readFile(String filename, Student [] stu) {//Reads the file and builds student array.//Open the file using FileReader Object.//In a loop read a line using readLine method.//Tokenize each line using StringTokenizer Object//Each token is converted from String to Integer using parseInt method//Value is then saved in the right property of Student Object.}}************************************************************************************///Putting it together in driver class: public static void main(String [] args) {Student lab2 [] = new Student[40];//Populate the student arraylab2 = Util.readFile("filename.txt", lab2);Statistics statlab2 = new Statistics();statlab2.findlow(lab2);//add calls to findhigh and find average//Print the data and statistics}Topics to LearnWorking with Text Files//ReadSource.java -- shows how to work with readLine and FileReaderpublic class ReadSource {public static void main(String[] arguments) {try {FileReader file = new FileReader("ReadSource.java");BufferedReader buff = new BufferedReader(file);boolean eof = false;while (!eof) {String line = buff.readLine();if (line == null)eof = true;elseSystem.out.println(line); } buff.close(); } catch (IOException e) { System.out.println("Error -- " + e.toString()); } }}//How do you tokenize a String? You can use other ways of doing this, if you like. StringTokenizer st = new StringTokenizer("this is a test"); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); }//How to convert a String to an Integer int x = Integer.parseInt(String) ;__________________________________________________>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Please use the following code as a answer key. Please do not copy ------------------------------------------------------------------------------------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Student class :package driverstudentquiz;public class Student {private int SID;private int scores[] = new int[5]; //get and set functions for scores and IDpublic int getSID(){return this.SID;}public void setSID(int id){this.SID= id;}public int[] getScores(){return this.scores;}public void setScores(int[] s){this.scores= s;} public void printData(){ //print all data of a studentSystem.out.println("\t\t\t\t"+ SID +"\t"+ scores[0] +"\t"+ scores[1] +"\t"+ scores[2] + "\t"+ scores[3] +"\t"+ scores[4] +"\n");}}Statistics class :package driverstudentquiz;public class Statistics {private int[] lowscores= new int[5];private int[] highscores= new int[5];private float[] avgscores= new float[5]; void findlow(Student[] a, int c){ // finds low score.int i=0;for(i=0;i<5; i++){int[] temp= a[0].getScores();int min = temp[i];for(int j=0; j< c; j++){int[] s= a[j].getScores();if(min > s[i]){min = s[i];}}lowscores[i]= min;}} void findhigh(Student[] a, int c){ // find high scoreint i=0;for(i=0;i<5; i++){int[] temp= a[0].getScores();int max = temp[i];for(int j=0; j< c; j++){int[] s= a[j].getScores();if(max < s[i]){max = s[i];}}highscores[i]= max;}}void findavg(Student[] a, int c){ // find average score.int i=0;for(i=0;i<5; i++){int sum =0;for(int j=0; j<c; j++){int[] s= a[j].getScores();sum= sum + s[i];}avgscores[i]= sum/c;}} public void printStatistics(Student[] a, int c){ // print statistics for all students and all quizesfindlow(a,c);findhigh(a,c);findavg(a,c);System.out.println("Lowest score :\t\t"+ lowscores[0] +"\t"+ lowscores[1] +"\t"+ lowscores[2] +"\t"+ lowscores[3] +"\t"+ lowscores[4] );System.out.println("High score :\t\t"+ highscores[0] +"\t"+ highscores[1] +"\t"+ highscores[2] +"\t"+ highscores[3] +"\t"+ highscores[4] );System.out.println("Average score :\t\t"+ avgscores[0] +"\t"+ avgscores[1] +"\t"+ avgscores[2] +"\t"+ avgscores[3] +"\t"+ avgscores[4] );}}Util class :package driverstudentquiz;import java.io.*;import java.util.StringTokenizer;public class Util {static int studentCount;static Student [] readFile(String filename, Student [] stu) {//Reads the file and builds student array.int i=0;try {FileReader file = new FileReader(filename); //Open the file using FileReader Object.BufferedReader buff = new BufferedReader(file);boolean eof = false;while (!eof) {String line = buff.readLine(); //In a loop read a line using readLine method.if (line == null)eof = true;else{// System.out.println(line);stu[i]= new Student();StringTokenizer st = new StringTokenizer(line); //Tokenize each line using StringTokenizer Objectwhile(st.hasMoreTokens()){stu[i].setSID(Integer.parseInt(st.nextToken())); //Value is then saved in the right property of Student Object.int[] arr= new int[5];for(int j=0;j<5;j++){arr[j]= Integer.parseInt(st.nextToken()); //Each token is converted from String to Integer using parseInt method}stu[i].setScores(arr); //Value is then saved in the right property of Student Object. }}i++;}buff.close();} catch (IOException e) {System.out.println("Error -- " + e.toString());}studentCount = i-1;return stu;} }Driver class :package driverstudentquiz;public class DriverStudentQuiz { public static void main(String[] args) {Student arrStudent[] = new Student[40];int studentCount=0;arrStudent = Util.readFile("Data.txt", arrStudent);studentCount= Util.studentCount; // find number of lines from file. which will show number of students in array.Statistics s = new Statistics();for(int i = 0; i<studentCount; i++){ // print student data fetched from filearrStudent[i].printData();}s.printStatistics(arrStudent,studentCount); // print statistics of students} }
City University of Seattle Python Programming Code
Write a program using the turtle library that draws a flower.The flower shall have exactly 8 petals, 1 style/stigma, 4 sta ...
City University of Seattle Python Programming Code
Write a program using the turtle library that draws a flower.The flower shall have exactly 8 petals, 1 style/stigma, 4 stamens or seeds, and one stem.You must use at a minimum, three colors (not including the screen color).Get creative and make a most awesome flower!!!Do not copy and paste flowers you find online!!!Honor code applies, you must write your own code.
Similar Content
Stack ADT / Queue implementation
Hi please Criss or DrCS I need this within 60-90 minutes it's about Stack ADT / Queue implementation...
How longs it take to code a program?
what is the estimate time on coding a program?...
University of Houston Data and Advanced Analytics Project
Project chapter3
Write a Python program to choose one of the following two options for your summer
Vacation. Your op...
Need programming help drawing uml diagrams
I'll message you the diagrams...
University of California Programming Tracing Recursive Methods Questions
I’m working on a Java questions and need guidance to help me learn....
New England College Week Programming Logic & Design Peer Responses Discussion
Discussion Posts responses should be 150-200 wordsAssignment responses should be 150 wordsDiscussion Post directions : Dis...
Canterbury Enviro Waste
...
11690 Week 2
The distinction between list and dictionary in Python is the topic of this week's discussion. I will start by defining wha...
Project
Have you ever felt that there is a gap to be filled as far as prison security and safety is concerned? It is the primary g...
Related Tags
Book Guides
Fear - Trump in the White House
by Bob Woodward
Ethan Frome
by Edith Wharton
Treasure Island
by Robert Louis
Things That Matter
by Charles Krauthammer
The Sun Is Also a Star
by Nicola Yoon
The Elegant Universe
by Brian Greene
The Age of Innocence
by Edith Wharton
The Joy Luck Club
by Amy Tan
Alice in Wonderland
by Lewis Carroll
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
programming need code
Objective:Review file streams and sorting (or learn this if you haven't in 22A)Learn about vectors (if you haven't in 22A ...
programming need code
Objective:Review file streams and sorting (or learn this if you haven't in 22A)Learn about vectors (if you haven't in 22A), string streams and sort Assignment:Write a program that reads a text file containing a set of test scores. Each line in the file contains ten scores of a specific student. For example, the first line has the scores for the first student, the second line has the scores for the second student, and so forth. Average the scores of each student and save them in a vector of final scores. So, if there are 10 students, the vector should have 10 final scores. Sort the final scores to calculate the class median. Print the final scores sorted from least to greatest, the class average and the class median.Detailed set of requirements:File processing:
Program should try to open a file using a default file path first, then check if it was successful, if not, ask the user for a different file name/path and try again until it succeeds. Do not try to process a file that you could not open. Remember to close the file when done reading. Store all final scores in a vector (not an array!).To add values to a vector, use function push_back.Sort the data using the sort function (you will need this for the median)Refer to http://www.cplusplus.com/reference/algorithm/sort/ (Links to an external site.)Links to an external site. to learn how to use sort.Calculate the average and median of the values in the vector.Average is calculated by adding all data points then dividing by the number of data points.Median is the data point in the middle after you have sorted them. If there is an odd number of data points, there will be only one in the middle. If there is an even number of data points, the median is the average of the two in the middle. Your algorithm must work for both cases.Define separate functions to calculate and return average and median.Define a separate function to print the required info on the screen:This function should receive the vector, the average and median as parameters.Use a range-based for loop to print the scores in the vector.Do not use global variables! Do not use goto!Document your source code following the guidelines: Lab Documentation GuidelinesAttach the output of your program as a comment at the end of your source code.
0 pages
Symtab New
// // This is the interface for a generic symbol table. A table stores // (symbol, data) pairs. // // A symbol is simply a ...
Symtab New
// // This is the interface for a generic symbol table. A table stores // (symbol, data) pairs. // // A symbol is simply a C string (null-terminated ...
UP Developing a JUnit Like Test Tool in Java Using intellij Programming Exercise
Develop a JUnit-like test tool in Java using intelliJ. Please find the attached document that has all the details for the ...
UP Developing a JUnit Like Test Tool in Java Using intellij Programming Exercise
Develop a JUnit-like test tool in Java using intelliJ. Please find the attached document that has all the details for the assignment.
Flowcharts, Algorithms, and More Alice
Assignment 2: Dropbox Assignment Flowcharts, Algorithms, and More Alice In this assignment, you will apply what you lear ...
Flowcharts, Algorithms, and More Alice
Assignment 2: Dropbox Assignment Flowcharts, Algorithms, and More Alice In this assignment, you will apply what you learned in Week 2 about using flowcharts and algorithms for program development. There are two parts to this assignment: In Part 1, you will create a flowchart and an algorithm for a program for ordering a pizza. In Part 2, you will complete Programming Project 2 Alice 3 in Action with Java and analyze its results. Part 1: Creating a Flowchart and an Algorithm Scenario Bruce Williams wants to order a pizza for dinner from Silver Pizza, but he does not have the telephone number of the pizza company. Based on the given situation, complete the following tasks: Create a flowchart of steps necessary for Williams to find the telephone number of Silver Pizza and order a pizza for dinner. Create an algorithm to support your flowchart as a list of steps with logic, if necessary. Create pseudocode to support the processes for the given situation. Describe your flowchart and algorithm and explain what is occurring within each. Please note that you do not need to write code at this point—just ensure the logic is correct. Part 2: Alice Tutorial Use Alice 3 in Action with Java and answer the following questions upon completion of the Alice project: Programming Project 2: Build an undersea world that contains a clownfish and a shark. Build a swim()method that makes each kind of fish swim forward 1 meter in a more or less realistic fashion. Build a program containing a scene in which a shark chases the clownfish and the clownfish swims to its giant cousin, a clownfish, which chases the shark away. What are some of the other methods listed in the Alice tool that you experimented with? Describe your experience with using them. When you used the Turn and the Roll methods, what differences did you find? Compile your answers for Parts 1 and 2 in a Microsoft Word document. Support your responses with appropriate research and examples. Cite any sources in APA format on a separate page. Submission Details Name your document SU_ITS2104_W2_A2_LastName_FirstInitial.doc. Assignment 2 Grading Criteria Maximum Points Created a flowchart with the necessary steps to find the telephone number of Silver Pizza. 10 Created an algorithm to support the flowchart and ensured that the algorithm included the necessary steps and demonstrated the required logic for the program. 10 Described the flowchart and the algorithm in detail to explain what is happening in each. 5 Completed Programming Project 2 and ensured that the answers meet the requirements of the assignment. 10 Listed the other methods listed in the Alice tool you experimented with and described your experiences with them. 5 Described your experience with using the Turn and the Roll methods and identified the differences between the two methods. 5 Used correct spelling, grammar, and professional vocabulary. Cited all sources using APA format. 5
Write a java project answer provided. Rewrite.
Object Relationship and File IOWrite a program to perform statistical analysis of scores for a class of students.The class ...
Write a java project answer provided. Rewrite.
Object Relationship and File IOWrite a program to perform statistical analysis of scores for a class of students.The class may have up to 40 students.There are five quizzes during the term. Each student is identified by a four-digit student ID number.The program is to print the student scores and calculate and print the statistics for each quiz. The output is in the same order as the input; no sorting is needed. The input is to be read from a text file. The output from the program should be similar to the following:Here is some sample data (not to be used) for calculations:Stud Q1 Q2 Q3 Q4 Q51234 78 83 87 91 862134 67 77 84 82 791852 77 89 93 87 71High Score 78 89 93 91 86Low Score 67 77 84 82 71Average 73.4 83.0 88.2 86.6 78.6The program should print the lowest and highest scores for each quiz.Plan of AttackLearning ObjectivesYou will apply the following topics in this assignment:File Input operations.Working and populating an array of objects.Wrapper Classes.Object Oriented Design and Programming.Understanding RequirementsHere is a copy of actual data to be used for input.Stud Qu1 Qu2 Qu3 Qu4 Qu51234 052 007 100 078 0342134 090 036 090 077 0303124 100 045 020 090 0704532 011 017 081 032 0775678 020 012 045 078 0346134 034 080 055 078 0457874 060 100 056 078 0788026 070 010 066 078 0569893 034 009 077 078 0201947 045 040 088 078 0552877 055 050 099 078 0803189 022 070 100 078 0774602 089 050 091 078 0605405 011 011 000 078 0106999 000 098 089 078 020Essentially, you have to do the following:Read Student data from a text file.Compute High, Low and Average for each quiz.Print the Student data and display statistical information like High/Low/Average..DesignThis program can be written in one class. But dividing the code into simple and modular classes based on functionality, is at the heart of Object Oriented Design.You must learn the concepts covered in the class and find a way to apply.Please make sure that you put each class in its own .java file.package lab2;class Student { private int SID;private int scores[] = new int[5];//write public get and set methods for//SID and scores//add methods to print values of instance variables.}/************************************************************************************/package lab2;class Statistics{int [] lowscores = new int [5];int [] highscores = new int [5];float [] avgscores = new float [5];void findlow(Student [] a) {/* This method will find the lowest score and store it in an array names lowscores. */}void findhigh(Student [] a) {/* This method will find the highest score and store it in an array names highscores. */}void findavg(Student [] a) {/* This method will find avg score for each quiz and store it in an array names avgscores. */}//add methods to print values of instance variables.}************************************************************************************/package lab2;class Util {Student [] readFile(String filename, Student [] stu) {//Reads the file and builds student array.//Open the file using FileReader Object.//In a loop read a line using readLine method.//Tokenize each line using StringTokenizer Object//Each token is converted from String to Integer using parseInt method//Value is then saved in the right property of Student Object.}}************************************************************************************///Putting it together in driver class: public static void main(String [] args) {Student lab2 [] = new Student[40];//Populate the student arraylab2 = Util.readFile("filename.txt", lab2);Statistics statlab2 = new Statistics();statlab2.findlow(lab2);//add calls to findhigh and find average//Print the data and statistics}Topics to LearnWorking with Text Files//ReadSource.java -- shows how to work with readLine and FileReaderpublic class ReadSource {public static void main(String[] arguments) {try {FileReader file = new FileReader("ReadSource.java");BufferedReader buff = new BufferedReader(file);boolean eof = false;while (!eof) {String line = buff.readLine();if (line == null)eof = true;elseSystem.out.println(line); } buff.close(); } catch (IOException e) { System.out.println("Error -- " + e.toString()); } }}//How do you tokenize a String? You can use other ways of doing this, if you like. StringTokenizer st = new StringTokenizer("this is a test"); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); }//How to convert a String to an Integer int x = Integer.parseInt(String) ;__________________________________________________>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Please use the following code as a answer key. Please do not copy ------------------------------------------------------------------------------------------------>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Student class :package driverstudentquiz;public class Student {private int SID;private int scores[] = new int[5]; //get and set functions for scores and IDpublic int getSID(){return this.SID;}public void setSID(int id){this.SID= id;}public int[] getScores(){return this.scores;}public void setScores(int[] s){this.scores= s;} public void printData(){ //print all data of a studentSystem.out.println("\t\t\t\t"+ SID +"\t"+ scores[0] +"\t"+ scores[1] +"\t"+ scores[2] + "\t"+ scores[3] +"\t"+ scores[4] +"\n");}}Statistics class :package driverstudentquiz;public class Statistics {private int[] lowscores= new int[5];private int[] highscores= new int[5];private float[] avgscores= new float[5]; void findlow(Student[] a, int c){ // finds low score.int i=0;for(i=0;i<5; i++){int[] temp= a[0].getScores();int min = temp[i];for(int j=0; j< c; j++){int[] s= a[j].getScores();if(min > s[i]){min = s[i];}}lowscores[i]= min;}} void findhigh(Student[] a, int c){ // find high scoreint i=0;for(i=0;i<5; i++){int[] temp= a[0].getScores();int max = temp[i];for(int j=0; j< c; j++){int[] s= a[j].getScores();if(max < s[i]){max = s[i];}}highscores[i]= max;}}void findavg(Student[] a, int c){ // find average score.int i=0;for(i=0;i<5; i++){int sum =0;for(int j=0; j<c; j++){int[] s= a[j].getScores();sum= sum + s[i];}avgscores[i]= sum/c;}} public void printStatistics(Student[] a, int c){ // print statistics for all students and all quizesfindlow(a,c);findhigh(a,c);findavg(a,c);System.out.println("Lowest score :\t\t"+ lowscores[0] +"\t"+ lowscores[1] +"\t"+ lowscores[2] +"\t"+ lowscores[3] +"\t"+ lowscores[4] );System.out.println("High score :\t\t"+ highscores[0] +"\t"+ highscores[1] +"\t"+ highscores[2] +"\t"+ highscores[3] +"\t"+ highscores[4] );System.out.println("Average score :\t\t"+ avgscores[0] +"\t"+ avgscores[1] +"\t"+ avgscores[2] +"\t"+ avgscores[3] +"\t"+ avgscores[4] );}}Util class :package driverstudentquiz;import java.io.*;import java.util.StringTokenizer;public class Util {static int studentCount;static Student [] readFile(String filename, Student [] stu) {//Reads the file and builds student array.int i=0;try {FileReader file = new FileReader(filename); //Open the file using FileReader Object.BufferedReader buff = new BufferedReader(file);boolean eof = false;while (!eof) {String line = buff.readLine(); //In a loop read a line using readLine method.if (line == null)eof = true;else{// System.out.println(line);stu[i]= new Student();StringTokenizer st = new StringTokenizer(line); //Tokenize each line using StringTokenizer Objectwhile(st.hasMoreTokens()){stu[i].setSID(Integer.parseInt(st.nextToken())); //Value is then saved in the right property of Student Object.int[] arr= new int[5];for(int j=0;j<5;j++){arr[j]= Integer.parseInt(st.nextToken()); //Each token is converted from String to Integer using parseInt method}stu[i].setScores(arr); //Value is then saved in the right property of Student Object. }}i++;}buff.close();} catch (IOException e) {System.out.println("Error -- " + e.toString());}studentCount = i-1;return stu;} }Driver class :package driverstudentquiz;public class DriverStudentQuiz { public static void main(String[] args) {Student arrStudent[] = new Student[40];int studentCount=0;arrStudent = Util.readFile("Data.txt", arrStudent);studentCount= Util.studentCount; // find number of lines from file. which will show number of students in array.Statistics s = new Statistics();for(int i = 0; i<studentCount; i++){ // print student data fetched from filearrStudent[i].printData();}s.printStatistics(arrStudent,studentCount); // print statistics of students} }
City University of Seattle Python Programming Code
Write a program using the turtle library that draws a flower.The flower shall have exactly 8 petals, 1 style/stigma, 4 sta ...
City University of Seattle Python Programming Code
Write a program using the turtle library that draws a flower.The flower shall have exactly 8 petals, 1 style/stigma, 4 stamens or seeds, and one stem.You must use at a minimum, three colors (not including the screen color).Get creative and make a most awesome flower!!!Do not copy and paste flowers you find online!!!Honor code applies, you must write your own code.
Earn money selling
your Study Documents