There are three parts to this assignment. The last one is hard - just to warn you. Please put them all in one program (you can be creative about how this miracle occurs). Save them in your 0_review folder as IfLoop.java.
Make a 5 question multiple choice test (provide 4 options for each question) based on information from Grade 11 Programming. It should tell the user whether or not they got each question right. If it is wrong, tell the user what the right answer is. At the end of the test, display their score and ask if they want to play again.
(a) Digital Root
Find the digital root of a number given by a user. A digital root of a number is found by repeatedly adding the digits of a number until you get a number from 0 to 9. Assume that your user will always give you a number with less than three digits.
eg. User enters 375
375 becomes 3+7+5=15
15 becomes 1+5=6
6 is the digital root of 375.(b) Sum of Digits in a Factorial
Get a number, n, from your user. Find its factorial. Then, find the sum of the digits in the answer.
eg. User enters 5
5! = 120
1+2+0 = 3
3 is printed on the screen.(c) Sum of Fibonnacci Sequence
Get a number, n, from your user. Find the sum of the terms of the fibonnacci sequence to that number.
eg. User enters 6
1+1+2+3+5+8+13 = 33
(remember the first term is the 0th term).