Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 1: Solution Design 1) Create a defining diagram that shows the input, processing, and output 2) Create a solution algorithm using pseudocode 3) Show

image text in transcribed

Assignment 1: Solution Design

1) Create a defining diagram that shows the input, processing, and output

2) Create a solution algorithm using pseudocode

3) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithms will work in all cases.

Scenario: Chest & Drum is a popular furniture store that sells furniture to on-campus students to use in their dorm rooms. The company needs the ability to determine the total compensation earned by each of its salespeople to be able to pay them. To start, the company has asked you to create a program that will determine one salesperson's total compensation based on the following facts: A salesperson for the company earns a yearly salary of $16,293 Each lounge chair sold earns the salesperson a $106 commission Each dining set sold earns the salesperson a $209 commission Each sofa sold earns the salesperson a $306 commission When the salesperson sells more than 27 pieces of furniture (in total), they earn an additional $3250 bonus Build a program that will first ask the user for one salesperson's name. One at a time, the program will ask for the quantity of lounge chairs, dining sets, and sofas sold by the salesperson. Once the program finishes asking for the quantity of each type of furniture sold, it must check whether any of the quantities is negative. In the case that any of the quantities are negative, the program must inform the user they entered an invalid quantity and the program should immediately end. However, if all quantities entered are valid, the program should calculate the salesperson's total compensation and output a well-formatted message containing the salesperson's name, the quantity of each type of furniture sold, the total quantity of furniture sold, and the total compensation earned. Scenario: Chest & Drum is a popular furniture store that sells furniture to on-campus students to use in their dorm rooms. The company needs the ability to determine the total compensation earned by each of its salespeople to be able to pay them. To start, the company has asked you to create a program that will determine one salesperson's total compensation based on the following facts: A salesperson for the company earns a yearly salary of $16,293 Each lounge chair sold earns the salesperson a $106 commission Each dining set sold earns the salesperson a $209 commission Each sofa sold earns the salesperson a $306 commission When the salesperson sells more than 27 pieces of furniture (in total), they earn an additional $3250 bonus Build a program that will first ask the user for one salesperson's name. One at a time, the program will ask for the quantity of lounge chairs, dining sets, and sofas sold by the salesperson. Once the program finishes asking for the quantity of each type of furniture sold, it must check whether any of the quantities is negative. In the case that any of the quantities are negative, the program must inform the user they entered an invalid quantity and the program should immediately end. However, if all quantities entered are valid, the program should calculate the salesperson's total compensation and output a well-formatted message containing the salesperson's name, the quantity of each type of furniture sold, the total quantity of furniture sold, and the total compensation earned

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

Step: 3

blur-text-image

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions