Programming Assignment
1. Design a for loop that gets 6 integer numbers from a user, accumulates the total of them, then displays the accumulated total to the user. Just write the code segment to show what is asked, not a complete program. however, declare any variables that you need to use. Use a semicolon (;) at the end of each line of code so I can tell when you use a new line in your code.
2. Design a while loop to get a series of numbers from a user; the loop stops when the user enters a negative number. For each number the user enters, the number is multiplied by 5 then the product is displayed on the screen. Be sure to declare the variables that you will use; include the code needed to prompt the user and the code segment needed for the loop to work without error; and, place a semicolon at the end of each line of your code so I can easily read it.
3. Write the pseudocode for a function definition that is named toOunces. The function is to accept an argument from the calling module for the number of pounds (as real data type). The function is to change the number of pounds sent to total number of ounces in the pounds. The function returns the number of ounces calculated.
4.Write a single pseudocode statement that calls a function named calcTax and assigns the return value to a variable named taxAmount. The statement also sends two arguments: a sales amount of $1,248.50 as the first argument and a rate of .0775 as the second argument.