Answer to Question #263344 in Algorithms for Bigboss0616

Question #263344

Create Program Plan, Algorithm, and Flowchart


A company classifies its products by weights as follows:

Class A – 12 pound or over

Class B – 5 to 11.9 pounds

Class C – less than 5 pounds


Show the logic of determining into which class to place an item.



1
Expert's answer
2021-11-09T10:20:25-0500
Program Plan:
1. Declare variables
2. Read weights
3. Create if statement
4. Display result




Algorithm:


Start
    Declare variable weights
    Read weights
    if weights>=12 then
       Display message: "Class A"
    End if
    if weights>=5 and weights<= 11.9 then
       Display message: "Class B"
    End if
    if weights<5 then
       Display message: "Class C"
    End if	
Stop




Flowchart

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS