can someone help me with this trace table - its computer science

Can Someone Help Me With This Trace Table - Its Computer Science

Answers

Answer 1

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.


Related Questions

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?

Answers

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

Answers

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

Answers

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.

Answers

Answer:

sorry about this

Explanation:


What does an effect allow you to do in
EarSketch?

Answers

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 .

Answers

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

Answers

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 functions

and 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

Answers

Answer:

okkkkkkkkkkeyyyyyyy

Explanation:

byeeeee

why does computer uses 0s and 1s to procress data​

Answers

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.

Computers don't understand words or numbers the way humans do. ... To make sense of complicated data, your computer has to encode it in binary. Binary is a base 2 number system. Base 2 means there are only two digits—1 and 0—which correspond to the on and off states your computer can understand.
uwu
Other Questions
can someone help me plsss Which property was used to simplify the expression? distributive propertycommutative propertyassociative propertyinverse property PLS HELP BRAINLIEST AND EXTRA POINTS !What is the ratio of the total coins in Andrew's coin jar to the total coins in Staci's coin jar?A. 98:51B. 49:78C. 1:1D. 51:98 When do you identify your variables?After the resultsAfter the conclusionBefore the hypothesisBefore the question help help help with this The table shows total number of cars rented everyday for aweek from Golden State Rentals, What is the estimatedaverage increase in car rentals per day for Tuesday throughFriday?Golden State Car RentalsM TuWThFSaSuDayTotal cars41109 158 199 262 313 352 evaluate: the crucifixion is less significant than the birth of jesus. (12 marks) Question -3(-4)=Please help me I dont know what to do! is this sentence properly transcribed?, its raining today, so unless you wanna get drenched, you're gonna need your umbrella. Can someone help me please Mr. Morgan purchases gas for $3.24 per gallon. After leaving the gas stationhe travels 208 miles on 8 gallons of gas. If the car uses gas at a constant rate,which best describes the number of miles traveled per gallon of gas? I'll give u brainliest if right The sum of twice a number and 18 is 5 less than three times the number, Write theequation and find the number. pls help im not smart and this is for a grade A doghouse is to be built in the shape of a right trapezoid, as shown below. What is the area of thedoghouse? Help will mark brainliest answer The Invisible Hand promotes A. marketplace inflation B. marketplace competition C. marketplace monopolies D. marketplace shortages Point O is the incenter of ABC.Point O is the incenter of triangle A B C. Lines are drawn from the point of the triangle to point O. Lines are drawn from point O to the sides of the triangle to form right angles and line segments O Q, O R, and O S. Angle Q A O is (2 x + 6) degrees, angle O A S is (4 x minus 12 degrees), and angle Q B O is (3 x minus 15) degrees.What is m Angle Q B O?591224 Hannah, who has a mass of 65 kg, is riding at 25 m/s in her sports car when she must suddenly swerve off the road to avoidhitting a dog and slams into the guard rail. Her seatbelt brings her to a stop in 0.4 seconds. What amount of force wasexerted on Hannah?4000 N4063 N650 NO N An object of mass 30 kg is falling in air and experiences a force due to air resistance of 50 newtons. Calcuate the acceleration of the object