Answer:
It prints "goodbye" 8 times.
Explanation:
The loop being described in this scenario would print "goodbye" 8 times. It would not include numbers detailing the range since the loop instructions only state for the system to print("goodbye") and nothing else. Also, it would only print it 8 times because in a range the endpoint is not included, this is mainly because in programming data structures tend to run on 0-based indexing.
Answer:
miles_gallon = float(input("Enter car's miles/gallon: "))
dollars_gallon = float(input("Enter gas dollars/gallon: "))
print("Gas cost for 20 miles is $", (20 / miles_gallon) * dollars_gallon)
print("Gas cost for 75 miles is $", (75 / miles_gallon) * dollars_gallon)
print("Gas cost for 500 miles is $", (500 / miles_gallon) * dollars_gallon)
Explanation:
*The code is in Python.
Ask the user to enter the car's miles/gallon and gas dollars/gallon
Calculate the gas cost for 20 miles, divide 20 by miles_gallon and multiply the result by dollars_gallon, then print it
Calculate the gas cost for 75 miles, divide 75 by miles_gallon and multiply the result by dollars_gallon, then print it
Calculate the gas cost for 500 miles, divide 500 by miles_gallon and multiply the result by dollars_gallon, then print it
Answer:
Desktop
Explanation:
A desktop computer is a personal computing machine designed to be used on top of a usual office desk.
It accommodate in it the physical hardware that makes a computer run and connects to input devices like the mouse, monitor, and keyboard users interact with. Desktop computers are mostly used in enterprise and business environment, including in consumer use cases such as for gaming. In the enterprise, they are vital since they are the major medium for many users to do their day to day jobs.