Calculates the employees gross pay

Assignment Help Accounting Basics
Reference no: EM131149087

Instructions:

1. Complete the following programming problems in a Word document, clearly numbering each question in bold and in a large font. If I cannot easily see where your answer to each question begins, I will assume you did not want me to grade your answer.

2. Include your name in the document header so that it is shown on every page.

3. For each problem, write pseudocode as shown in all examples on Blackboard for all Chapters that we have covered, without any housekeeping or detail or detailLoop or any other modules. Only the programs for #4 and #5 are to contain modules/methods, and those must be written as described in the problem in order to receive credit.

4. All requirements that have been given for homework programs apply here too. Follow the Good Program Design Example from the Chapter 2 Reading folder on Blackboard, and what has been demonstrated in all examples on Blackboard.

5. Any program that does not follow all of these instructions will not be read and will receive a grade of zero. If you make no effort to make your program easy to read and follow according to the principles demonstrated in the text book and the Blackboard examples, I will, likewise, make no effort to read them.

6. I may ask you to explain in detail any and all of your programs after I receive them. If you are unable to explain any part of any program, you will receive a grade of zero for that program.
Any program that fails to follow any of these requirements will receive an automatic grade of zero.

1) The Downdog Yoga Studio offers five types of classes, as shown in Table 6-2.

Table 6-2 Downdog Yoga Studio classes

Class Number

Class Name

1

Yoga 1

2

Yoga 2

3

Children's Yoga

4

Prenatal Yoga

5

Senior Yoga

Using arrays where applicable, design one program that
a) accepts a class number and then displays the class's name.
b) Allow the user to enter class numbers continuously until a sentinel value is entered. Then, display each class number, name, and a count of the number of requests for each class.

2) A company maintains its employee records in a sequential text file named employees.txt. The record for each employee contains the following: ID number, employee's name, hourly pay, hours worked, benefits contribution, retirement account contribution. Design the logic, in pseudocode, for a program that

a) Reads each record in the employees.txt file

b) Calculates the employee's gross pay, based on their hourly pay and how many hours they worked

c) Calculates the employee's net pay after deducting the following:
i) the benefits contribution
ii) the retirement account contribution
iii) income tax, based on the following scale:
(1) gross pay of 1,000 or more: 10%
(2) gross pay of 750 or more but less than 1000: 7.5%
(3) gross pay of 500 or more but less than 750: 5%
d) Writes the employee data along with the gross pay, benefits and retirement account contributions, income tax (in dollars), and net pay to another file named payroll.txt

3) The village of Marengo conducted a census and collected records that contain household data, including the number of occupants in each household. The exact number of household records has not yet been determined, but you know that Marengo has fewer than 300 households. Using an array where applicable, develop the logic for a program that allows a user to enter each household size and then

a) Displays a list of the entered household sizes

b) Determines the mean household size in Marengo, the largest household size and the smallest household size. The program must complete these tasks without sorting the array.

4) Plan the logic for an insurance company program to determine policy premiums. The program prompts the user for an insurance policy number and the type of policy needed- health or auto. Depending on the policy type, the program gets additional information from the user and then calls one of the methods described below, to determine their insurance premium, and then displays the policy number, the policy type and the premium. The methods are:

a) calculateHealthPremium method
i) requires to be passed information ("Y" or "N") that indicates whether the user is a smoker
ii) if the user is a smoker, the premium should be $550, otherwise, $345
iii) returns the premium amount

b) calculateAutoPremium method

i) requires to be passed the number of traffic tickets the user has received in the last three years
ii) determines the premium as follows:
(1) three or more tickets: $225
(2) one or two tickets: $190

(3) zero tickets: $110
iii) returns the premium amount

5) Create the logic for a program that prompts the user for numeric values for a month, day, and year. Then pass the three variables to the following methods:

a) A method that displays the date with dashes in month-day-year order, as it is often represented in the United States-for example, 6-24-2015

b) A method that displays the date with dashes in day-month-year order, as it is often represented in the United Kingdom-for example, 24-6-2015

c) A method that displays the date with dashes in year-month-day order, as it is represented in the International Standard-for example, 2015-6-24

d) A method that prompts the user for the desired format ("US", "UK", or "IS") and then passes the three values to one of the other three methods described in parts a, b, and c of this exercise

Reference no: EM131149087

Questions Cloud

Calculate the mass moment of inertia : Consider 500mm to be the max size of the flywheel dia. Calculate the mass moment of inertia required for the flywheel of the punching press machine
What is artificial intelligence : What is Artificial intelligence - Which is not the commonly used programming language for AI?
Write a function that takes as input an image object : Write a function that takes as input an image object, crops it to make it a square, and returns the resulting object. You must write a function to accomplish this.
What indicators might see as anthony progresses : Consider and discuss the 5 stages of change. Based upon the information provided discuss what stage Anthony is in, and provide a rationale for your decision. Next, discuss the other stages of change and what indicators we might see as Anthony prog..
Calculates the employees gross pay : Calculates the employee's gross pay, based on their hourly pay and how many hours they worked and determines the mean household size in Marengo, the largest household size and the smallest household size. The program must complete these tasks witho..
Write a one page issue proposal : Write a one-page Issue Proposal. - The issue you are proposing is the topic you will pursue for your course project.
What is the molar mass of the mixture : Inside a rigid container, a mixture of three ideal gases with mass fractions of 30% N2, 50% O2 and 20% CO2 has a total mole of 10 kmol. What's the molar mass of the mixture
Fill in the periodic rates and the effective annual rates : In the following table, fill in the periodic rates and the effective annual rates.
What must the temperature of low temperature reservoir be : An ice cube that has a mass of 150.0 g and that has a starting temperature of -10C melts completely into a very large bucket of water whose temperature is 4C and stays 4C. What is the entropy change for the molecules contained in the ice cube? And..

Reviews

Write a Review

Accounting Basics Questions & Answers

  Problem regarding the project valuation

Quality Foods, Inc., is a leading grocery retailer in the greater Washington, DC, metropolitan area. The company is currently engaged in an aggressive store refurbishing program and is contemplating expansion of its in-store delicatessen departmen..

  In comparing two investment alternatives the difference

in comparing two investment alternatives the difference between the net present values of the two alternatives obtained

  Describe the financial statement presentation of noncash

discussion board topic gaap requires the statement of cash flows be presented when financial statements are

  Determine cost of timber sold related to depletion for 2014

Determine the cost of timber sold related to depletion for 2014 - If Forda depreciates the logging roads on the basis of timber cut, determine the depreciation expense for 2014.

  How much investment per dollar of expected annual

how much investment per dollar of expected annual operating savings can a company afford if the investment has an

  Determine the amount of the amortization depletion or

data related to the acquisition of timber rights and intangible assets during the current year ended december 31 are as

  Horner company buys a delivery van with a list price of

horner company buys a delivery van with a list price of 30000. the dealer grants a 15 reduction in list price and an

  Whisker clean company spent 8000 to produce product 89

whisker clean company spent 8000 to produce product 89 which can be sold as is for 10000 or processed further incurring

  Naui industries manufacture flowered shirts which normally

naui industries manufacture flowered shirts which normally sell for 24 each. the current unit cost to manufacture each

  Compute the price of the old bonds in the open market

First compute the price of the old bonds in the open market. Use the valuation procedures for a bond that were discussed in Chapter 10 (use the annual analysis). Determine the price of a single $1,000 par value bond.

  A piece of equipment will be purchased for 50000 it has a

a piece of equipment will be purchased for 50000. it has a life of 15 years. its estimated scrap value is 5000. what

  Difference between a positive and negative externality

Circular Flow Diagram. Explain how the circular flow diagram relates to the current economic situation. Using the circular flow diagram, explain a way that your family interacts in the factor market and a way that it interacts in the products mark..

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