Question: Public __Car { Public static void main(String[] args) { hasDiscount = false; Scanner sc = Scanner ); System.out.println(Enter age of the car); Int carAge =
![Public __Car { Public static void main(String[] args) { hasDiscount =](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d2d6421f2_25366f3d2d5c96f4.jpg)
Public __Car { Public static void main(String[] args) { hasDiscount = false; Scanner sc = Scanner ); System.out.println("Enter age of the car"); Int carAge = sc. LO; System.out.println("Enter color of the car); String carColor = sc._ L(); System.out.println("Enter cost of the car"); Double carCost = sc. L(); If((carColor.equals(:black"))&& (carAge
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
