Question

In: Computer Science

A local department store is having a BOGOHO (Buy One, Get One Half Off) sale. The...

A local department store is having a BOGOHO (Buy One, Get One Half Off) sale. The manager wants a program that allows salesclerks to enter the prices of two items. The program should calculate and display the total amount the customer owes. The half-off should always be taken on the item having the lowest price. If the items cost $24.99 and $10, the half-off would be taken off the $10 item. If both prices are equal, take the half-off on the second item.

a) Make an IPO Chart for the problem than desk-check the algorithm twice. For the first desk-check, use 24.99 and 10 as the prices. For the second check use 11.50 and 30.99.

b) List the input, processing, and output items, as well as the algorithm, in a chart. Then code the algorithm into a program.

c) Desk-check the program using the same data used to desk-check the algorithm.

Solutions

Expert Solution

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

Kindly revert for any queries

Thanks.


Related Solutions

a)How is a buy one get one free deal different from a 50% off sale? b)...
a)How is a buy one get one free deal different from a 50% off sale? b) which deal would a consumer prefer and c) which deal will a retailer prefer. Explain
A discount store is having a sale where everything is 15% off. Write a program to...
A discount store is having a sale where everything is 15% off. Write a program to display a table showing the original price and the discounted price. This program requires no input and your table should include headings and the original prices should go from 99 cents to $9.99 in increments of 50 cents. Python
Phonesmart is having a sale on Bananas. If you buy one Banana at full price, you...
Phonesmart is having a sale on Bananas. If you buy one Banana at full price, you get a second at half price. When couples come in to buy a pair of phones, sales of Apricots and Bananas are equally likely. Moreover, given that the first phone sold is a Banana, the second phone is twice as likely to be a Banana rather than an Apricot. What is the probabilty that a couple buys a pair of Bananas? Please I need...
. A quality survey asked recent customers of their experience at a local department store. One...
. A quality survey asked recent customers of their experience at a local department store. One question asked for the customers rating on their service using categorical responses of average, outstanding, and exceptional. Another question asked for the applicant’s education level with categorical responses of Some HS, HS Grad, Some College, and College Grad. The sample data below are for 700 customers who recently visited the department store. Education Quality Rating Some HS HS Grad Some College College Grad Average...
8. A quality survey asked recent customers of their experience at a local department store. One...
8. A quality survey asked recent customers of their experience at a local department store. One question asked for the customers rating on their service using categorical responses of average, outstanding, and exceptional. Another question asked for the applicant’s education level with categorical responses of Some HS, HS Grad, Some College, and College Grad. The sample data below are for 700 customers who recently visited the department store. Education Quality Rating Some HS HS Grad Some College College Grad Average...
A quality survey asked recent customers of their experience at a local department store. One question...
A quality survey asked recent customers of their experience at a local department store. One question asked for the customers rating on their service using categorical responses of average, outstanding, and exceptional. Another question asked for the applicant’s education level with categorical responses of Some HS, HS Grad, Some College, and College Grad. The sample data below are for 700 customers who recently visited the department store. Education Quality Rating Some HS HS Grad Some College College Grad Average 55...
A quality survey asked recent customers of their experience at a local department store. One question...
A quality survey asked recent customers of their experience at a local department store. One question asked for the customers rating on their service using categorical responses of average, outstanding, and exceptional. Another question asked for the applicant’s education level with categorical responses of Some HS, HS Grad, Some College, and College Grad. The sample data below are for 700 customers who recently visited the department store. Education Quality Rating Some HS HS Grad Some College College Grad Average 55...
An office furniture store is having a sale on a certain type of office chair. The...
An office furniture store is having a sale on a certain type of office chair. The chairs are priced at GH¢800 per chair. The probability distribution for the number of chairs sold to an individual customer is Number of chairs 1 2 3 4 Probability 0.15 0.40 0.10 0.35 a) Find the probability that the number of chairs sold to an individual customer is odd. b) Find the expected number and standard deviation of chairs sold to an individual customer....
A retail store is having a sale. A shopper wanting two medium shirts heads for the...
A retail store is having a sale. A shopper wanting two medium shirts heads for the sales rack, which is a mess, with sizes jumbled together. Hanging on the rack are 4 medium, 11 large, and 5 extra-large shirts. Find the probability of each event described. (a) The first two shirts hehe grabs are the wrong size. (b) The first medium shirt hehe finds is the third one hehe checks. (c) The first four shirts hehe picks are all extra-large....
A random sample of 81 credit sales in a department store showed an average sale of...
A random sample of 81 credit sales in a department store showed an average sale of $68.00. From past data, it is known that the standard deviation of the population is $27.00. What is the 99% confidence interval of the population mean? (Round to two decimal places)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT