EBK JAVA PROGRAMMING
9th Edition
ISBN: 9781337671385
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 5, Problem 6PE
Program Plan Intro
Calculate the pay for employees
Program plan:
- Import necessary package.
- Create a class “AcmePay”,
- Define the method “main ()”,
- Declare and initialize the necessary variables.
- Prompt the user to enter the shift into the first dialog box.
- Assign the integer value returned form the method “parseInt()”.
- Prompt the user to enter the hours worked into the second dialog box.
- Assign the integer value returned form the method “parseInt()”.
- Check whether the shift is “1”,
- If it is true, assign the pay rate for shift_1.
- Otherwise, check whether the shift is “2”,
- If it is true, assign the pay rate for shift_2.
- Otherwise,
- Assign the pay rate for shift_3.
- Check whether the hours worked is greater than the full week hours,
- Compute the regular pay in terms of full week hours.
- Compute the overtime pay.
- Otherwise,
- Compute the regular pay in terms of hours worked.
- Set the overtime pay as “0.0”.
- Compute the total pay.
- Check whether the shift is “2” or shift is “3”,
- Get the input entered into the dialog box.
- Assign the integer value returned from the method “parseInt()”.
- Check whether the entered value is “1”,
- If it is true, compute the deduced amount.
- Concatenate the string with pay calculated.
- Display the output message in dialog box.
- Define the method “main ()”,
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
For example, if a company has a certain amount of income or a certain number of workers, it may be eligible to submit its tax return early.
Engineering economics
Systems Analysis Assignment (Microsoft Word and Excel)
You and your team have been hired to set up a computer classroom for Tech United, Inc. An up
and coming tech startup who will like to become a tech training company.
Tech United, Inc. wants to offer various different kinds of tech training at their new office location.
They have only one classroom space available that can accommodate up to 30 students. The
classroom is already equipped with tables and chairs. The classroom, however, does not have any
computers, routers, projectors, smartboard etc. This is where you come in. The company has
$40,000 as a starting budget and will like for you to determine for them what
computers/keyboards/mouse/router/printer/smartboard etc. they should buy. You determine
based on their budget, how many of each item should be purchased for the classroom.
Deliverables
Deliverable Part 1: A systems analysis report on what kind of computers and hardware the
company should use in their classroom,…
Chapter 5 Solutions
EBK JAVA PROGRAMMING
Ch. 5 - Prob. 1RQCh. 5 - Prob. 2RQCh. 5 - Prob. 3RQCh. 5 - Prob. 4RQCh. 5 - Prob. 5RQCh. 5 - Prob. 6RQCh. 5 - Prob. 7RQCh. 5 - Prob. 8RQCh. 5 - Prob. 9RQCh. 5 - Prob. 10RQ
Ch. 5 - Prob. 11RQCh. 5 - Prob. 12RQCh. 5 - Prob. 13RQCh. 5 - Prob. 14RQCh. 5 - Prob. 16RQCh. 5 - Prob. 17RQCh. 5 - Prob. 18RQCh. 5 - Prob. 19RQCh. 5 - Prob. 20RQCh. 5 - Prob. 1PECh. 5 - Prob. 2PECh. 5 - Prob. 3PECh. 5 - Prob. 4PECh. 5 - Prob. 5PECh. 5 - Prob. 6PECh. 5 - Prob. 7PECh. 5 - Prob. 8PECh. 5 - Prob. 9PECh. 5 - Prob. 10PECh. 5 - Prob. 1GZCh. 5 - Prob. 2GZCh. 5 - Prob. 3GZCh. 5 - Prob. 4GZCh. 5 - Prob. 5GZ
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Senario Programming Competition System – Schools and Universities always want to participate in a programming competition. Currently, everything such as competition rules, and the organisation is handled manually. This should be automated so that participants just log onto the system to see if they are eligible to participate or not and be able to monitor their requests online. Task is to: Create a User Requirement Specification for a programming competition in which scholars, university students as well as school students will take part inarrow_forwardOverview: A Sports Club is an organization formed in order to help its members develop interest in certain sports. Usually, members interested in the same sport are divided into groups and an expert trainer is responsible for training each group. In this TMA, it is required to help the head of a Sports Club for kids implement application to keep track of the kids (members of the club) and the sports they are interested in. Requirements: After a quick meeting with the head of the sports club, you got the following information: • Itis required to store the whole data (all groups of all sports) in one collection. Each group has a number, a trainer and they are interested in a certain sport (e.g. football). In addition, it contains many kids with flexibility of adding and removing kids within a given limit for the maximum number of kids who could be in the same group (where this limit is fixed and unified for all groups). Furthermore, there are other attributes (add at least 2 attributes…arrow_forwardOverview: A Sports Club is an organization formed in order to help its members develop interest in certain sports. Usually, members interested in the same sport are divided into groups and an expert trainer is responsible for training each group. In this TMA, it is required to help the head of a Sports Club for kids implement application to keep track of the kids (members of the club) and the sports they are interested in. Requirements: After a quick meeting with the head of the sports club, you got the following information: It is required to store the whole data (all groups of all sports) in one collection. Each group has a number, a trainer and they are interested in a certain sport (e.g. football). In addition, it contains many kids with flexibility of adding and removing kids within a given limit for the maximum number of kids who could be in the same group (where this limit is, fixedandunitiedterallgroues). Furthermore, there are other attributes (add at least 2 attributes from…arrow_forward
- Overview: A Sports Club is an organization formed in order to help its members develop interest in certain sports. Usually, members interested in the same sport are divided into groups and an expert trainer is responsible for training each group. In this TMA, it is required to help the head of a Sports Club for kids implement application to keep track of the kids (members of the club) and the sports they are interested in. Requirements: After a quick meeting with the head of the sports club, you got the following information: It is required to store the whole data (all groups of all sports) in one collection. Each group has a number, a trainer and they are interested in a certain sport (e.g. football). In addition, it contains many kids with flexibility of adding and removing kids within a given limit for the maximum number of kids who could be in the same group (where this limit is, fixedandunitiedterallgroues). Furthermore, there are other attributes (add at least 2 attributes from…arrow_forwardA library system allows users to sign up for accounts. After logging in, users can borrow books, show their account debt, or display available books. Books are organized under different genres/sub-genres. The system allows displaying all books or books under a selected genre or using a combined criteria (e.g. books by a specific author under a specific genre). Administrative accounts are allowed to add/edit/remove books. The library may also provide book recommendations to users based on their previous reading historyarrow_forwardObject orentied Programming Sports World is an Events Management Company that organizes the running of major sporting games, such as the Olympic Games. Before being used to host a sporting event, venues are assessed by an Administrator who checks that they are fit for purpose. If the venue can hold more than 10,000 people, the Administrator conducts additional health and safety checks to ensure that the venue is safe. A year before the games begin, a Team of Staff is appointed to run the day-to-day operations, including booking successfully assessed/safety-checked venues. Six months before the games begin, the Team of Staff produce a Program that lists the date, time and location of each sporting event. At this point, Athletes can register for an event by giving their name, address, date of birth and best time for their event. Some overseas athletes need to apply for a visa and the system needs to record whether they were successful. A week before the games begin, a Team of Staff…arrow_forward
- (Practice) You’re responsible for planning and arranging the family camping trip this summer. List a set of subtasks to accomplish this task. (Hint: One subtask is selecting the campsite.)arrow_forwardCalculate the pf(12%) after taking the basic salary, HRA, DA from the user in c programming languagearrow_forwardBusiness Scenario: "Tasty Burgers", a very fast-growing burger outlet in Melbourne has approached your company (Software Inc) to help their business by providing the required IT solutions. Tasty Burgers - Manager Jim has given the following brief about their current business practices and their expectations: The burger outlet started in 2010 has seen very steady growth over the past decade. Their main item and the most popular among the locals are the burgers, the outlet also serves hot chips and cold drinks. Currently, the restaurant uses a POS (Point of Sales) system to take orders. Hugely attracted by the self-ordering kiosks at other popular fast-food restaurants, the management of Tasty Burgers wanted to implement a similar system at their outlet. During an earlier meeting with your manager (Tom), Jim has been briefed about the challenges in implementing a full-fledged self-ordering kiosk as a single project. Therefore, it has been decided to break the project into 4 stages (A, B,…arrow_forward
- In repair facility problem, costs of every day repair is $300. What will be the annual repair bill? mark) 0.05 0.95 Working Broken 0.6 0.4arrow_forwardSubmitting: Each INDIVIDUAL should submit his/her work online, both source code and output screenshots. All assignments should be submitted ON TIME. Collaboration among students is strongly encouraged. It is legal to get approaches and ideas from students, the internet, etc. However, it is ILLEGAL to get a code (if a part of the code is submitted by two or more students, ALL are guilty of cheating). Any minor cheating will not be toleratedarrow_forwardCase Study – Personal Trainer Personal Trainer, Inc. Fact-Finding Summary A typical center has 300-500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location. Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters in Chicago, where member…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTOperations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColeProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningEnhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY