Question: QUESTION 6 5. Write a Java program using Scanner class to print an airline ticket for a travel from Starting city to destination city in

 QUESTION 6 5. Write a Java program using Scanner class to

QUESTION 6 5. Write a Java program using Scanner class to print an airline ticket for a travel from Starting city to destination city in an airline. Create a class called airline. Create variables for the following fields given below. Get the input from user using Scanner class for the fields given below - Airlines name use a String variable for this field - City headquarters of the airlines - use a String variable for this field Starting city for this travel - use a String variable for this field - Destination city - use a String variable for this field - Travel class for this journey (First /Economy/ Business)- use a String/character variable for this field - Ticket cost: Based on the travel class input by the user, assign the value to this variable Display the airline ticket as output with the variables used in this program along with their corresponding values. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B IVParagraph Arial 14px I !!! OWE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!