TThe while loop keeps going until count is greater than or equal to 10.
count = 0, sum = 0
count = 2, sum =2
count = 4, sum = 6
count = 6, sum = 12
count = 8, sum = 20
count = 10, sum = 30
Now that count is equal to 10, it exits the while loop and the program ends. The values above complete your trace table.
Invitations cost $6 for a pack of 5. Lori gives the cashier $50 to buy invitations and gets $8 in change. How many packs of invitations does Lori buy?
Answer: 35
Explanation:
Since Lori gives the cashier $50 to buy invitations and gets $8 in change, thus means that the amount spent on invitations = $50 - $8 = $42
Since he spent $42 and the invitations cost $6 for a pack of 5, the packs of invitations that he bought would be:
= ($42/$6) × 5
= 7 × 5
= 35 packs of invitation
Topics with problems or controversies are strong topic ideas.
Please select the best answer from the choices provided
T
F
Answer:
This would be considered true
Topics with problems or controversies are strong topic ideas is a true statement.
What is ideas in philosophy?The term ideas is known to be the outcome of human thoughts.
Based on the above, Topics with problems or controversies are strong topic ideas is a true statement because they are entered on relevant areas of human live that need to be addressed.
Learn more about ideas from
https://brainly.com/question/540693
#SPJ1
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
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:
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
Assume the user responds with a 3 for the first number and a 4 for the second number.
answerA = input("Enter a number. ")
answerB = input("Enter a second number. ")
numberA = int(answerA)
numberB = int(answerB)
result = (numberA * numberB) / 2
print ("The result is" , result)
What is the output?
The result is .
Answer:
The result is 6.
Explanation:
number A is 3 and number B is 4.
4*3/2=6
What is one way programmers benefit from using Python's Math Module?
A: Create programs faster and easier
B: Learn to solve complicated equations
C: Prevent logic errors in their code
D: Prompt user input in numeric form
Answer:
Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.
Therefore, we conclude that option A is true.Explanation:
Python's Math Module is a very important module designed to deal with certain mathematical operations.
It includes:
Trigonometric functonsrepresentation functionslogarithmic functionsand many more mathematical tasks.
It also contains two mathematical constants:
PieEuler number, etc.Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.
Therefore, we conclude that option A is true.Answer:
Create programs faster and easier.
Explanation:
OkkKkkkkkEYEYYEYEYEY BYEYYEYEYEyeeyeyyeEYEy if you know you know
Answer:
okkkkkkkkkkeyyyyyyy
Explanation:
byeeeee
why does computer uses 0s and 1s to procress data
Answer:
Computers use binary - the digits 0 and 1 - to store data. The circuits in a computer's processor are made up of billions of transistors . A transistor is a tiny switch that is activated by the electronic signals it receives. The digits 1 and 0 used in binary reflect the on and off states of a transistor.