What are the options that might be considered in relation to introducing flexible work practices? What are any barriers to change and the pros and cons of possible changes?
In: Operations Management
Question 2 : Aggregate Scores: Write a program that opens 2
files, quiz.txt, and hw.txt. The program will
read each file and aggregate these values into the associated class
variables. Using a list of Students, the
program keeps track of each student's scores. The program will then
write out to the scores.txt file, the
students score in homework, quizzes, and their overall score.
Related input files.
Each student is supposed to have 3 quiz scores and 3 homework
scores. If a score is not present in the file,
then it defaults to 0 points.
Files will be formatted as a Name followed by a tab followed by a
score.
Note: Refer to the Pre-Lab for the student class, and how to work
with classes.
How to Calculate Grades:
Homework Percent can thus be calculated as:
Homework_Points/3
Quiz Percent can be calculated in the same way:
Quiz_Points/3
Student’s overall score will be computed using the following
formula
HW_Score_Percent * .5 + Quiz_Score_Percent * .5
These scores work as each assignment is out of 100. Thus the
homework percent is calculated as
hw_percent = student.HW/300 * 100, which equals hw_percent =
student.HW/3
Required Design Schematic:
You must use the Student class. You must use a list of students.
You must not use global variables.
● Write a function find_student(student_list, name)
o Either returns a student or an index to the student in the
list
o Should return None if a student with name is not found
● Write a function get_HW_Scores(file_name, student_list)
o Opens the file
o Reads the file
▪ Divide the line into a name and score
▪ Finds the student
▪ Adds the score to the students homework score
o Closes the file
● Write a function get_Quiz_Scores (file_name, student_list)
o Opens the file
o Reads the file
▪ Divide the line into a name and score
▪ Finds the student
▪ Adds the score to the students quiz score
o Closes the file
● Write a function assign_grade(score)
o Returns a string containing a letter grade matching the percent,
see the week 3 lab for scoring
brackets
o Feel free to copy your lab function for use here
● Write a function output_Scores(student_list)
o Opens the file scores.txt
o Loops over every student in the list
▪ Writes the students name + "\n"
▪ Writes "HW_Percent: " + str(hw_percent) + "% \n"
▪ Writes "Quiz_Percent: " + str(quiz_percent) + "% \n"
▪ Calculate num to be the overall score for the student
▪ Writes "Overall: " + str(num) + "%" "(" + assign_grade(num) + ")"
+ "\n"
o Closes the file
● Write a function main to call the above and other functions as
needed to complete the task
Note: You are allowed to create as many helper functions as you
need.
Sample Input File:
Apple 100
Cube 69
Apple 100
Cube 50
Apple 100
Circle 85
Circle 89
Circle 88
Sample Output File:
Apple
HW_Percent: 100.0%
Quiz_Percent: 83.33333333333333%
Overall: 91.66666666666666%(A-)
Cube
In: Computer Science
Define the term symbiosis specifically as it applies in a biological context. Compare and contrast parasitism, mutualism, and commensalism using a specific example of each type of symbiosis. For all three examples, explain how each organism in the relationship is affected.
In: Biology
A research team conducted a study showing that approximately 20% of all businessmen who wear ties wear them so tightly that they actually reduce blood flow to the brain, diminishing cerebral functions. At a board meeting of 20 businessmen, all of whom wear ties, what are the following probabilities? (Round your answers to three decimal places.)
(a) at least one tie is too tight
(b) more than two ties are too tight
(c) no tie is too tight
(d) at least 18 ties are not too tight
In: Math
Research the internet for companies that have executed data science projects. Pick one company and describe a possible data science life cycle for that project. Make use of both information that you have researched as well as the information provided in the data science life cycle models.
In: Computer Science
Explain two theories or frameworks for understanding how Western Europe emerged out of 1,000 years of feudalism.
(e.g. 2-3 well-reasoned paragraphs).
In: Economics
Two cannons are mounted as shown in the drawing and rigged to fire simultaneously. They are used in a circus act in which two clowns serve as human cannonballs. The clowns are fired toward each other and collide at a height of 1.05 m above the muzzles of the cannons. Clown A is launched at θA = 76.0° angle, with a speed v0A = 9.50 m /s. The horizontal separation between the clowns as they leave the cannons is d = 5.55 m. Find the launch speed v0B and the launch angle θB (>45.0°) for clown B. magnitude m/s direction °.
In: Physics
What is the potential of a cell made up of Zn|Zn2+ and Cu|Cu2+ half-cells at 25o C if [Zn2+] = 0.25 M and [Cu2+] = 0.15 M?
(Answer should be E = +1.09 V but I need to know how to get to that)
In: Chemistry
Write a Java Program using the following instruction:
Create the following 3 methods that calculate and display the sum or product of the integers from 1 to the number input.
getNum Receives no input. Prompts the user to enter a number, use a loop to validate. Returns the result.
calcSum Receives an integer as input. Calculates the sum of the integers from 1 to this number. Returns the result.
calcProd Receives an integer as input. Calculates the product of the integers from 1 to this number. Returns the result.
Main should: Prompt for a character that determines if you want to calculate the sum (‘S’ or ‘s’) or product (‘P’ or ‘p’). You should use a switch to process the choices. Upper and lower case values should work the same way. Use default to give an error message if anything else is entered. (You can input as String or char)
if a valid option is entered, use getNum to prompt for the number
Note that calcSum and calcProduct RETURN the result to main, and the output is printed in main. For example, if you input 5 as the number, and ‘S’, the program should calculate 1 + 2 + 3 + 4 + 5 and display the sum as 15. If you input 5 and ‘P’ the program should calculate 1 x 2 x 3 x 4 x 5 and display the product as 120. . The process should repeat as long as the user wants to continue. This loop should be in main. DO NOT use System.exit command to end the program. . See sample output below.
Enter S for sum, P for prod:z
Invalid choice Again(y/n)? y
Enter S for sum, P for prod:s
Enter an integer greater than 1: 1
Must be greater than 1, re-enter: -3
Must be greater than 1, re-enter: 3
The sum of the numbers from 1 to 3 is 6 Again(y/n)? y
Enter S for sum, P for prod:p
Enter an integer greater than 1: 4
The product of the numbers from 1 to 4 is 24 Again(y/n)? n
In: Computer Science
How would the S/D curves shift if a $3 tax was imposed on suppliers for each unit of caviar and milk sold? With visuals please explain how the economic incidence, DWL, and welfare effects differ between the two goods and why?
How do you determine if the demand and supply or elastic or not?
Can Aishwarya Verma not respond please. I would like to understand from someone else's explanation.
In: Economics
Why should a time-based authentication system invalidate the current password on a successful authentication?
In: Computer Science
Explain the difference between a market penetration strategy and a market development strategy.
In: Economics
QUESTION 4
Discuss the sanctity of life versus the quality of life debate as presented by Peter Singer. Your answer should demonstrate a solid awareness of the information presented in the text. Be as clear and specific as you can.
In: Biology
0.560 g He, 20.482 g F2, and 13.960 g Ar are placed
in a 18.4-L container at 25 oC. What are the molar
concentrations and partial pressures of the gases?
(All values to the nearest 0.0001)
| gas | Molar concentration | Partial pressure |
|---|---|---|
| He | M | atm |
| F2 | M | atm |
| Ar | M | atm |
What is the total pressure in the container?
P = atm
In: Chemistry
Let X ∼ Pois(4), Y ∼ Pois(12), U ∼ Pois(3) be independent random variables.
a) What is the exact sampling distribution of W = X + Y + U?
b) Use R to simulate the sampling distribution of W and plot your results. Check that the simulated mean and standard error are close to the theoretical mean and standard error.
c) Use the simulated sampling distribution to estimate P(W ≤ 14) and then check your estimate with an exact calculation.
In: Math