Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Could you write this in C++? Write a program to prompt user to input the weight of letter, whether or not it is international letter,
Could you write this in C++?
Write a program to prompt user to input the weight of letter, whether or not it is international letter, and then compute and output the related post rate via following the rules:
If the letter weights no more than 30gram, then the post rate is $0.41;
Otherwise, the total post rate is $0.41 plus extra over-weight cost ($0.05 per extra gram).
If a letter is international, an extra 15% tax should be introduced into the post-cost. (Flow-chart and comments are needed, 5 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started