logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Write a program that allows an accountant to specify the regular hours worked, the hourly rate, the number of hours worked overtime and the percentage increase in hourly rate for the overtime

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
  1. Your company provides IT consultancy services to the public sector, and the financial department in each country wants a program to print invoices for their national customers. Write a program that allows an accountant to specify the regular hours worked, the hourly rate, the number of hours worked overtime and the percentage increase in hourly rate for the overtime. Here is an example of a dialogue between the program and the user:

Invoice preparation for IT ConsultPro Inc. Your national currency is EUR

Enter the client name [string]: ISTvAbns

Enter the regular working hours [decimal number]: 120.0 Enter the hourly rate [decimal number]: 60.0

Enter the number of hours worked overtime [decimal number]: 40.0 Enter the percentage increase in hourly rate [decimal number]: 25.0 Based on this information, the program should print a formatted invoice: IT ConsultPro Inc. - Invoice for ISTvAbns

Regular working hours : 120 hours a 60 EUR: 7200 EUR Overtime work : 40 hours a 75 EUR: 3000 EUR

------------------------------------------------------

Total : 10200 EUR

The national currency used should be defined as a constant in the program. The name of the client company can be read by the following code: Scanner keyboard = new Scanner(System.in);

String clientName = keyboard.nextLine();

Any input on the current line will be read as one string and assigned to the client- Name variable. This code allows text with multiple words to be read as one string, for example "ISTvAbns".

  1. Write a program that reads a line of text from the keyboard, and prints an acronym formed from the first letter of each

Example:

Enter a line of text: Just another valuable artifact JAVA

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Atharva PatilComputer science

659 Answers

Hire Me
expert
Chrisantus MakokhaComputer science

883 Answers

Hire Me
expert
AyooluwaEducation

603 Answers

Hire Me
expert
RIZWANAMathematics

709 Answers

Hire Me

Get Free Quote!

314 Experts Online