5.
Output:
Enter age: 10
Enter gender: male
Registration: Tuesday, 9:00am - 12:00pm
6.
Output:
Enter weight for month 1: 10
Enter weight for month 2: 11
Enter weight for month 3: 12
Enter weight for month 4: 13
Enter weight for month 5: 14
Enter weight for month 6: 15
Enter weight for month 7: 14
Enter weight for month 8: 13
Enter weight for month 9: 12
Enter weight for month 10: 11
Enter weight for month 11: 10
Enter weight for month 12: 11
Average weight: 12.17
7.
Output:
Enter marks for student number 1: 12
Enter marks for student number 2: 23
Enter marks for student number 3: 34
Enter marks for student number 4: 45
Enter marks for student number 5: 56
Enter marks for student number 6: 67
Enter marks for student number 7: 78
Enter marks for student number 8: 98
Enter marks for student number 9: 88
Enter marks for student number 10: 77
Enter marks for student number 11: 66
Enter marks for student number 12: 55
Enter marks for student number 13: 44
Enter marks for student number 14: 33
Enter marks for student number 15: 22
Enter marks for student number 16: 11
Enter marks for student number 17: 24
Enter marks for student number 18: 35
Enter marks for student number 19: 46
Enter marks for student number 20: 68
Enter marks for student number 21: 96
Enter marks for student number 22: 75
Enter marks for student number 23: 64
Enter marks for student number 24: 42
Enter marks for student number 25: 47
Class A 2 students
Class B 7 students
Class C 16 students
5. The Success Academy is organizing an event for its students. Write a Python program that...
USE PYTHON 3Write a program that prompts the user to enter the number of students and each student's score, and displays the highest and second- highest scores.
1) Write a Python program that prompts the user to enter the current month name and prints the season for that month. Hint: If the user enters March, the output should be "Spring"; if the user enters June, the output should be "Summer". 2 )Write a Python program using the recursive/loop structure to print out an equilateral triangle below (double spacing and one space between any two adjacent asterisks in the same row). * * * * *...
Q3: Write a Python program the prompts the user for information for stu num students. For each student prompt for the student ID and three quiz grades. Use a nested loop, where the inner loop prompts for the three quiz grades. Print the student's name and average, formatted to two decimal places. The sample output below is when stu_num -3. Enter name of student 1 Mary Jones Enter Score 1: 78 Enter soore 2: 90 Enter soore 3: 91 Name:...
Python help. Write a program that asks the user to enter a person's age. The program should display a message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: If the person is 2 year old or less, he or she is an infant. If the person is older than 2 year, but younger than 13 years, he or she is a child. If the person is at least 13 years...
In Python:Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score. Assume that the number of students is at least 2.
Create the Python code for a program adhering to the following specifications. Write an Employee class that keeps data attributes for the following pieces of information: - Employee Name (a string) - Employee Number (a string) Make sure to create all the accessor, mutator, and __str__ methods for the object. Next, write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for the following information: - Shift number (an integer,...
for python Introduction The purpose of this assignment is to familiarize you with the writing Python scripts that demonstratest usage GUI programming. Long-Distance Calls A long-distance provider charges the following rates for telephone calls: Rate Category Daytime 6:00 a.m. through 5:59 p.m.) Evening (6:00 p.m. through 11:59 p.m.) Off-Peak (midnight through 5:59 a.m.) Rate per Minute $ 0.07 $ 0.12 $ 0.05 Write a GUI application that allows the user to select a rate category (from a set of radio...
Can you help me write a Python 3.7 code for this question? Write a program using functions and mainline logic which prompts the user to enter a number, then generates that number of random integers and stores them in a list. It should then display the following data to back to the user: The list of integers The lowest number in the list The highest number in the list The total sum of all the numbers in the list The...
Write a Python program that prompts the user to enter integer values for each of two lists. It then should displays whether the lists are of the same length, whether the elements in each list sum to the same value, and whether there are any values that occur in both lists.
Python 3 **11.40 (Guess the capitals) Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their capitals are stored in a two- dimensional list, as shown in Figure 11.13. The program prompts the user to answer all the states’ capitals and displays the total correct count. The user’s answer is not case sensitive. Implement the program...