Answered step by step
Verified Expert Solution
Link Copied!

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

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 Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions