Aurora Saturday 14:30
Home > Aurora Saturday 14:30 (Page 16)
Question 1:
Write a program that does the following:
Generates a random secret number between 1 and 100 (including 1 and 100).
Asks the user to guess the secret number, then tell them whether they guessed too low, too high, or exactly right.
Keeps the game going until...
Question 1:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
You probably used a for loop in your program in last homework. That’s how most people would do...
Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here's your table:
5 x 1 = 5
5 x 2...
Question 1:
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.
Question...
Question:
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20
percent off purchases of greater than $10. Write a program that asks the purchase price and
displays the discount (10% or 20%) and the final price.
...