Question: write a program in eclispe Program Descriptions 1. Area of a Circle Write a program that calculates the area of a circle and prints out
Program Descriptions 1. Area of a Circle Write a program that calculates the area of a circle and prints out the radius as well as the sum to the console. The radius has to come from console input. The area of a circle is calculated by this formula: Area = 3.14 radius radius. The radius is expected to be a decimal number. 2. Greeting Write a program that asks the user for their name. The program should reply to the user with a greeting. The program's reply should include the name of the user (eg. Hello, there Bob!). The name of the user must come from console input. 3. Complete The Sentence Write a program that prompts the user to type a word. The program should reply with "Harry Potter and the word of Secrets" where sword> is replaced with what the user typed. (eg. If the user types sunscreen then the program should print out "Harry Potter and the sunscreen of Secrets"). The word must come from console input. 4. Calculate Age Write a program that prompts the user to input their birthyear (eg, 1995) and the target year (eg, 2021). The program should calculate the user's age as of the target year (eg, in 2021, a person who was bom in 1995 would b 26). The program should tell the user what age they were at the target year. Both birthyear and target year are integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
