Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question: 1. Using a switch statement:

• If the employee type is P or p, then display "Part- time employee" on the screen

• If the employee type is F or f, then display "Full-time employee" on the screen

• If the employee type is T or t, then display "Temporary employee" on the screen

• If the employee is none of the above, then display "Invalid employee type" on the screen

2. Using an single individual distinct if statement (not a nested if):

• If the employee makes $50 an hour or more, and is also a full-time employee, print out to the screen "You must be a Java programmer!"

3. Using a single if-else-if statement:

• If the employee type is part-time, and the hours worked is 35 hours or more, then print out to the screen "You worked like a Full-time employee"

• If the employee type is full-time, and the hours worked is less than 25, then print out to the screen "Are you sure you're not a part-time employee?"

• Else print out to the screen "Have a nice day!"

4. Using a while loop structure:

• If the total hours worked is less than 0 or greater than 280, then print out "That's not possible, please try again!" to the screen. Prompt the user to enter the total hours again (inside the loop)

• Allow up to 3 total invalid attempts for the user to enter the correct number of hours. After the 3rd attempt, print out "You are Fired!" and exit the program (or start program over)

5. Using a do-while loop structure:

• After the program completes, ask the user "Do you want to start the program over again? (Enter Yes or No)".

• If the user enters "Yes" as a String literal (in any case meaning they can enter Yes, yes, yeS, yEs, YES, or YEs and it should still work), then the program should start over again from the beginning

6. Write very good comments above all of the 5 parts above, and also a block style comment at the very top of your program with your name in it.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92872347
  • Price:- $45

Priced at Now at $45, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Question suppose an instruction can be carried out in 3

Question : Suppose an instruction can be carried out in 3 stages, the stages taking 3 ns, 7 ns, and 10 ns, respectively. (a) What is the maximum execution rate without pipelining? (b) What speedup is possible with pipeli ...

Tetrafluoromethane cf4 is a greenhouse gas synthesized by a

Tetrafluoromethane (CF 4 ) is a greenhouse gas synthesized by a violently explosive reaction between methane and fluorine. In joules, what is the average kinetic energy of a molecule of CF 4  at 57.2°C and 0.0010 atm?

Discuss 5 of the most important sql server management

Discuss 5 of the most important SQL Server Management Studio (SSMS) features. Provide references - website link, book, article, etc.

With regards to data mining business analytics why is it

With regards to data mining/ business analytics, Why is it not ideal to evaluate a classifier's performance on the training data set?

A 200g sample of acetylsalicylic acid better known

A 2.00g sample of acetylsalicylic acid, better known asaspirin, is dissolved in 100mL of water and titrated with 0.200mol/L NaOH(aq) to the end point. The volume of base required is 55.5mL. Calculate the molar mass of ac ...

Quesiton for completion of the program use arrays and

Quesiton: For completion of the program, use arrays and files. Instead of prompting the user for the prices of the book, update the website program to reflect the following changes: • Read the prices into an array from a ...

Sql transactions exercisesperform the test for the

SQL Transactions Exercises Perform the test for the non-additive join property (lossless join) for the relation R(A 1 , A 2 , A 3 , A 4 , A 5 ), and the decompositions D a , D b , D c , D d  and set of functional depende ...

Question suppose users share a 2 mbps link also suppose

Question : Suppose users share a 2 Mbps link. Also suppose each user transmits continuously at 1 Mbps when transmitting, but each user transmits only 20 percent of the time. When a circuit switching is used, how many use ...

Question each student will research a paper on big data

Question: Each student will research a paper on Big Data word document 1000 to 1500 words with graphics describing the following: 1. what is Big Data? 2. Origins ? 3. Differences? 4. examples of Big data your point of vi ...

Inverse elasticityimagine youve started a new pizza

Inverse Elasticity: Imagine you've started a new pizza restaurant. It costs you about $3 to produce a pizza. Last week you sold 450 pizzas for $12 each. This week you raised your price and sold 300 pizzas for $16 each. W ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As