Java Problem
Java Problem
Create a program that will ask the user to input three number and be able to display the sum and average of
Sample Output
Enter first number: 3 Enter second number: 4 Enter third number: 7 Sum : 14 Average: 4.66
rectangle
Sample Output
Enter the length: 7 Enter the width: 5 Area: 35 Perimeter: 24
that will ask the user to input a radius of the circle and be able to display the area and circumference of the circle
Sample Output
Enter the radius: 5
Loopin
g Activity
Problem #1
Write an
application that calculates the amount of money earned on an investment, based on an 8% annual return. Prompt the user to enter an investment amount and the number of years for the investment.
Give a value for principal 1000 Give a value for year 5 Give a value for rate 10 Payable Amount: 1610.51
Problem #2
Write an application
that displays the results of a series of 10 coin tosses. After each coin toss, display whether the toss represents heads or tails. After the 10 tosses are complete, display the percentages of heads and tails.
Modify the application in Exercise 9a so that you generate 1000 coin tosses and keep track of the heads and tails. Do not display the coin toss result with each flip, but instead display percentages of the heads and tails
Head: 513 Tail: 487 Head Percent: 51.30 Tail Percent: 48.70