Develop a Java application that will determine the gross pay for each of
three employees. The company pays straight time for the first 40 hours
worked by each employee and time and a half for all hours worked in
excess of 40 hours. You are given a list of the employees of the company,
the number of hours each employee worked last week and the hourly rate
of each employee. Your program should input this information for each
employee and should determine and display the employee’s gross pay.
Write a program to take a String as input then display the word in one column and its position on the String in another column.
Enter a String
Coronavirus was the Worst pandemic
Coronavirus \t 1
was \t 2
the \t 3
Worst \t 4
pandemic \t 5
Write a program to take a String as input then display the first letter of each word.
Example:
Enter a String
JAPAN is Best
JiB
by CodeChum Admin
Create a class called Appliance. An appliance simply has a:
Power status, brand and cost should not be accessible out the class or its hierarchy of inheritance
A local waterfront tour guide recently purchased a computer and needs a reservation system created. The sailboat has enough seating for 10 people. There will be 5 premium seats and 5 regular seats.
Your program should contain an array of Strings to hold up to ten people. Use seats (1-5) for the premium seats and seats (6 - 10) for the regular seats. Ask the user for a full name and whether they want a premium seat or not. The program should then assign them a seat (this can be done randomly, manually assigned by the user, or any other way as long as they are assigned to the correct section). It should then display a ticket / boarding pass indicating the person's name and their seat number.
Your application should never assign a seat to a person who already has a seat. It should also tell the user once all of the tickets have been assigned and the boat is full.
Display all of the tickets to the user once you have assigned the seats.
write a program that determines whether an input number is an
integer or a real number.
Write a program that would print the information (name, year of joining, salary, address) of three employees by creating a class named 'Employee'. The output should be as follows:
Name Year of joining Address
Robert 1994 64C- WallsStreat
Sam 2000 68D- WallsStreat
John 1999 26B- WallsStreat
1.
Create a Java program named PE1Lastname. (ex. PE1Dela_Cruz)
2.
Initialize the following variables based on the table below:
DATA TYPE
VARIABLE NAME
VALUE
String
firstName
Type your first name
String
lastName
Type your last name
char
mi
Type your middle initial
int
age
Type your age
char(array)
nickNameArray
Every index should contain each of the
letters of your nickname.
3.
Use scanner class for data entry. Use comments to give a short description of
the parts of the program. (//Single-line comments and /**/multi-line comments)
4.
Produce an output similar to the sample below.
5.
The nickname should be inside an array variable. You should be able to display
each letters.
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 277500
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
Consider class Certification with data members Id (int), name (String) , hours(int), level (String), costPerHr (double). Provide a sub class ProfessionalCertification that extends Certification. This class no additional data member. It overrides calculateFee method so that total cost is returned as product of hours and cost per hour plus 15% tax of total hours cost. o Also ProfessionalCertification implements Extendible Interface. You will also have to provide implementation of method extend(int duration). For this you need to add duration to the training hours of the certification. Write main class that includes calculateFee() and extend(int duration) method.