Question
(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:
- Name (required)
- Number of years employed (required, numeric, >0)
- Total amount of previous purchases before discount (required, numeric, >0)
- Employee status (hourly employee or manager)
- Total of todays 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 todays date
- Total before discount for the day
- 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
- Calculate-Calculates each employees total with discount and displays item # 1 above
- Next Employee-clears the employee input so the next employee sale can be entered
- Discount Summary-Displays the summary items from item # 2 above for all employees each day (daily totals)
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started