Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(This is done in VB 2017) What i have isn't working please help Problem Statement You have been asked to write a program for a

(This is done in VB 2017)

What i have isn't working please help

Problem Statement

You have been asked to write a 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:

  1. Name (required)
  2. Number of years employed (required, numeric, >0)
  3. Total amount of previous purchases before discount (required, numeric, >0)
  4. Employee status (hourly employee or manager)
  5. Total of todays purchase

OUTPUT

There are two distinct areas required for output:

  1. For each employee display the following:
    1. Name
    2. Employee discount percentage
    3. YTD Amount of discount in dollars
    4. Total purchase today before discount
    5. Employee discount this purchase
    6. Total with discount
  2. Calculate the total for all employees for todays date
    1. Total before discount for the day
    2. Total after discounts applied

PROCESS

Employee discount standard

Years of Employment

Management

Hourly

0 Years

0%

0%

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

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

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

  1. Exit

Instructions:

  • Develop the design on a WORD document (or similar program) that shows (30 points):
  • The inputs
  • The outputs
  • The logical order of the outputs
  • The logic to solve each output
  • Identify the variables in your logic
  • Determine the data types of your variables
  • Determine the scope of your variables
  • Develop the necessary test cases and expected results to ensure your logic is completely tested.
  • Write the program based on your design that adheres to all requirements (45 points) that produces the correct output based on the test cases and expected results.
  • Document your program (5 points).
  • Use proper naming conventions (Hungarian notation) for all controls and variables (5 points) that will be referenced in code.
  • Use a named constant for the maximum yearly discount of $200. (5 points).
  • Ensure your form is well designed by adhering to the following (10 points):
  • Everything is aligned.
  • No wasted space on the form.
  • Ensure buttons are same size and the group is centered.
  • No misspellings.
  • Tab to next control easily.

Focus is put to the correct control upon clearing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

=+3. Identify and define the three key aspects of job training.

Answered: 1 week ago