Apr-19-2019, 11:02 PM
Hi guys,
Please advise how to write this program.... I’m new to this. TIA?
Stage 1: Data Entry
Write a program which requests that requests a name and sales amount. Store that data in a List. After the user has entered data, request that the user enters 'y' or 'n' to continue. If they enter 'n', print the list of names and sales figures to the screen. If they enter 'y', repeat the first step.
Your program should produce the following result:
Sales Reporting
Name: Gaye Deegan
Sales: 874
Continue? [y/n] y
Name: Ben Martini
Sales: 655
Continue? [y/n] n
--------------------------------
Gaye Deegan 874.0
Ben Martini 655.0
--------------------------------
Please advise how to write this program.... I’m new to this. TIA?
Stage 1: Data Entry
Write a program which requests that requests a name and sales amount. Store that data in a List. After the user has entered data, request that the user enters 'y' or 'n' to continue. If they enter 'n', print the list of names and sales figures to the screen. If they enter 'y', repeat the first step.
Your program should produce the following result:
Sales Reporting
Name: Gaye Deegan
Sales: 874
Continue? [y/n] y
Name: Ben Martini
Sales: 655
Continue? [y/n] n
--------------------------------
Gaye Deegan 874.0
Ben Martini 655.0
--------------------------------