Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Accounting Basics Expert

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

Accounting Basics, Accounting

  • Category:- Accounting Basics
  • Reference No.:- M91904552

Have any Question?


Related Questions in Accounting Basics

Question - the kuttner corp issued in 2014 for violating

Question - The Kuttner Corp issued in 2014 for violating patent laws. In 2014, the kuttner corp decides that a loss is probable, and records an expense of $23 million. What is the effect on income in 2016 if the case is ...

Question - susan a single taxpayer owns and operates a

Question - Susan, a single taxpayer, owns and operates a bakery as a sole proprietorship. The business is not a specified services business. In 2018, the business pays $100,000 in W-2 wages, holds $150,000 of qualified p ...

Exercise - evaluation of purchase options sosa excavating

Exercise - Evaluation of Purchase Options Sosa Excavating Inc. is purchasing a bulldozer. The equipment has a price of $00,000. The manufacturer has offered a payment plan that would allow Amos to make 10 equal annual pa ...

Question - maple mount fishery is a canning company in

Question - Maple Mount Fishery is a canning company in Astoria. The company uses a normal costing system in which factory overhead is applied on the basis of direct labor costs. Budgeted factory overhead for the year was ...

Question - splish company purchased equipment on january 2

Question - Splish Company purchased equipment on January 2, 2013, for $ 111,400. The equipment had an estimated useful life of 5 years with an estimated salvage value of $ 12,400. Splish uses straight-line depreciation o ...

Question - umatilla bank and trust is considering giving

Question - Umatilla Bank and Trust is considering giving Blossom Company a loan. Before doing so, it decides that further discussions with Blossom Company's accountant may be desirable. One area of particular concern is ...

Question - in november 2018 the brunswick company signed

Question - In November 2018, the Brunswick Company signed two purchase commitments. The first commitment requires Brunswick to purchase 11,000 units of inventory at $8 per unit by December 15, 2018. The second commitment ...

Company accounting questions -a opperman ltd owns all the

COMPANY ACCOUNTING QUESTIONS - (A) Opperman Ltd owns all the share capital of Jewel Ltd. During the year ended 30 June 2018, Opperman Ltd paid a dividend of $20 000, and Jewel Ltd paid and declared dividends of $10 000 a ...

Question - on january 1 2016 sinclair corp bought equipment

Question - On January 1, 2016, Sinclair Corp. bought equipment using a $10,000,000 zero-interest-bearing bond due on January 1, 2021. The prevailing rate of interest for a note like this on January 1, 2016 was 7%. What a ...

Question - pina colada corp reports the following for the

Question - Pina Colada Corp. reports the following for the month of June. Date Explanation Units Unit Cost Total Cost June 1 Inventory 122 $5 $610 June 12 Purchases 386 6 2,316 June 23 Purchases 186 7 1,302 June 30 Purch ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As