Posted at 04:48h
in
Uncategorized
by admin
Question:
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team....
Posted at 04:47h
in
Uncategorized
by admin
Question
You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today?
Input Specification:The first line of input contains the...
Question:
The Logging Company cuts a lot of trees. For management reasons, they want to produce a table of the total amount of wood cut every day. They have hired you, to help them produce the table. They've kept a log of trees logged, and they...
Posted at 04:36h
in
Uncategorized
by admin
Question 1.
Use EasyGui to write a program to convert temperatures from Fahrenheit to Celsius. The formula for that is: Celsius = 5 / 9 * (Fahrenheit – 32). Use GUI input and output. You need to create a easygui enterbox to ask Fahrenheit, then use...
Posted at 20:47h
in
Uncategorized
by admin
Question:
Write a program that helps the user add up her change. The program should ask:
“How many quarters?”
“How many dimes?”
“How many nickels?”
Then it should give the total value of the change.
Hint:
You should create 3 variables to assign to the number of quarters, dimes and...
Posted at 03:09h
in
Uncategorized
by admin
You can do Question 1~ 3 in Python IDLE:
Question 1.
Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...