Question

Solve the following problem by following the steps for developing solutions: The Last Stop Boutique has...

Solve the following problem by following the steps for developing solutions:

The Last Stop Boutique has a special sale of five days. Each day, Starting Monday, the price will decrease 10% of the previous day. For Example, the original price of the product is $20.00, the Monday of the sale will cost $18.00, on Tuesday it will cost $16.20, On Wednesday it will cost $14.58, on Thursday it will cost $13.12 and on Friday the price will be $11.81.

A. Develop a solution to calculate the price of a product for each day, considering the original price. Try the solution for a product whose value $25.00

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

public class BoutiqueSale {

   public static void main(String[] args) {
       double product_value = 25;
       double discount = 10;
       String days[] = {"Monday","Tuesday","Wednesday","Thursday","Friday"};
      
       for(int i =0;i<5;i++) {
           // Subtract the discounted value from product_value
           // Print the day and the product_value after discount
           product_value = product_value - (product_value*discount/100);
           System.out.println(days[i]+" discounted price: $"+product_value);
       }
   }
}

OUTPUT

ProvieTiSeJavauoc Declaration Search CONSUI <terminated> BoutiqueSale [Java Application] C:\Program Fi Monday discounted pric

Add a comment
Know the answer?
Add Answer to:
Solve the following problem by following the steps for developing solutions: The Last Stop Boutique has...
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
  • Problem 9-09 Epsilon Airlines services predominantly the eastern and southeastern united States. The vast majority of E...

    Problem 9-09 Epsilon Airlines services predominantly the eastern and southeastern united States. The vast majority of Epsilon’s customers make reservations through Epsilon’s website, but a small percentage of customers make reservations via phones. Epsilon employs call center personnel to handle these reservations and to deal with website reservation system problems and for the rebooking of flights for customers whose plans have changed or whose travel is disrupted. Staffing the call center appropriately is a challenge for Epsilon’s management team. Having...

  • The formulation and solution of a certain staff-scheduling problem are shown below: MIN M + T...

    The formulation and solution of a certain staff-scheduling problem are shown below: MIN M + T + W + R + F + S + N T + W + R + F + S >= 14 W + R + F + S + N >= 9 M + R + F + S + N >= 8 M + T + F + S + N >= 6 M + T + W + S + N >=...

  • please help with the bottom portions EDUUR Problem 9 09 (Algorithmic) Epsilon Airlines services predominantly the...

    please help with the bottom portions EDUUR Problem 9 09 (Algorithmic) Epsilon Airlines services predominantly the eastern and southeastern united States. The vast majority of Epsilon's customers make reservations through Epsilon's website, but a small percentage of customers make reservations via phones. Epsilon employs call center personnel to handle these reservatior and to deal with website reservation system problems and for the rebooking of flights for customers whose plans have changed or whose travel is disrupted. Staffing the call center...

  • My question is about the case study “ Comparing Apples and Oranges: which group yuelds the...

    My question is about the case study “ Comparing Apples and Oranges: which group yuelds the best profit?” 1) Using the Excel apreadsheet attached to complete the rooms sold and revenue projections based on the above case study. Case Study: "Comparing Apples and Oranges: Which Group Yields the Best Profit?" ​The Diamond Peak Hotel, one of 45 hotels in the Host Marriott management company, was bustling with business this Thursday afternoon as the hour of the daily revenue meeting drew...

  • Problem: Rockford Corporation is a wholesale plumbing supply distributor. The corporation was organized in 1981, under...

    Problem: Rockford Corporation is a wholesale plumbing supply distributor. The corporation was organized in 1981, under the laws of the State of Illinois, with an authorized capitalization of 10,000 shares of no-par common stock with a stated value of $30 per share. The common stock is sold over the counter in the local area. You have been hired as of Friday, December 26, 2014, to replace the controller, who has resigned. As controller, you are responsible for the corporation’s accounting...

  • Read the Article posted below, then answer the following questions: 1. As a junior member of...

    Read the Article posted below, then answer the following questions: 1. As a junior member of your company’s committee to explore new markets, you have received a memo from the chairperson telling you to be prepared at the next meeting to discuss key questions that need to be addressed if the company decides to look further into the possibility of marketing to the BOP segment. The ultimate goal of this meeting will be to establish a set of general guidelines...

  • And there was a buy-sell arrangement which laid out the conditions under which either shareholder could...

    And there was a buy-sell arrangement which laid out the conditions under which either shareholder could buy out the other. Paul knew that this offer would strengthen his financial picture…but did he really want a partner?It was going to be a long night. read the case study above and answer this question what would you do if you were Paul with regards to financing, and why? ntroductloh Paul McTaggart sat at his desk. Behind him, the computer screen flickered with...

  • Risk management in Information Security today Everyday information security professionals are bombarded with marketing messages around...

    Risk management in Information Security today Everyday information security professionals are bombarded with marketing messages around risk and threat management, fostering an environment in which objectives seem clear: manage risk, manage threat, stop attacks, identify attackers. These objectives aren't wrong, but they are fundamentally misleading.In this session we'll examine the state of the information security industry in order to understand how the current climate fails to address the true needs of the business. We'll use those lessons as a foundation...

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