Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

(d) If the user enters 1 and 10 for the first and last numbers in the range, what will be printed out at line 13? Which numbers is the program counting?


1. print (“This program prints selected numbers in in given range.”)
2. anotherGo = “Yes”
3. while AnotherGo == “Yes”
4. lowNumber = input (“Please enter first number in your chosen range.”)
5. highNumber = input (“Please enter the last number in your chosen range.”)
6. x = 0
7. for count = lowNumber to highNumber
8. if count MOD 5 <> 0) AND (count MOD 7 <> 0) then
9. print (count)
10. x = x + 1
11. endif
12. next count
13. print (x, “numbers”)
14. anotherGo = input (“Another go?”)
15. endwhile
Test if a number grade is an A (greater than or equal to 90). If so print "Great!".
Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program needs to output the phrase Greater than 45.6.

Example:

Enter a number: 90
Output:

Greater than 45.6
Write a program that prompts the user to input two numbers, a numerator and a divisor. Your program should then divide the numerator by the divisor, and display the quotient and remainder.

The following content is partner provided
design a python program to tell a drinks factory manager about the level of orange juice in tank

there is enough juice when the tank has more than 210 litres
Test if a date is a payday based on the day of the month (15th or the 30th).

Sample Run:
Enter today's day numerically: 17
Sorry, not a payday.
Enter today's day numerically: 30
It's payday!
Test if a password entered is correct. The secret phrase is Ada Lovelace.
Test if a number grade is an A (greater than or equal to 90). If so print "Great!".
For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base * height.

Please note the final area should be in decimal format.

Sample run:

Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Output:

Room Area: 53.5
The following content is partner provided
Write a program that prompts the user to input two numbers, a numerator and a divisor. Your program should then divide the numerator by the divisor, and display the quotient and remainder.

The following content is partner provided
LATEST TUTORIALS
APPROVED BY CLIENTS