Test Cases:
Enter name: Jorge
Enter wage: 9.25
Enter hours: 10
Total pay is: $92.50
Enter name: John
Enter wage: 20.00
Enter hours: 50
Total pay is: $1100 ($800 + $300 overtime)
python, keep it simple
In: Computer Science
Python Please
Define a class that will represent soccer players as objects. A soccer player will have as attributes, name, age, gender, team name, play position on the field, total career goals scored. The class should have the following methods:
1. initializer method that will values of data attributes arguments. Use 0 as default for career goals scored.
2. str method to return all data attributes as combined string object.
3. addToGoals that will accept an argument of int and add to the career goals scored.
4. provide mutators for age, play position on the field, and team name.
5. provide an accessor that will return all data attributes as a tuple.
In: Computer Science
•A theater owner agrees to donate a portion of gross ticket sales to a charity
•The program will prompt the user to input:
−Movie name
−Adult ticket price
−Child ticket price
−Number of adult tickets sold
−Number of child tickets sold
−Percentage of gross amount to be donated
•Inputs: movie name, adult and child ticket price, # adult and child tickets sold, and percentage of the gross to be donated
•The program needs to:
1.Get the movie name
2.Get the price of an adult ticket price
3.Get the price of a child ticket price
4.Get the number of adult tickets sold
5.Get the number of child tickets sold
In: Computer Science
Python programming
*****************************************************************************************************
If we load the json files then how could we use the objects to extract particular values from those files.
eg:
fi1 = open("king.json", "rb")
obj1 = yaml.safe_load(fi1.read())
fi1.close()
fi2 = open("queen.json", "rb")
obj2 = yaml.safe_load(fi2.read())
fi2.close()
Now if the JSON file queen.json had elements like name, rule year, children, etc. and we wanted the name of the queen who ruled between particular years, how would we do it?
second would be getting a value common for both files? like the name of king and queen who ruled between specific years.
In: Computer Science
Write a PYTHON program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name.
Write the following functions in the program: calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student.
determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale: 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F.
In: Computer Science
Q1) Create a program that do the following:
1. Asks the user to enter n marks for n students, read the marks and the names and store them in a double linked list.
2. Write a method to find the largest mark and print the name of the student having that mark
3. Write a method to print the content of the list (name, mark)
4. Write a method to search the list for a given mark and prints the result
6. Insert 2 new students to the list (print the list before and after the insertion)
7. Delete any students with the first letter "D" in his name, (print the list before and after the deletion)
Submit .java files only.
In: Computer Science
Create an application that allows you to enter student data than consists of an ID number, first name, last name, and grade point average. If the student's GPA is less than 2.0, write the record to an academic probation file, otherwise, write the record to a good standing file Once the student records are complete, read in the good standing file. If the GPA is greater than or equal to 3.5, display the students name for the Dean's List Be sure to include any exceptions needed for the program to run smoothly. Save the file as StudentsStanding.java I've figured out the first part in writing the files, but having trouble with reading in the files to make the Dean's List.
In: Computer Science
The following diagram shows a distillation process. Distillation is a technique used in chemistry to purify water from dissolved impurities, mainly salts. An example is the conversion of sea water to fresh water as is done in many countries including Oman. Temperature plays an important role in distillation process and the various steps involved are as follows.
Step1: Heating impure water to produce steam in the distillation flask.
Step2: Steam passes through to the Liebig condenser where it is condensed.
Step3: Condensed water is collected in the receiving flask as pure water also called distilled water.

a) Name the process that is taking place in step1 where water changes to steam.
b) Name the process that is taking place in step2 where steam changes to water again.
c) Name whether step1 is exothermic or endothermic? Justify your answer.
d) Name whether step2 is exothermic or endothermic? Justify your answer. The end-product of distillation is an element, compound or mixture? Justify your answer.
In: Chemistry
General biology 1 lab report Kingdoms Bacteria, Protista, and Fungi
Please make sure to give more details cause this lab really important cause I can't separate those questions cause each one of these is connected to each other so please try to answer all those questions
Fungus Presentations Phylum Chytridiomycota
Where are they found?
What is the name of the reproductive structure?
Drawing of the reproductive structure:
How do they get their food?
Some common examples of these fungi are:
Phylum Zygomycota
Where are they found?
What is the name of the reproductive structure?
Drawing of the reproductive structure:
How do they get their food?
Some common examples of these fungi are:
Phylum Ascomycota
Where are they found?
What is the name for the reproductive structure?
Drawing of the reproductive structure:
How do they get their food?
Some common examples of these fungi are:
Phylum Basidiomycota
Where are they found?
What is the name for the reproductive structure?
Drawing of the reproductive structure:
How do they get their food?
Some common examples of these fungi are:
In: Biology
JAVA: This is my code, but when it runs, for the "Average Score" output, it only gives me NaN. How can I fix that?
import java.util.Scanner;
public class prog4 {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
String name;
double score;
double minScore = 0;
double maxScore = 0;
int numberOfRecords = 0;
double sum = 0;
double average = sum / numberOfRecords;
System.out.printf("%-15s %-15s %-15s\n", "Student#", "Name",
"Score");
while (reader.hasNext()) {
name = reader.next();
score = reader.nextDouble();
sum += score;
System.out.printf("%8d%12s %16.2f\n", numberOfRecords + 1, name,
score);
if (numberOfRecords == 0) {
minScore = score;
} else if (minScore > score) {
minScore = score;
}
if (maxScore < score) {
maxScore = score;
}
numberOfRecords += 1;
}
System.out.println("Number of Records: " +
numberOfRecords);
System.out.printf("Max Score: %.2f\n", maxScore);
System.out.printf("Min Score: %.2f\n", minScore);
System.out.printf("Average Scores: %.2f\n", average);
}
}
In: Computer Science