subject

Import java. util. scanner;
public class rental
{
private double total;

public void settotal()
{
system. out. println("rental total set");
}
public static void main(string[] args)
{
scanner sc = new scanner(system. in);
system. out. print("enter rental type: \n"
+ "'c' for canoe rental\n"
+ "'j' for jet ski rental\n");
string rentaltype = sc. next();
rental rental = new rental();
if (rentaltype. equalsignorecase("c"))
rental = new canoerental();
else if (rentaltype. equalsignorecase("j"))
rental = new jetskirental();
rental. settotal();
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
You know the right answer?
Import java. util. scanner;
public class rental
{
private double total;
Questions
Questions on the website: 13722362