Python Forum
[split] Please advise how to write this program
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Please advise how to write this program
#1
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
--------------------------------
Reply


Messages In This Thread
[split] Please advise how to write this program - by Rmasson - Apr-19-2019, 11:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Write a program in python lana 6 1,542 Oct-11-2023, 05:30 PM
Last Post: deanhystad
Photo How can I write a Python program for this structogram? rauljp9483 6 78,336 Nov-24-2021, 06:57 AM
Last Post: buran
  [split] Can’t get program to run properly KingC 2 2,512 Dec-10-2019, 12:20 AM
Last Post: micseydel
  write split words of sentence to file bluefrog 1 3,076 Aug-27-2018, 01:28 AM
Last Post: micseydel
  Write a program to compute the sum of the terms of the series: 4 - 8 + 12 - 16 + 20 - chewey777 0 2,910 Mar-24-2018, 12:39 AM
Last Post: chewey777
  given 2 base 20 numbers write a program to subtract second from the first and return dp_tisha 2 3,868 Jul-06-2017, 09:22 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020