subject
Computers and Technology, 26.06.2020 15:01 bigb290

import java. util. Scanner; public class AreaAndPerimeterApp { public static void main(String[] args) { System. out. println("Welcome to the Area and Perimeter Calculator"); System. out. println(); Scanner sc = new Scanner(System. in); String choice = "y"; while (choice. equalsIgnoreCase("y")) { // get input from user System. out. print("Enter length: "); double length = Double. parseDouble(sc. nextLine()); System. out. print("Enter width: "); double width = Double. parseDouble(sc. nextLine()); // create the Rectangle object Rectangle r = new Rectangle(length, width); // format and display output String message = "Area: " + r. getAreaNumberFormat() + "\n" + "Perimeter: " + r. getPerimeterNumberFormat() + "\n"; System. out. println(message); // see if the user wants to continue System. out. print("Continue? (y/n): "); choice = sc. nextLine();

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:40
State the parts of a variable declaration?
Answers: 2
question
Computers and Technology, 22.06.2019 04:30
Dr. wisteria is a prominent chiropractor in the chicago area. she wants to provide a forum for her patients to discuss their health concerns and to seek and offer advice to other patients. which telecommunications tool is most appropriate for dr. wisteria's needs?
Answers: 3
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
You know the right answer?
import java. util. Scanner; public class AreaAndPerimeterApp { public static void main(String[] args...
Questions
question
Business, 09.01.2021 08:10
question
Mathematics, 09.01.2021 08:10
question
Mathematics, 09.01.2021 08:20