Answer to Question #88997 in Python for bugg

Question #88997
Write a program which will provide the Python instructions to invoke
the following pseudocode design (HINT: using your earlier programs,
change this English language solution to a working Python format):
- Input salesperson's name preceeded by an appropriate
prompt to either enter the salesperson's name OR enter
"Q" to end.
- While not salesperson's name = "Q"
- Input sales on screen with appropriate prompt
- Print (on screen) salesperson's name; ", your sales are";
sales
- Print (on screen) a blank line
- Input salesperson's name or "Q" to end
- Print (on screen) "That's All Folks"
- End of program
1
Expert's answer
2019-05-02T14:00:21-0400
name = input('Please, enter the name or Q to exit: ')
 while name != 'Q':
    sales = input('Please, enter a sale: ')
    print('{}, your sales are {}'.format(name, sales))
    print()
    name = input('Please, enter the name or Q to exit: ')
 print("That's All Folks")

Output

Please, enter the name or Q to exit: Adam

Please, enter a sale: 23

Adam, your sales are 23


Please, enter the name or Q to exit: Sara

Please, enter a sale: 25

Sara, your sales are 25


Please, enter the name or Q to exit: Q

That's All Folks 


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
APPROVED BY CLIENTS