Using the Phyton program; Write a program using loop (use days of the week as a list) to ask the user to enter the total hours spend studying for each day of the week.
How many hours spent studying on Monday?
How many hours spent studying on Tuesday?
Count and display the number of days the user
1) studied less than 4 hours.
2) studied between 4- 8 hours
3) studied more than 8 hours
days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
count1, count2, count3 = 0, 0, 0
for day in days:
hours = int(input("How many hours spent studying on {}? ".format(day)))
if hours < 4:
count1 += 1
elif hours <= 8:
count2 += 1
else:
count3 += 1
print("Number of days studied less than 4 hours is", count1)
print("Number of days studied between 4-8 hours is", count2)
print("Number of days studied more than 4 hours is", count3)

Using the Phyton program; Write a program using loop (use days of the week as a...
PYTHON CODE First Code: Write a program that uses a text file to store the daysand hours that a user worked in a week. The program should begin by prompting for the number of days worked in the week. It should continue with a loop for input of the days and hours and for writing these to the file, each on its own line. Sample Output (inputs shown in boldface) How many days did you work this week? 5 Enter...
Need this program ASAP
C++ language
1b. Write the implementation file timeClock.cpp for the class TimeClock. Com pile the file, and save it in the Chap 13 folder of your Student Data Files. 1c. Write a C++ program named weeklyPay.cpp to test your class Timeclock Your program should ask the user how many hours the user worked each day of the week. An object should be created for each day of the week with the number of hours for each...
1. Day of the Week Write a program that asks the user for a number in the range of 1 through 7. The program should display the corresponding day of the week, where 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, and 7 = Sunday. The program should display an error message if the user enters a number that is outside the range of 1 through 7. (On PYTHON IDLE...
A bug collector collects bugs every day for one week (7 days). Write a program that asks the user for the total number of bugs they collected for each day and stores each number in a list. Use a loop to calculate the total number of bugs and display the result. (Python)
I need to write a program in java using two array lists. I need to program to prompt the user to enter a day of the week and return an output of a predetermined temperature for the day they selected. I also need the program the output the average of daily temperatures across the week if the user inputs "week". So basically if i set the temperatures to something arbitrary i.e.: Monday = 50 Tuesday = 55 Wednesday = 52...
Write a php script that assigns the days of the week to an array named $days[]. Use output statements to display "The days of the week in English are: " along with the values in the $days[ ] array. Following the output statements, reassign the values in the $days[ ] array with the day of the week in French. Sunday is Dimanche, Monday is Lundi, Tuesday is Mardi. Wednesday is Mercredi. Thursday is Jeudi. Friday is Vendredi, and Saturday is Samedi....
Starting Out with C++ (9th Edition) Chapter 4, Problem 7PCWrite a program that asks the user to enter a number of seconds.• There are 86400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86400, the program should display the number of days in that many seconds.• There are 3600 seconds in an hour. If the number of seconds entered by the user is less than 86400, but is greater...
In C language using printf and scanf statements: Write a program to display a histogram based on a number entered by the user. A histogram is a graphical representation of a number (in our case, using the asterisk character). On the same line after displaying the histogram, display the number. The entire program will repeat until the user enters zero or a negative number. Before the program ends, display "Bye...". The program will ask the user to enter a non-zero...
Using Java, write a program that creates a class to represent what you spend your time on every week. Inside of that class, you will need a 2D array that represents each day of the week and how much time you spend on any given activity (the size should be 7 by whatever the number of activities you perform in a week). You may enter the values however you like, but you will need to display the array so that...
5.11: Population Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day. Input Validation.Do not accept a number less than...