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

  How much control does fed have over this longer real rate

Hubbard argues that the Fed can control the Fed funds rate, but the interest rate that is important for the economy is a longer-term real rate of interest.   How much control does the Fed have over this longer real rate?

  Coures:- fundamental accounting principles

Coures:- Fundamental Accounting Principles: - Explain the goals and uses of special journals.

  Accounting problems

Accounting problems,  Draw a detailed timeline incorporating the dividends, calculate    the exact Payback Period  b)   the discounted Payback Period. the IRR,  the NPV, the Profitability Index.

  Write a report on internal controls

Write a report on Internal Controls

  Prepare the bank reconciliation for company

Prepare the bank reconciliation for company.

  Cost-benefit analysis

Create a cost-benefit analysis to evaluate the project

  Theory of interest

Theory of Interest: NPV, IRR, Nominal and Real, Amortization, Sinking Fund, TWRR, DWRR

  Liquidity and profitability

Distinguish between liquidity and profitability.

  What is the expected risk premium on the portfolio

Your Corp, Inc. has a corporate tax rate of 35%. Please calculate their after tax cost of debt expressed as a percentage. Your Corp, Inc. has several outstanding bond issues all of which require semiannual interest payments.

  Simple interest and compound interest

Simple Interest, Compound interest, discount rate, force of interest, AV, PV

  Capm and venture capital

CAPM and Venture Capital

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