Safari File Edit View History Bookmarks Develop Window Help 31% O Mon 11:29 PM Not Secure - codecheck.io a 3.1 The. Error -. Error -. Error -.- Error -. Error -. Math 1. Math 1. C Your As. * Start P. O Joe Ro... Error -. Click on the buttons below to view all parts of the assignment. 1 (100%) 2 (0%) It is March 14, and the bakery is holding a pie sale. All pies with a regular price of more than $10 are $3.14 off. All others are $1.00 off. Write a program that reads the price of a pie and prints the discounted price. Complete the following file: piesale.cpp 1 2 #include #include 4 5 using namespace std; int main() { cout « "Original price: double price; cin >> price; double discounted_price; 7 8 « endl; %3D 10 11 12 13 14 { 15 } else 16 17 6,802 28

Microsoft Windows 10 Comprehensive 2019
1st Edition
ISBN:9780357392607
Author:FREUND
Publisher:FREUND
Chapter5: Advanced Personalization And Customization
Section: Chapter Questions
Problem 1AYK
icon
Related questions
Question
Safari
File Edit
View
History
Bookmarks Develop
Window
Help
31% O
Mon 11:29 PM
Not Secure - codecheck.io
a 3.1 The.
Error -.
Error -.
Error -.-
Error -.
Error -.
Math 1.
Math 1.
C Your As.
* Start P.
O Joe Ro...
Error -.
Click on the buttons below to view all parts of the assignment.
1 (100%)
2 (0%)
It is March 14, and the bakery is holding a pie sale. All pies with a regular price of more than $10 are $3.14 off. All others are $1.00 off. Write a program that reads the price of a pie and
prints the discounted price.
Complete the following file:
piesale.cpp
1
2
#include <iostream>
#include <iomanip>
4
5 using namespace std;
int main()
{
cout « "Original price:
double price;
cin >> price;
double discounted_price;
7
8
« endl;
%3D
10
11
12
13
14
{
15
}
else
16
17
6,802
28
Transcribed Image Text:Safari File Edit View History Bookmarks Develop Window Help 31% O Mon 11:29 PM Not Secure - codecheck.io a 3.1 The. Error -. Error -. Error -.- Error -. Error -. Math 1. Math 1. C Your As. * Start P. O Joe Ro... Error -. Click on the buttons below to view all parts of the assignment. 1 (100%) 2 (0%) It is March 14, and the bakery is holding a pie sale. All pies with a regular price of more than $10 are $3.14 off. All others are $1.00 off. Write a program that reads the price of a pie and prints the discounted price. Complete the following file: piesale.cpp 1 2 #include <iostream> #include <iomanip> 4 5 using namespace std; int main() { cout « "Original price: double price; cin >> price; double discounted_price; 7 8 « endl; %3D 10 11 12 13 14 { 15 } else 16 17 6,802 28
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Device network connection
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage