We package 3 pounds in a box. Tell me how many pounds do you have, and I will tell you how many baxes you need Enter the total weight in pounds: 17 You need 6 Baxes We package 3 pounds in a box. Tell...


Write a program that asks for the weight of a package in pounds determines the number of boxes need to pack the items. Assume that a box can hold a maximum of three pounds.


For now, assume that the package weight is an integer.


Use if else statements to write the code.


Here is 2 sample executions in which the green fons is the user input.


We package 3 pounds in a box.<br>Tell me how many pounds do you have, and I will tell you how many baxes you need<br>Enter the total weight in pounds: 17<br>You need 6 Baxes<br>We package 3 pounds in a box.<br>Tell me how many pounds do you have, and I will tell you how many boxes you nced<br>Enter the total weight in pounds: 2<br>You need 1 Boxes<br>

Extracted text: We package 3 pounds in a box. Tell me how many pounds do you have, and I will tell you how many baxes you need Enter the total weight in pounds: 17 You need 6 Baxes We package 3 pounds in a box. Tell me how many pounds do you have, and I will tell you how many boxes you nced Enter the total weight in pounds: 2 You need 1 Boxes

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here