Question

In: Computer Science

I need a python program and a flowchart please!! Problem #1:    How much should I...

I need a python program and a flowchart please!!

Problem #1:    How much should I study outside of class?

           

            Issue:

Your fellow students need help. This is their first year in college and they need to determine how many hours they need to study to get good grades.

Study Hours Per Week Per Class                    Grade

15                                                           A

12                                                           B

9                                                             C

6                                                             D

0                                                             F

Project Specifications:

  1. The user enters their full name and the number of credits they are taking.
  2. The user will then enter the grade they want assuming the same grade for all classes.
  3. The program displays for each student: student’s name, number of credits, total number of weekly study hours, and grade they should expect to receive. In the following format –

Name: FirstName LastName

Credits: 12

Study Hours: 60

Grade: A

  1. At the end of the program, the program displays the total number of students who used the program, the average credits taken, and the average study hours. In the following format –

Total Students: 3

Average Credits: 9

Average Study Hours: 20

Solutions

Expert Solution

Answer: Hey!! Kindly find your solution here. If you have any queries, feel free to ask me. Thanks.

studentsName = [""] * (10)
grade = [""] * (10)
credits = [0] * (10)
hours = [0] * (10)

creditSum = 0
avgHours = 0
for i in range(1, 2 + 1, 1):
print("Enter student's name")
studentsName[i] = input()
print("enter credits")
credits[i] = int(input())
creditSum = credits[i] + creditSum
print("enter study hours")
hours[i] = int(input())
avgHours = hours[i] + avgHours

creditSum = float(creditSum) / i
avgHours = float(avgHours) / i
print("Total Students:" + str(i))
print("Average Credits:" + str(creditSum))
print("Average Study Hours:" + str(avgHours))



Related Solutions

I need to write a program in python for a restaurant. The program should let the...
I need to write a program in python for a restaurant. The program should let the user enter a meal number, then it should display the meal name, meal price, and meal calories. Also, needs the appropriate output if the user enters an invalid meal number. I am supposed to use a dictionary, but my problem is it keeps giving me an error and telling me my menu is not defined. Not sure what I am doing wrong. print ("Welcome...
I need the Java Code and Flowchart for the following program: Suppose you are given a...
I need the Java Code and Flowchart for the following program: Suppose you are given a 6-by-6 matrix filled with 0s and 1s. All rows and all columns have an even number of 1s. Let the user flip one cell (i.e., flip from 1 to 0 or from 0 to 1) and write a program to find which cell was flipped. Your program should prompt the user to enter a 6-by-6 array with 0s and 1s and find the first...
PLEASE USE THE FLOWORITHM APPLICATION FOR THE ANSWER . I need that not a flowchart .Design...
PLEASE USE THE FLOWORITHM APPLICATION FOR THE ANSWER . I need that not a flowchart .Design the logic for a program that takes in three numbers from the user. Find the largest of the three numbers and output the largest number.
Please describe HOW TO FORMULATE research problem. What should be done? ( i need very good...
Please describe HOW TO FORMULATE research problem. What should be done? ( i need very good EXAMPLES thank you)
Need this program in Raptor. Post the pseudocode and the flowchart please! Brewster’s Used Car, Inc....
Need this program in Raptor. Post the pseudocode and the flowchart please! Brewster’s Used Car, Inc. employs several salespeople. Brewster, the owner of the company, has provided a file named sales.txt that contains the sales records for each salesperson for the past month. Each record in the file contains the following two fields: The salesperson’s ID number, as an integer The amount of a sale, as a real number The records are already sorted by salesperson ID. Design a program...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the following requirements: Reads in a series of positive integers,  one number at a time;  and Calculate the product (multiplication) of all the integers less than 25,  and Calculate the sum (addition) of all the integers greater than or equal to 25. Use 0 as a sentinel value, which stops the input loop. [ If the input is 0 that means the end of the input list. ]...
I need to write an interpreter for arithmetic expressions in Python. This program receives an input...
I need to write an interpreter for arithmetic expressions in Python. This program receives an input string with an arithmetic expression and does: 1. prints a ">>>" as if it was a terminal 2. lets us allocate a variable to a a numeric value (as "a = 3") then it stores {'a':3} to a dictionary memory 3. whenever it receives an expression or input, transform it to postfix notation and print it (even when allocating variables) 4. it is able...
hello, I need a python program for a drone to follow keyboard commands - Create a...
hello, I need a python program for a drone to follow keyboard commands - Create a simple single obstacle environment and program the drone to navigate through it - Create a more advanced obstacle environment (3+ obstacles) and program the drone to navigate through it
Complete a) flowchart solution and b) working Python solution. It will need to compare gene sequences,...
Complete a) flowchart solution and b) working Python solution. It will need to compare gene sequences, looking for differences (mutations), keeping track of how many are different and will include clear two-part output: indicating if the ‘baby’ has the mutation for diabetes or not, and the identity between the siblings’ sequences. BABY: ATGGCCCTGTGGATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCAGCCGCAGCCTTTGTGAACCAACACCTGTGCGGCTCACACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACACACCCAAGACCTGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGCAGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGCATTGTGGAACAATGCTGTACCAGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAG BROTHER: ATGGCCCTGTGGATGCGCCTCCTGCCCCTGCTGGCGCTGCTGGCCCTCTGGGGACCTGACCCAGCCGCAGCCTTTGTGAACCAACACCTGTGCGGCTCACACCTGGTGGAAGCTCTCTACCTAGTGTGCGGGGAACGAGGCTTCTTCTACACACCCAAGACCCGCCGGGAGGCAGAGGACCTGCAGGTGGGGCAGGTGGAGCTGGGCGGGGGCCCTGGTGCAGGCAGCCTGCAGCCCTTGGCCCTGGAGGGGTCCCTGCAGAAGCGTGGCATTGTGGAACAATGCTGTACCAGCATCTGCTCCCTCTACCAGCTGGAGAACTACTGCAACTAG Does the ‘baby’ carry the mutation associated with diabetes? Which (what number) nucleotide has mutated? What is the ‘identity” of the siblings’ sequences? In other...
I need to write a response to how I should I should plan to build financial...
I need to write a response to how I should I should plan to build financial security starting with a job right out of college. I need to include everything seen below. If you can answer in bullet points for each question or a paragraph answering the short parts. Below is the guide Include – Why, What, When, and How a. Financial Goals: Near-term: 1 to 2 yrs; Intermediate-term: 3 – 5 yrs; Long-term: 6 – 15 yrs b. Savings...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT