(Solved) : Black Jack Like Program Program Reads Numbers Sums Total Gets Greater Equal 21 Input Seque Q32562936 . . .
A Black Jack-likeprogram: a program that reads numbers and sums them until the totalgets greater or equal to 21. The input sequence ends with 0 for theprogram to be able to stop even if the total sum of all numbers isless than 21.
• When the total isgreater or equal to 21 : print like “ Total sum is24”
• If 0 is enteredand the total is less than 21
: print like“Total sum is lessthan 21 and is equal to 14”
• Test Case1
input:“2”, “4”, “7”, “0” output: “Total sum is less than 21 and isequal to 13”
• Test Case2
input:“9”, “9”, “5”(“4”, “0” : actually, they can not beentered) output: “ Total sum
is23”
Draw a flowchart andwrite a Python code: Use while and elsestatement,break
Expert Answer
Answer to Black Jack Like Program Program Reads Numbers Sums Total Gets Greater Equal 21 Input Seque Q32562936 . . .
OR