Topic: Math
1. Get 3 numbers from the user. Add the 3 numbers and hold the answer. Multiply the 3 numbers and hold the answer. Display all the numbers!
See more
11. Write a while loop that adds the numbers 10-100 together. Increment your counter by 10. Display the resulting sum.
See more
13. Use this formula as a guideline for the following problems:
seconds in a week = number seconds in a minute * number of minutes in a hour * the number of hours in a day * number of days in a week
Output all the variables.
- How many seconds are in a week?
- How many seconds are there in a year?
- If your birthday is 33 days away, how many minutes to you need to wait?
- If your birthday is 42 days away, how many seconds do you need to wait?
- If your birthday is 342 days away, how many minutes has it been since your last birthday?
HINT: you will need to do the formula in steps!
See more
15. Write a function that asks the user for a number. Tell the user if the number is odd or even.
See more
17. Collect 2 numbers from the user. Then complete the following tasks and show the values at each step.
- Add the two numbers together
- Multiply each of the numbers by 3
- Add 1000 to each number then divide each number by 4, divide again by 10 and divide again by 5
- Multiply each number by 0.087 and then multiply each number again by 0.27961
- Complete the math: num1 + 7.854*/32*87.58647/-36.54+num2/6.546+19.8/56.4
See more
18. Collect two numbers from the user. Display the larger of the two numbers and then display a message if the numbers are equal.
See more
31. Collect 40 numbers into an array. Using 10 rounds of 4 numbers, complete the following on the 4 numbers. Add the first and second together, then divide by the third and multiple by the fourth. Show each formula with its answer showing like this: (first + second) / third * fourth = answer
See more