i need forst code in java same out as shown in picture. and for week #6 i need that code in C++ [its from .txt file just wrote how to get into it and right other steps of the code i can do it)
kindly answer both codes one in java and other is C++ week 6.
Instructions: Download the Courseverage.class file from the Classes Review folder in the Course Modules' area in Blackboard. Using this class file, create a Java application that does the following 1. Instantiates a Courne Average object named myCourse 2. (Without prompting) Sets the student name to your name 3. (Without prompting) Sets the course ID to CS 154 4. Sets the number of programs to 5, and the weight of program to 20 (10) 5. Sets the number of quizzes 104 and the weight of quizzes se 30% (30) 6. Sets the number of tests to 2 and the weight of testste 30% (-30) 7. Calculates the respective averages for programs, quizzes and tests 8. Computes the final average 9. Displays the student's name. course ID and final average 10. Instantines a second Course Average object named another course 11. Prompt the user for the student name 12. Prompt the user for the course ID 13. Repeat steps 4-9 above Your output should resemble the following Eoces score for en 11:15 Enter ce for program 12:30 Enter for : Intere for program 1436 Inter were for Entet e for 10 Intet er for Intere for us 13:12 Inter som for 14 Enter for Test Enter core for tus 12:33 Course DC 154 Tanal grade for spongebob Square: 2.2 Enter the TS Enter the course 1: 154 Enter were to a Interscore for program 12:39 Enter som for Enter er for protect Interesse for gute 11:39 Enterreece force 1 Inter for que Later one for gute : 3 Therefore 1135 Eater score for Tees 12: Course 1: C 184 Class: Courseverage Instance methods: public void setStudentName() - prompts for and sets the student attie public void setStudent Name (String a - sets the student name to the given value public void setCourseID) -prompts for and sets the course ID public void setCourse Distring) sets the course ID to the given value public void setNum Programs tinta - sets the number of program assignments to the gives vale Enter score for Test 12: 93 Course ID: CS 154 Tinal grade for Your Name: 93.5 Class: Courseverage Instance methods: public void setStudentName() -prompts for and sets the student name public void setstudent Name (String n) sets the student name to the given value public void setCourseID) -prompts for and sets the course ID public void setCourseID (String n) - sets the course ID to the given value public void setNumPrograms (int n) - sets the number of program assignments to the given value public void setWeight Programs (double ) - sets the weight of program assignments to the given percentage public void setNumQuizzes (int n) - sets the number of quizzes to the given value public void setWeightQuizzes (double w) - sets the weight of quizzes to the given percentage public void setNowTests (int n) sets the number of tests to the given value public void setWeightTests (double w sets the weight of tests to the given percentage public double computerina Ive () - computes the final average based on quizzes, test, & programs public void displayFinalAve (double ave) - outputs the student's name, ID, and final average Class methods public static void calcProgramsave () - prompts for each program grade and calculates the average public static void calcQuzave) - prompts for each quiz grade and calculates the average public static void calcTestAve() - prompts for each test grade and calculates the average Week #6 Class Exercise - More Array and Text Files Part II Use week6numbers1.txt and load the values in double array with 50 number. Then create the following functions: 1. That will return the average of the array. 2. That will return the number items in the array that greater than the average. 3. That will return the number items in the array less than the average. 4. That will return the range of the numbers. (Calculated by subtracting the smallest number from the largest.) 5. That will return the Standard Deviation. Formula = (; )? N o population standard deviation N = the size of the population Ti = each value from the population * the population mean 2. W YOL ww ho 11 11 w de void the te wa de vida word pro 1 S 12 w 111 w potestatem obieta Pisteet - Eerste quis 19 et score for 100 Enter for Enter for Text Este te Course ID: 164 Class: Courseverage Instance methods: publie voldsetStudentane () -prompts for and sets the studentame public void setStudent Name (String) - sets the student name to the given value public void setCourant) -prompts for and sets the course ID public void serCourse Distring) - sets the course ID to the given value public void setNum Programs (int n) sets the number of program assignments to the given value public void set Weight Programs (double ) - sets the weight of program assignments to the given percentage public void setNumQuizzescint n) sets the number of quizzes to the given value public void set WeightQuizzes double w sets the weight of quizzes to the given percentage public void net anesta tint - sets the number of tests to the given value public void set Weight Teata (double w sets the weight of texts to the given percentage public double computeFinaive) - computes the final average based on quizzes, test, & programs public void displayFinalAve double ave) - outputs the student's name, ID, and final average Class methods: public static void calcProgrameve) - prompts for cach programm grade and calculates the average public static void caleQuizAve prompts for each quiz grade and calculates the average public static void calcestive) - prompts for each test grade and calculates the average Deverage Week #6 Class Exercise - More Array and Text Files Part II Use week6numbers1.txt and load the values in double array with 50 number. Then create the following functions: 1. That will return the average of the array. 2. That will return the number items in the array that greater than the average. 3. That will return the number items in the array less than the average. 4. That will return the range of the numbers. (Calculated by subtracting the smallest number from the largest.) 5. That will return the Standard Deviation. Formula = (; )? N o population standard deviation N = the size of the population Ti = each value from the population * the population mean