7. The charges of goods are calculated according to the weight of the goods. The charging standard of an office is: 0.5
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
7. The charges of goods are calculated according to the weight of the goods. The charging standard of an office is: 0.5
7. The charges of goods are calculated according to the weight of the goods. The charging standard of an office is: 0.5 yuan per kg for the goods under 50 kg (included), 0.6 yuan per kg for the part over 50 kg. Write a python program, input the weight of goods, and output the charge of the goods. After each input, the user need input "y or Y" to continue to input the weight of the next goods, the program continues to calculate. The program will exit until the user input "n or N". The program will output the weight and charge of goods, which is separated by " "a space).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!