Question

You work in the IT group of a department store and the latest analytics shows there...

You work in the IT group of a department store and the latest analytics shows there is a bug that allows customers to go over their credit limit. The company's president has asked you to develop a new algorithm to solve this problem.

Create your algorithm using pseudocode that determines if a department store customer has exceeded their credit limit. Be sure you gather the following inputs from the user:

  • Account number
  • Balance of the account
  • Total cost of all the products the customer is looking to purchase
  • Allowed credit limit

After you gather the inputs, make sure your algorithm calculates if the user can purchase the products and provides a message to the user indicating if the purchase is approved or declined.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Algorithm:

start
Declare String AccountNumber
Declare Real balance, totalcost, creditlimt
  
Output "Enter Account Number"
Input AccountNumber
Output "Enter Balance of account"
Input balance
Output "Enter total cost of all products"
Input totalcost
Output "Enter Credit Limit"
Input creditlimit
If balance>=totalcost
Output "Purchase is Approved"
False:
Output "Purchase is Declined"
End
stop

Main String AccountNumber Real balance, totalcost, creditlimt Output Enter Account Number Input AccountNumber Output Enter

Add a comment
Know the answer?
Add Answer to:
You work in the IT group of a department store and the latest analytics shows there...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a Java application that determines whether any of several department store customers has exceeded the...

    Write a Java application that determines whether any of several department store customers has exceeded the credit limit on a charge account. For each customer, the following facts are inputted: -Balance at beginning of month -Total amount of all items charged by the customer this month -Total amount of all credits applied to the customer’s account this month -Allowed credit limit Use the value of -1 as a sentinel value to quit the program. The program should input all these...

  • i need to Develop a script in java script that will determine whether a department-store customer...

    i need to Develop a script in java script that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) Account number b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit The script should input each of these facts from...

  • 7.11 Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track...

    7.11 Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording the number of miles driven and the number of gallons used for each tankful. Develop a script that will take as input the miles driven and gallons used (both as integers) for each tankful. The script should calculate and output HTML5 text that displays the number of miles per gallon obtained for each tankful and the combined...

  • You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost of their sale, including taxes.

    Assignment Content You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost of their sale, including taxes. Create a C++ program that does the following: Include the proper header and make sure you properly comment your program. Also, make sure you use proper coding conventions so your program runs and compiles correctly. Compress all your Microsoft® Visual Studio® source code files from the console application folder into a ZIP file. Submit your assignment. Calculates sales tax and total cost based on the type of purchased product using the following categories and tax percentages: Category 1 - Clothing: 6% Category 2 - Beauty products: 7% Category 3 - Grocery: 3% Category 4 - Gardening: 6% Category 5 - School supplies: 3% Category 6 - Tobacco products: 10% Creates an array to store the numbers users input and uses the switch statement to calculate the sales tax and final cost based on the category of the purchased product Prompts the user for category and price of the product Calculates and displays the final cost

  • Suppose billingAmount is a double variable, which denotes the amount you need to pay to the...

    Suppose billingAmount is a double variable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or 1% of the billingAmount, whichever is smaller, as a credit on your next bill. If you pay at least 50% of the billingAmount, the penalty is 5% of the unpaid balance. If you pay at least 20% of the billingAmount and less than 50% of the billingAmount, the penalty is 10% of the...

  • Suppose you are working in the IT Support department of a computer store. A customer calls...

    Suppose you are working in the IT Support department of a computer store. A customer calls you and says “I bought my laptop on Thursday. The first weekend was awesome; I hung out with my gaming buddies and we stayed online for 36 hours, living on pizza, soda, and chips. After working flawlessly for the first couple of days, now the n key doesn’t work; when I press the n key, absolutely nothing happens. The m key sometimes works and...

  • You are now hired by the Stan Sporting Goods store as an accountant. You are asked...

    You are now hired by the Stan Sporting Goods store as an accountant. You are asked to enter the following transactions in to the journals: Transaction #1: December 17: Borrowed $60,000 from First American Bank and Trust by issuing a two-year note payable with a stated annual interest rate of 5%. The check was received from the bank and deposited. Transaction #2: December 19: Received customer purchase order in the mail from the University of Southern Iowa (USI) for 100...

  • You are now hired by the Stan Sporting Goods store as an accountant. You are asked...

    You are now hired by the Stan Sporting Goods store as an accountant. You are asked to enter the following trasactions in to the journals: Transaction #1: December 17: Borrowed $60,000 from First American Bank and Trust by issuing a two-year note payable with a stated annual interest rate of 5%. The check was received from the bank and deposited. Transaction #2: December 19: Received customer purchase order in the mail from the University of Southern Iowa (USI) for 100...

  • Supporting information: Hypothetical: You are currently working in a small group to analyse and design the...

    Supporting information: Hypothetical: You are currently working in a small group to analyse and design the system. After interviewing the potential users of the system, you have identified the following requirements. You have five to six weeks to deliver your results to a software developer. You have to act in the best interest of the client with a high degree of autonomy. Requirements Users of this system are: a) Individual customers who use the Business-to-Consumer (B2C) module of the system...

  • Analytics Exercise 4-2 You work for Microsoft in their global cell phone group. You have been made project manager for the design of a new cell phone. Your supervisors have already scoped the project...

    Analytics Exercise 4-2 You work for Microsoft in their global cell phone group. You have been made project manager for the design of a new cell phone. Your supervisors have already scoped the project so you have a list showing the work breakdown structure and this includes major project activities. You must plan the project schedule and calculate project duration. Your boss wants the schedule on his desk tomorrow morning! You have been given the information in Exhibit 5.13. It...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT