Question: You have been asked to write a Visual basics program for a retail store that will allow them to calculate discounts for their employees when

You have been asked to write a Visual basics program for a retail store that will allow them to calculate discounts for their employees when they buy items. Discounts are based on number of years worked as well as if the employee is a manager or hourly employee. They are also allowed no discount once they have received $200 in discounts for the year.

INPUT

The application must be able to collect the following “required” information for each employee:

Name (required)

Number of years employed (required, numeric, >0)

Total amount of previous purchases before discount (required, numeric, >0)

Employee status (employee or manager)

Total of today’s purchase

OUTPUT

There are two distinct areas required for output:

For each employee display the following:

Name

Employee discount percentage

YTD Amount of discount in dollars

Total purchase today before discount

Employee discount this purchase

Total with discount

Calculate the total for all employees for today’s date

Total before discount for the day

Total after discounts applied

PROCESS

Employee discount standard

Years of Employment

Management

Hourly

1-3 Years

20%

10%

4-6 Years

24%

14%

7-10 Years

30%

20%

11-15 Years

35%

25%

More than 15 Years

40%

30%

YTD discount in dollars = total purchase before today * discount

Employee discount this purchase: total purchase today * discount if < $200. If over $200 previously no discount. If less than $200 prior to today but today takes them over $200 then only allow the amount to get them to $200.

Total with discount: Total * discount allowed

COMMAND BUTTONS

1.Calculate-Calculates each employees total with discount and displays item # 1 above

2.Next Employee-clears the employee input so the next employee sale can be entered

3.Discount Summary-Displays the summary items from item # 2 above for all employees each day (daily totals)

4.Exit

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ANsweM Hole is CoMPlete Code Coreated Viual Studio 2010 Rub... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Business Communication Questions!