Create a program that when given a four word sentence as CMD arguments, it prints it backwards. E.g the sentence “How are you Today”, will be printed as “Today you are How”. Sample run 1: Sample run 2: java lab02_task01 how are you today java lab02_task01 we are going home Output: today you are how Output: home going are we
create a Java Program that will display this:
You are told that the Kruger National Park is giving away a 10% discount to children who are not more than 12 years old or senior citizens who are at least 65 years old. It is further stated that ONLY those who are visiting the Park for at least the 5th time will qualify for this discount.
1) Write your program in question (I) in such a way that method decideDiscount() can return a value to the calling method. The calling method will then display if a customer qualifies for a discount or not.
Write a program that takes as input the number of visitors and for each visitor takes the amount of money they have spent in last 5 days. The program must calculate the average expenses (i.e. per day) for each visitor. The program should output the approximately amount of money each visitor will need to stay next 15 days.
design a java application that will allow a company to capture staff members contact numbers for adepartment .allow user to enter in a department name and then capture 5 staff members contact number
Create a two-dimensional array of type double to contain the three different SD Marks (JD521, PRG521, and IP521) for six different students. A single array of type String must be used to store the student names (Maxwell, Carl, Gerhard, Paul, James, and Cena).
Allow a user to enter in a number, ranging from 1 to 6, which will represent the student position in the table MCSD max and present the marks for each respecting module. The program can only stop when the user enter a number greater than 6.
Printout the student name including the JD521, PRG521, and IP521 max, the total of marks and the average of all marks. Use a condition statement to decide that the student has passed or not (Pass rate is 70).
Create a class named Customer that will determine the monthly repayment amount due by a customer for a product bought on credit. The class has five fields: customer name, contact number, product price, number of months and the monthly repayment amount. Write get and set methods for each field, except for the monthly repayment amount field. The set methods must prompt the user to enter the values for the following fields: customer name, contact number, product price and number of months. This class also needs a method to calculate the monthly repayment amount (product price divided by the number of months).
The manager is really disappointed when he sees that all his employees have become lazy AF. Hence, he decides to encourage his employees by holding a competition. This competition will go on for N days and there are a total of M employees such that : - The employee ID starts from 1. - The maximum ID possible is M. - No two employees have the same ID. - The ID of each and every employee is a positive integer. On each day of the competition, an "Employee of the Day"title is awarded to the employee who does the most work on that particular day and is given a party. However, the manager believes in consistency. Once this title has been given, the employee who has won the most number of such titles until that particular moment is presented with a "Consistency Trophy". If there are many such employees, the largest ID among them is given the trophy. The "Title Giving"and "Trophy Giving"happens at the end of each day of the competition.
A planet that has ’SPACE-CENTRE’ is always ’RUNNING’. b) Test cases are designed in such a way, it is always possible to visit from one planet to another