Using Python
Define a Student class. A Student class needs to have two attributes, the student_name and strudent_grade . It also has three methods as follows: set_grade(grade) that sets the grade of the student. get_grade returns the grade of the student. print_student_info that print the name and grade of student in a formatted string.
In the math_utils.py file define a function called average_grade(roster) . This method accepts as input a list of Student Objects and returns the average of the current roster.
In the app.py file, create a main function, to create a roster of 10 students, print the list of students, and print the average score of the current roster. You can either populate the student roster interactively (i.e. by using the input method to prompt the user from the console) or hard-code the student information in your code.
The app.py file must use the Student class, and the average_grade method you defined the mymodules module.
In: Computer Science
a group of students estimated the length of one minute without reference to a watch or clock, and the time second are list belpw. use a 0.01 significance level to tesr the claim that these times are from a population with a meab equal to 60 second. does it appear that the students are reasonably good at estimating one minute?
77 90 47 72 54 31 71 75 78 56 75 76 102 99
73
determine the test statistic ?
p value?
how do you calculate this on the calculator or statscrunch
In: Statistics and Probability
Design and implement a program to allow a college administrator
to register new students and
add courses to the existing one. In addition, your program should
allow the administrator to do
the following:
• Add/Remove a new student
• Add/Remove a course to/from a selected student
• Search for a student either by last name or by id.
• Search for a course either by name or by id.
• Display a selected student along with the courses s/he is
registered for.
• List all registered students along with the courses each student
is registered for.
Using java
In: Computer Science
Create a simple python app that allows the user to create a roster of students and their grade on CUS-1166.
Moreover the app needs to calculate the average grade of students added to the roster.
1-To begin with, create a new file n the same working folder as part A (i.e. cus1166_lab1) and name it app.py. Moreover, create a subfolder and name it mymodules.
2-Within mymodules create the files __init__.py , models.py , math_utils.py .
3-In the models.py file define a Student class. A Student class need to have two attributes, the student_name and strudent_grade .
4-It also has three methods as follows: set_grade(grade) that sets the grade of the student. get_grade returns the grade of the student. print_student_info that print the name and grade of student in a formated string. In the math_utils.py file define a function called average_grade(roster) .
This method accepts as input a list of Student Objects and returns the average of the current roster. In the app.py file, create a main function, to create a roster of 10 students, print the list of students, and print the average score of the current roster. You can either populate the student roster interactively (i.e. by using the input method to prompt the user from the console) or hard-code the student information in your code. You app.py file must use the Student class, and the average_grade method you defined the mymodules module.
In: Computer Science
Java
Write a program to record the GPAs of a class and find the percentage of students in each GPA. The program first allows the user to enter the number of students enrolled in the class, and then to enter the GPA of all students one by one. For each student, the input must be between 1 and 4 inclusively. Otherwise, the software displays a message as “Invalid number!” and asks for a new GPA for the same student
|
Enter number of students: 8 Enter GPA for student #1 is: 1 Enter GPA for student #2 is: 5 Invalid number! Enter GPA for student #2 is: 2 Enter GPA for student #3 is: 3 Enter GPA for student #4 is: 4 Enter GPA for student #5 is: 4Enter GPA for student #6 is: 2 Enter GPA for student #7 is: 3 Enter GPA for student #8 is: 4 |
The total number of students is 8. ***************** GPA 3 --- 2 student(s) |
Note: you should trace the GPA list just once. So, you should use an array GPAFreq with four elements; to store the frequencies of each GPA from 1 to 4.
In: Computer Science
Assume the government wants to increase GDP and income Y. It has $100 million to use. Explain why spending it on roads and bridges (government spending G) will increase Y more or less than if it used the money on transfer payments (R) such as welfare payments. You must refer to the multiplier and mathematically why one policy would be different from the other. Explain why one policy would work better than the other.
In: Economics
Marvin Bridges is a 25 percent partner in the Munson partnership. On November 23, 2017, Marvin contributes property with an adjusted basis of $75,000 and a fair market value of $250,000 to the Munson partnership. On March 15, 2018, Marvin receives a $187,500 cash distribution from the partnership. a) Why would the IRS seek to classify the transactions as a disguised sale? b) . Assume that the IRS is successful in classifying the transactions as a disguised sale. Outline the income tax consequences to Marvin.
In: Accounting
Two separate capacitors, C1 and C2
C1 = 36 micro-Coulomb on 3 micro-Farad
C2 = 72 uC on 5 uF
C2 had a gap of 0.2m maintained by a compressed plastic spring inside the gap, the natural spring length was 0.5m, the compressed spring length was 0.2 m. Spring constant = 8,000 micro-Newton/ meter Action: Connected the two capacitors in parallel
Part A Find Q2-new, C2-new, new gap,
Part B Find the initial total energy, the final total energy
-use the energy formulas
In: Physics
1) a car battery is rated at 90 amphour. How much charge is available in the battery?
2) A +2.6 uc point charge is placed at the center of a cube with sides of length 7.5cm. What is the electric flux through two sides of the cube?
3) The amount of charge flowing though a circuit caries with time according to.. q(t)=(0.2t2-0.3t), with q in coulombs and t in seconds. Find the current through the circuit at t = 1.5 seconds.
4) Calculate the acceleration of an electron placed in a uniform electric field of magnitude 4.5*105 N/C.
In: Physics
Write a 200- to 400-word essay about the most important thing you learned while watching "Freedom of the Press." please answer based on the video- short video
watch this video by typing in youtube: Freedom of the Press: Crash Course Government and Politics #26
or link :https://www.youtube.com/watch?v=Vtpd0EbaFoQ&list=PL8dPuuaLjXtOfse2ncvffeelTrqvhrz8H&index=26
In: Economics