Question

In: Computer Science

Any ideas? You work in the IT group of a department store and the latest analytics...

Any ideas?

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.

Solutions

Expert Solution

SOLUTION:

This program verifies the credit limit of the customer to check the possibility of customer’s purchase.

Pseudocode algorithm: (refer to the screenshot for the indentation)

In the main function

{     

            print prompt "Input account number "          

            Take the account number from the user

            print prompt “Input balance of account "          

            Take the balance of the account from the user

print prompt "Input total cost of all purchases of user "          

            Take the total cost of all purchases from the user

print prompt "Input allowed credit limit of the account "          

Take the credit limit from the user

Calculate extra amount to be paid after the balance of the account is zero         

(remaining = cost of all purchases – balance of account )

if (remaining < = credit limit)

            print prompt “Purchase Approved. Credit limit NOT exceeded”

else if (remaining > credit limit)

            print prompt “Purchase Declined. Credit limit exceeded”

end

}

Screenshot Pseudocode algorithm:


Related Solutions

Upon successful completion of the MBA program, imagine you work in the analytics department for a...
Upon successful completion of the MBA program, imagine you work in the analytics department for a consulting company. Your assignment is to analyze the following databases: Hospital Provide a detailed, four part, statistical report with the following sections: Part 1 - Preliminary Analysis Part 2 - Examination of Descriptive Statistics Part 3 - Examination of Inferential Statistics Part 4 - Conclusion/Recommendations Part 1 - Preliminary Analysis Generally, as a statistics consultant, you will be given a problem and data. At...
Scenario: Upon successful completion of the MBA program, imagine you work in the analytics department for...
Scenario: Upon successful completion of the MBA program, imagine you work in the analytics department for a consulting company. Your assignment is to analyze one of the following databases: Manufacturing Hospital Consumer Food Financial Select one of the databases based on the information in the Signature Assignment Options. Provide a 1,600-word detailed, four part, statistical report with the following sections: Part 1 - Preliminary Analysis Part 2 - Examination of Descriptive Statistics Part 3 - Examination of Inferential Statistics Part...
Suppose that you work in the inventory planning department of a large electronics store, and a...
Suppose that you work in the inventory planning department of a large electronics store, and a (Q, R) inventory system is used to control the replenishment of a popular LCD computer monitor. The store pays $85 for each monitor when it purchases the monitors from its supplier in Asia; in addition, a fixed setup fee of $275 is charged for each order. Assume the annual holding rate is 15%. The penalty cost per shortage is $10. Monthly demand is normally...
The analytics department of a public transit service group is trying to forecast the future number...
The analytics department of a public transit service group is trying to forecast the future number of passengers using the University subway station during the Fall term. During the first 10 days of September, the team count the number of passengers entering and exiting the station between 8:00am to 10:00pm. Day   # Passengers 1   2250 2   2100 3   2150 4   2450 5   2250 6   2500 7   2300 8   2650 9   2350 10   2600 a)   Compute manually (show your formulas) the...
Imagine that you work at a local department store in a midlevel management position. You learn...
Imagine that you work at a local department store in a midlevel management position. You learn that your company is being acquired by Big Box, a much larger, non-union retailer. The sale and purchase of your store is intended to bring more product, logistical efficiency, and employee efficiencies to your particular market. Describe three significant HR issues that you and your people will likely face after your company is acquired.
You work as a security administrator of the “Medium Department Store” (MDS) chain. The CIO of...
You work as a security administrator of the “Medium Department Store” (MDS) chain. The CIO of the company has tasked you to research and design 2 courses of action (CoA) to update the current, non-existing, network security solution. It should cover the risk and how to mitigate the risk. The solution should cover at least: Policies must address at the least the following: Insider theftPhysical theft / prevention Subcontractor /third party Data transfer security / loss prevention Data breach response...
Assume that you work for Greeble's Department Store, and your manager wants to discuss the pros...
Assume that you work for Greeble's Department Store, and your manager wants to discuss the pros and cons of discontinuing its hardware department. That department appears to be generating losses, and your manager believes that discontinuing it will increase overall store profits. Question: What factors should Greeble's management consider when trying to decide whether to discontinue its hardware department?
13b - Dark Energy and Matter What are the latest thoughts and ideas on the role...
13b - Dark Energy and Matter What are the latest thoughts and ideas on the role of Dark Matter and Dark Energy in the formation and future of our Universe? (this is part of how galaxies work and Cosmology, our next lesson)
When you walk into a store such as Target, Walmart or any grocery store, do you...
When you walk into a store such as Target, Walmart or any grocery store, do you usually have list and only buy the items on the list? If you are like me, you walk around the store and pick up 10 items you didn't anticipate buying. Why do you think this happens? Is there a particular store you shop at where this happens consistently? Why?
Discuss any four characteristics of customer analytics. If you are the shop manager of a supermarket...
Discuss any four characteristics of customer analytics. If you are the shop manager of a supermarket and you are allowed to install some measurement devices, what types of customer analytics will you collect?  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT