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 18:00
Is the following sentence true or false? during meiosis, the two alleles for each gene stay together.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
7. the cullerton park district holds a mini-olympics each summer. create a class named participant with fields for a name, age, and street address. include a constructor that assigns parameter values to each field and a tostring() method that returns a string containing all the values. also include an equals() method that determines two participants are equal if they have the same values in all three fields. create an application with two arrays of at least eight participants each—one holds participants in the mini-marathon, and the other holds participants in the diving competition. prompt the user for participant values. after the data values are entered, display values for participants who are in both events. save the files as participant.java and twoeventparticipants.java.
Answers: 2
You know the right answer?
import java. util. Scanner; public class AreaAndPerimeterApp { public static void main(String[] args...
Questions
question
English, 25.01.2021 21:50
question
Social Studies, 25.01.2021 21:50
question
Social Studies, 25.01.2021 21:50
Questions on the website: 13722362