Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in c++ program: The lady handed in the luggage: a sofa, a suitcase, a bag, a picture, a basket, a cardboard box and a

write in c++ program:

The lady handed in the luggage: a sofa, a suitcase, a bag, a picture, a basket, a cardboard box and a small dog. When registering at the airport, each thing was weighed (the weight of each in the receipt is indicated). Free transportation - 20 kg of luggage and 5 kg of hand luggage. Determine how much the lady will have to pay for the transportation of things, if for each extra 1 kg of luggage you need to pay N rubles, for 1 kg of hand luggage - M rubles. A dog in the luggage compartment can not be handed over, so it's cold there. N, M - constants, consider equal to 100 and 150 rubles. respectively. Input: Seven real numbers - the weight of each item in accordance with receipts. Imprint: It is required to withdraw the amount (in rubles), which must be paid in advance to the lady. 

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 Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Saving a spreadsheet file in . csv format only saves the

Answered: 1 week ago

Question

=+employee to take on the international assignment?

Answered: 1 week ago