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, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
You know the right answer?
Import java. util. scanner;
public class rental
{
private double total;
Questions
question
Mathematics, 30.10.2021 01:20
question
Mathematics, 30.10.2021 01:20
question
Mathematics, 30.10.2021 01:20
question
Chemistry, 30.10.2021 01:20
question
Computers and Technology, 30.10.2021 01:20
question
Physics, 30.10.2021 01:20
Questions on the website: 13722363