Description
- Design a recursive sum method to compute the sum of all the numbers between 1 and any positive integer NThen call the method with the following numbers:sum(4)sum(19)sum(100)
- Attach your java source code + the screen shots of the output
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
Here is the answer.Please run t...
Completion Status:
100%
Review
Review
Anonymous
Just what I needed…Fantastic!
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
10 pages
Slide Presentation
• In the recent past years, we have been preferring much use of Windows operating system to run our business activities ...
Slide Presentation
• In the recent past years, we have been preferring much use of Windows operating system to run our business activities every day. We have been ...
Toolbox 2
Create a webpage or blog (you can use Google Suite(Links to an external site.)Links to an external site., Wix (Links to an ...
Toolbox 2
Create a webpage or blog (you can use Google Suite(Links to an external site.)Links to an external site., Wix (Links to an external site.)Links to an external site., or any other free and shareable application). You must share the link in the discussion board in order to complete this assignment. You are required to view and respond to at least two of your peers. I suggest you first gather your data before attempting to create your webpage. Make sure your page is public. Pages that cannot be viewed will not receive any credit.Additional Instructions:As we will learn through this course, one of the biggest factors in understanding the children we serve is being able to connect with them. Cultural Competence is a skill that we develop and constantly need to fine tune as our demographics and population may change drastically from year to year (even month to month with the little ones!) That being said, as we conclude the course, you will create your own “Tool Box”.This Tool Box should include:Literature or media relating to cultural competence in general (quotes, poems, readings from the text, reputable external resources, etc)Literature or media relating to at least 3 topics discussed throughout this course and the importance of its appropriate integration into our classrooms (DAP practices should always be the standard)Different ways you can show your students and parents that you value diversity on all levels (ex: cultural, religious, gender, abilities, diversity between family structures and units, etc.)How you can communicate with families of various backgrounds and ways you can avoid potential pitfalls when communicating cross-culturallyHow are you going to increase your overall cultural awareness?How you can help counteract any bias or prejudice towards a particular groupSpecific Community Resources that may be available to parents and families in need; or resources that can help families and parents with particular needs (ex: divorced parents support groups)
write short discussion
It is important to take cyber security seriously and to keep your computer safe from viruses and malware.Discuss your comp ...
write short discussion
It is important to take cyber security seriously and to keep your computer safe from viruses and malware.Discuss your computer security protection and list the Pros/Cons of the anti-virus program on your computer.
EE 300 San Diego State University Sample Mean MATLAB Code Questions
1. This project does not require high level of Matlab 2. should be ver easy to do with the time giving 3. all info Is in t ...
EE 300 San Diego State University Sample Mean MATLAB Code Questions
1. This project does not require high level of Matlab 2. should be ver easy to do with the time giving 3. all info Is in the file uploaded here 4. Must be done without any plagiarism!!!
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} }
Boston University Apply SQL For Functional Grocery Shop Database Project
Apply SQL concepts to create a functional database appropriate for a small business/hobby.Part 1: Create Table diagram fro ...
Boston University Apply SQL For Functional Grocery Shop Database Project
Apply SQL concepts to create a functional database appropriate for a small business/hobby.Part 1: Create Table diagram from ERD- The database will have between 5 and 7 related entities.Part 2: Write and run scripts to create tables and define constraints.- All tables will have PK/FK definedPart 3: Insert sample data- At least 5 records should exist in each table.Part 4: Test databasePart 5: Write questions and answer queries to exercise each one of the following concepts:Sorting data and Restricting Rows (Ch 8)Joining Data (Ch 9)Single-row functions (Ch 10)Group functions (Ch 11)Subqueries (Ch 12)Part 6: Prepare a final project presentationPart 7: Present your Final Project (5-7 minutes)Present your business and the ER diagram, explain relationships between tables and all constraints.Part 8: Turn in the project, include the ER diagram, the presentation, and script(s) to create the DB and the queries from Part 5.
Similar Content
I need Help for javascript
I need help with this homework- the homework about App. I have 4 questions I need help to do that,I need help with this ...
Python Programming Questions
Q1 How long can an identifier be in Python?Q2. How would you convert a string into lowercase?...
Programming II critical thinking
IMPORTANT NOTE: THIS IS A JAVA APPLICATION AND WE USE ECLIPSE IDECreate a simple GUI Bank Balance application that will ob...
CIS 512 SU Week 1 Preventing Denial Of Service Attack Discussion
Preventing Denial-of-Service (DoS) AttacksAn organization’s infrastructure and physical assets may determine whether or ...
Southern New Hampshire University C++ Questions
CS 300 Course Information
Course List
This document outlines all of the courses that the advising team will need you to in...
Southern New Hampshire University Page Website in Html5 and Css3 Problems
Guidelines for html5 and css3 assignment:You will create a four page website in html5 and css3. The topic could be about a...
Allot31
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the a...
Lesson12
1.Given the below Car class, update the default constructor so that it calls the two argument 2. Next, override the equals...
Database Logical Design
WORKERS (Worker_ID, First_Name, Last_Name, Home_Address, Preferred_Number, WORK_SHIFTS (Shift_ID, First_Shift, Second_Shif...
Related Tags
Book Guides
Where the Crawdads Sing
by Delia Owens
Sharp Objects
by Gillian Flynn
Frankenstein
by Mary Shelley
To the Lighthouse
by Virginia Woolf
You Are a Badass
by Jen Sincero
Rules Of Civility
by Amor Towles
The Picture of Dorian Gray
by Oscar Wilde
Brave New World
by Aldous Huxley
The Curious Case of the Dog in the Night Time
by Mark Haddon
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
10 pages
Slide Presentation
• In the recent past years, we have been preferring much use of Windows operating system to run our business activities ...
Slide Presentation
• In the recent past years, we have been preferring much use of Windows operating system to run our business activities every day. We have been ...
Toolbox 2
Create a webpage or blog (you can use Google Suite(Links to an external site.)Links to an external site., Wix (Links to an ...
Toolbox 2
Create a webpage or blog (you can use Google Suite(Links to an external site.)Links to an external site., Wix (Links to an external site.)Links to an external site., or any other free and shareable application). You must share the link in the discussion board in order to complete this assignment. You are required to view and respond to at least two of your peers. I suggest you first gather your data before attempting to create your webpage. Make sure your page is public. Pages that cannot be viewed will not receive any credit.Additional Instructions:As we will learn through this course, one of the biggest factors in understanding the children we serve is being able to connect with them. Cultural Competence is a skill that we develop and constantly need to fine tune as our demographics and population may change drastically from year to year (even month to month with the little ones!) That being said, as we conclude the course, you will create your own “Tool Box”.This Tool Box should include:Literature or media relating to cultural competence in general (quotes, poems, readings from the text, reputable external resources, etc)Literature or media relating to at least 3 topics discussed throughout this course and the importance of its appropriate integration into our classrooms (DAP practices should always be the standard)Different ways you can show your students and parents that you value diversity on all levels (ex: cultural, religious, gender, abilities, diversity between family structures and units, etc.)How you can communicate with families of various backgrounds and ways you can avoid potential pitfalls when communicating cross-culturallyHow are you going to increase your overall cultural awareness?How you can help counteract any bias or prejudice towards a particular groupSpecific Community Resources that may be available to parents and families in need; or resources that can help families and parents with particular needs (ex: divorced parents support groups)
write short discussion
It is important to take cyber security seriously and to keep your computer safe from viruses and malware.Discuss your comp ...
write short discussion
It is important to take cyber security seriously and to keep your computer safe from viruses and malware.Discuss your computer security protection and list the Pros/Cons of the anti-virus program on your computer.
EE 300 San Diego State University Sample Mean MATLAB Code Questions
1. This project does not require high level of Matlab 2. should be ver easy to do with the time giving 3. all info Is in t ...
EE 300 San Diego State University Sample Mean MATLAB Code Questions
1. This project does not require high level of Matlab 2. should be ver easy to do with the time giving 3. all info Is in the file uploaded here 4. Must be done without any plagiarism!!!
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} }
Boston University Apply SQL For Functional Grocery Shop Database Project
Apply SQL concepts to create a functional database appropriate for a small business/hobby.Part 1: Create Table diagram fro ...
Boston University Apply SQL For Functional Grocery Shop Database Project
Apply SQL concepts to create a functional database appropriate for a small business/hobby.Part 1: Create Table diagram from ERD- The database will have between 5 and 7 related entities.Part 2: Write and run scripts to create tables and define constraints.- All tables will have PK/FK definedPart 3: Insert sample data- At least 5 records should exist in each table.Part 4: Test databasePart 5: Write questions and answer queries to exercise each one of the following concepts:Sorting data and Restricting Rows (Ch 8)Joining Data (Ch 9)Single-row functions (Ch 10)Group functions (Ch 11)Subqueries (Ch 12)Part 6: Prepare a final project presentationPart 7: Present your Final Project (5-7 minutes)Present your business and the ER diagram, explain relationships between tables and all constraints.Part 8: Turn in the project, include the ER diagram, the presentation, and script(s) to create the DB and the queries from Part 5.
Earn money selling
your Study Documents