Java

Java Program of Hy-Fly Taxi

Question: Hy-Fly is one of the leading taxi service providers in the town. The proprietor of Hy-Fly has planned to provide a grand discount to its customers. The discount is given based on the distance travelled. Write a Java program to calculate the total fare for the customer based on the discount if applicable. Distance…

Java Program for Harima Realtor’s Example

Question: Harima Realtor’s leading Real Estate Developer. They provide independent housing layouts, apartments & individual villas at affordable price. The Management of Harima Realtor’s has planned to give a grand discount to its buyers. The discount is given based on the land area booked or purchased. Write a java program to calculate the total price…

Java Program of count Discount Rate

Question: Water4U is the leading brand of packaged drinking water. The management of Water4U plans to expand the business. So, they decide to give a grand discount on two types of Bottles – 500 ml and 300ml. Discount is given based on the number of cases (bulk purchase) ordered by the distributor for the given…

Java Program of Kids School Example

Question: In a school, the Kindergarten students are supposed to repeat a word 5 times. For example, if the word is “dancing”, they will have to say dancing dancingdancingdancingdancing. Write a program to accept the string(word) as input from the user and also get the X and the Y position of the character as input…

Java Program to check Mileage Details

Question: Read the question carefully and follow the input and output format. Given the cubic capacity(CC) of a bike. Write a program to print the mileage/liter for the given Cubic Capacity(CC). The mileage will be calculated as follows: If CC is between 100 and 125, mileage is 75 if CC is between 126 and 135,…

Java Program to check Right angle triangle

Question: Write a Java Program to accept three positive Integers as input and check whether the given numbers farm a right angle Triangle or not. If the input numbers form a triangle print “RightAngle Triangle” else “Not a right-angle Triangle”. In case of zero or negative inputs print “Invalid”. Note: Rule to form a right-angle…

Java Program to Box Challenge

Question: Mr. Emun give a task to his son Maran. Mr. Emun has a box, which contain numbers only. The task for Maran is to find if the box is valid or invalid. If the sum of the last digits of all the numbers in the box is even then it is a valid box….

Java Program to Create Login Page

Question: Login Page Antony and his friends plan to create an application. They decide to create a login page. Users need to register their details and login before using the application. They need to create a login page where only the registered user can login Create a Java program to help them create a simple…

x