By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,313 Members | 2,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,313 IT Pros & Developers. It's quick & easy.

Retail Application

P: 2
I've been assigned a task to design a program for a local Furniture Company. The company allows customers that cannot pay cash for the furniture to pay a deposit and pay the balance in monthly installments, provided that the total amount of the purchase does not exceed R100.000. The amount of the deposit to be paid depends on the total of the purchase.

*The deposit for purchases less than R25.000 is calculated as 5% of the purchase amount.

*Purchase amounts between R25.000 and R49.999 require a deposit of R1.500 plus 10% of the purchase amount over R25.000.

*Purchases between R50.000 and R100.000 require a deposit of R5.000 plus 25% of the purchase amount over R50.000.

*if the purchase amount is more than R100.000 a message must be displayed to the user, that "The amount is invalid".

After the deposit is calculated, print the purchase amount and the deposit, only if the deposit is more than zero. Design an algorithm that will read a purchase amount, compute and print the required deposit for a customer.


Solution
1. A Defining Diagram
2. The solution algorithm in pseudo-code
3. A flowchart that corresponds to the pseudo-code
4. An expected results table
5. A desk checking table
Apr 14 '10 #1
Share this Question
Share on Google+
3 Replies


RedSon
Expert 5K+
P: 5,000
Sounds like a school assignment. Is this a school assignment or did a furniture company really ask you to provide them with a diagram, some pseudo-code and a flowchart?

Every company I've ever worked for just wanted the end product, they could care less what the pseudo-code and diagrams are.
Apr 14 '10 #2

P: 2
@RedSon
its a schools project... Please help with the task at hand.
Apr 14 '10 #3

RedSon
Expert 5K+
P: 5,000
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

MODERATOR
Apr 14 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.