In: Computer Science
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:
Name: FirstName LastName
Credits: 12
Study Hours: 60
Grade: A
Total Students: 3
Average Credits: 9
Average Study Hours: 20
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))