Answered step by step
Verified Expert Solution
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
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