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 pseudocode and python program for the following problem. Besides the user entering the...
i need the pseudocode and python program for the following problem. Besides the user entering the number of books purchased this order, they are asked for the number of points earned for the year before this order and the number of books ordered this year before this order. There are bonus points awarded based on the number of books previously ordered and number ordered now. These points should be added to the variable points: Current order: 0 Previous Orders >...
For this problem you should describe the algorithm using a flowchart and then write Python code...
For this problem you should describe the algorithm using a flowchart and then write Python code to implement the algorithm. You are to create a Python program file for your code. Include in your HW document a photo of your flowchart and a screenshot of your program file and the output in IDLE that results when you run the program. The algorithm: Ask the user to input their annual salary and then calculate and print the weekly salary (annual/52). I...
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.
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 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...
I need assistance on this problem in Pseudocode and in C++ Program 1: Stay on the...
I need assistance on this problem in Pseudocode and in C++ Program 1: Stay on the Screen! Animation in video games is just like animation in movies – it’s drawn image by image (called “frames”). Before the game can draw a frame, it needs to update the position of the objects based on their velocities (among other things). To do that is relatively simple: add the velocity to the position of the object each frame. For this program, imagine we...
For Python, explain as much as you can please 1) What are namespaces and how are...
For Python, explain as much as you can please 1) What are namespaces and how are they used in Python? 2) What is the difference between Inheritance and Composition?
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. ]...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT