Question 1:

Draw Flow Chart of a program which reads balances from an input file and outputs interest amount based on the following formula:                       

                                                                                                                                                                                    10pts.

If Balance>=$3000, interest rate=5%

If Balance>=$5000, interest rate=6%

If Balance>=$10000, interest rate=10%

If Balance<3000, interest rate=2%

 

Question 2:

Write algorithm of a program which will accept a number as input from the user and display all the factors of that number. If the number entered by the user cannot be factored your program should display a message such as “It is a prime number; cannot be factored”                  10pts.