Do you want to start the program over again

Assignment Help Computer Engineering
Reference no: EM132035696

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.

Reference no: EM132035696

Questions Cloud

Calculate the amount of the firm gross profit : Evening Story Corporation has sales of $4,820,060; income tax of $485,667; the selling, general and administrative expenses
How can ms-isac help state and local governments : Does MS-ISAC Reduce Risks? Answer the following: Is there a benefit to working with MS-ISAC, How can MS-ISAC help state and local governments.
What is the amount of the firm ebit : What is the amount of the firm's EBIT?
Nominal interest rate and effective annual rate : What is the Annual Nominal Interest Rate and Effective annual rate on Money Credit Union loan?
Do you want to start the program over again : 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)".
Relationship between incremental cash flow and new projects : What is the relationship between incremental cash flow and new projects and what are the issues that affect incremental cash flow.
List and define the four financial statements : List and define the four financial statements. If you had to put them in order of importance, what would that order be? Why?
How did your school decide to use the inclusion model : How did your school decide to use the inclusion model? What are its benefits and drawbacks? How do you collaborate with general education teachers?
Why price of a stock with constant growing stock : Why price of a stock with constant growing stock grows at the same rate as the dividends?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd