Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ programming language 2- Write a program that determines the price of an item after the discount according to the following rule: If the original

c++ programming language
image text in transcribed
2- Write a program that determines the price of an item after the discount according to the following rule: If the original price is greater than 250.00 then the discount is 20%, Otherwise the discount is 10% in Summer seasons and 5% in Winter seasons. The program should read and 1- the original price of an item 2- the current season (only if needed) Remark1: You may ask the user the following question to know the current season: Enter 1 for summer seasons and 2 for winter seasons: Remark 2: Mathematical Formula: price after discount = original price (1 - discount percentage) >= 300 (1 -0.2) = 300 (0.8) = 240 (Example of 20% discount on an item of original price: 300 )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions