|
ok i need a to make two simple programs from The first program can be a while , for , switch, or a do while loop 1. Output This progeam allows you to enter a list of positive integers(terminated by a -1) then displays the largest value, smallest value, and average of the list of numbers, not including the final (negative) value that ends the list.
Please enter a positive integer, or a -1 to quit. 100 Please enter a positive integer, or a -1 to quit. 50 Please enter a positive integer, or a -1 to quit. 75 Please enter a positive integer, or a -1 to quit. -1 For the 3 numbers you entered the largest value = 100 the smallest value = 50 and the average is = 75
2. Else If Loop Output
Enter the price of an item (from 25 cents to a dollar in 5- cent uncremenst 85 you bought an item for 85 cents and gave me a dollar so your change is 0 quarters 1 dime and 1 nickel
|