Answer:
with content-basedfiltering users receive recommendations for items that are similar in type to ones they already like
7.5 Code practice Plz answer ASAP
def calculate_GPA(grade, weight):
grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}
if weight == 0:
return grades[grade]
else:
return grades[grade] + 1
classes = int(input("How many Classes are you taking? "))
total = 0
for x in range(classes):
letter = input("Enter your Letter Grade: ")
user_weight = int(input("Is it weighted? (1 = yes) "))
grade = calculate_GPA(letter, user_weight)
total += grade
print("Your GPA score is: ", grade)
print("Your weighted GPA is a",(total/classes))
I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.
The function is an illustration of for loops
For loops are used to perform repetitive operations; just like the while loop
The program in Python, where comments are used to explain each line is as follows:
#This defines the studentGPA function
def studentGPA(grade, weight):
#This initializes a dictionary for all grades
allGrade = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}
#This sets the return grade to 0
retValue = 0
#If the grade is valid
if grade in allGrade:
#If the weight is 0
if weight == 0:
#Then score is not graded
retValue = allGrade[grade]
#If otherwise
else:
#This adds 1 to the return grade
retValue = allGrade[grade]+1
#This returns the grade point
return retValue
#The main begins here
#This gets the number of classes
klass = int(input("How many Classes are you taking? "))
#This initializes the total grade to 0
total = 0
#This following is repeated for each class
for x in range(klass):
#This gets input for the letter grade
letterGrade = input("Enter your Letter Grade: ")
#This gets input for the weight
weight = int(input("Is it weighted? (1 = yes) "))
#This gets the corresponding grade
grade = studentGPA(letterGrade, weight)
#This prints the grade point
print("Your GPA score is: ", grade)
#This calculates the total grade
total += grade
#This calculates the GPA
GPA = total/klass
#This prints the GPA
print("Your weighted GPA is a",GPA)
Read more about for loop at:
https://brainly.com/question/12736327
what key do I use to start my presentation
Answer:
The answer to this question is given below in this explanation section.
Explanation:
Knowing how o start a presentation is crucial if you fail to capture the audience attention right of the bat your entire presentation will flop.Few listeners will stick with you to the end and retain what you have told.
That is mildly unpleasant when you are doing an in house presentation in front of your colleagues.But can become utterly embrassing when you are presenting in front of larger audience presentation to prospective customers.
Let you have most of your presentation slides and polished up you dont check and quick and effective power point presentation design tips.Many ideas are broken into bits sized statements for your slides and complemented with visuals.The best way is to appeal and invoke certain emotions with your audience curiosity,surprise fear or good old amusements.
pleasee help meeeeeeeeee I’m stuckk!!!!
Answer: Charles Babbage
Answer:
a
Explanation:
trust
if you were any type of fnaf charater who would you be and why?
Answer:
Foxy
Explanation:
Cause he's cool and he's my favorite.
What does an effect allow you to do in
EarSketch?
Answer:usbebdos did did I’d did d
Explanation:
Bash six ska over five. I did a sis a and
Amy wants to make an exact replica of a specific area in an image. Which tool Amy will use?
Answer:
Explanation:
.
What are three ways that functions can be useful when you are writing programs
Answer:
Reduces the overall complexity of your program
Allows you to easily call a function from different parts of your program after defining it.
Helps break a problem into logical chunks
Explanation:
In a computer language, a function is the set of instructions that are made for reducing the need to repeat a large amount of data by breaking it into small chunks of codes and giving concise readable human names.
They thus help in reducing the complexity in writing and maintaining the program, Hence they help in breaking it into logical chunks. They can be useful in increasing the reusability of the code. Can be used as a good alternative. Perform a single high-level task.Learn more about the three ways that functions can be useful when.
brainly.com/question/13728820.
what is main function of processing unit?
Answer:
to control the operation of all part of the computer.
hope it helps.
Answer:
to control the operations of the computer
Explanation:
hope it's help you have a great day keep smiling be happy stay safe ☺
What are a few ways to format the text in a mail message in Outlook? Check all that apply.
Attach a file to the message to be opened separately.
Open the Font dialog box to access more detailed options.
Increase or decrease the indent.
Copy and paste text from a Word document
Use the Mini Toolbar to change the font appearance.
Click the Format Painter to paste a saved font format.
Answer:
The answers are b,c,d,e,f
Explanation:
Decision support systems help managers use structured data to identify problems and find solutions to business-related problems. The financial management system is an example of this system.
Answer:
sorry about this
Explanation:
KAPWING Video Editing Software allows you to use existing You Tube Videos in your design.
Answer:
Yea it should, it depends are you using a phone or a PC? because most of the time internally built in editing software on computers is better.
a file that serves as a starting point for a new document
Answer:
The appropriate response is "Template".
Explanation:
A template would be a document that might open new opportunities for such a new folder. Because once you launch a framework, that's already pre-formatted sometimes in a manner. This same template will indeed presumably have such identification and phone number environment throughout the upper left, a person receiving identify location somewhat below something on the opposite side, a response body location further below, as well as a signature, identify at either the lower part.Do the lengths of 10,4 and 5 form a triangle explain why please I’m confused
Answer:
no
Explanation:
Imagine having sticks of these lengths. Attach the 4 and 5 to both ends of the 10. No way you can have them touch each other, not even when the triangle is flat.
The 4 and 5 add up to 9, that is less than 10.
The Triangle Inequality Theorem states that the sum of any 2 sides of a triangle must be greater than the measure of the third side.
please help which one is the right symbol?
Answer:
second one >
hope it helps.