Directions: Use Visual Logic Console for all inputs and outputs. If you are not familiar with Visual Logic, a flow chart can be used instead of a program to answer the questions that require Visual Logic.
Choose any 4 out of 5 Questions.
1. Write a Visual Logic program that calculates the following.
a) The user enters an amount
b) The program calculates the interest at 5%. Write a procedure to calculate the interest earned and the total amount which includes the interest.
c) Write the output using format currency to display the interest earned and the total amount calculated in b).
Copy and paste the program and the output for credit and upload the program file.
2. Write a Visual Logic program where the user rolls two dice and the program displays the sum of them. Each dice contains numbers from 1-6.
a) Use random for the first dice. Display the first dice.
b) Use random for the second dice. Display the second dice.
c) Add them together as the sum.
Copy and paste the program and the output for credit and upload the program file.
If the highest subscript in an array is nine and the subscripts start at zero, what is the size of the array?
Think about arrays that they use in everyday life situations. What are the advantages of using these types of arrays? Are there any disadvantages?
5. a) Write a Visual Logic program to declare and populate an array to hold five student test scores.
b) Write a Visual Logic program to calculate the student’s average for the test scores. Output the average test score.