Can you do this program?

User Generated

Znexb

Programming

Description

Unformatted Attachment Preview

CSC 122 – INTRODUCTION TO PROGRAMMING PROG #6 100 POINTS Programming Exercise #6 Total Sales Due: April 12, 2015 Instructions: Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in a list. You may also want to store the days of week in a list. Use a loop to calculate the total sales for the week and display the result. Programming Style Requirements 1. Standard Output Program Header Information CSC 122-W1 – Program #6 By The standard output program header information is to be included at the top of the program and should be the first lines displayed on the output screen. 2. Comments The program must include a main comment block (2-3 lines is sufficient) before the standard output program header information that describes the purpose of the program. There should also be comments included throughout the program to describe what is going on in the program (i.e. input and calculation). 3. Descriptive names must be used for all variables in the program. 4. The program must store the store’s sales amount for each day of the week in a list. 5. The program must properly label the output. See the screen capture below. 6. Saving the Program Save the source code for the program as Prog6.py Winter 2015 1 Due: 4/12/2015 CSC 122 – INTRODUCTION TO PROGRAMMING PROG #6 Required Output: The program output should look identical to the screen capture above. When the program is working correctly and free of syntax errors, submit the Prog6.py file to Blackboard. (DO NOT send the program via email. Only homework submitted via Blackboard will be graded.) Grade Rubric: Points Description 5 The program is saved as Prog6.py. 5 The program displays the standard program header information. 5 A main comment block is included to describe what the program does. See #2 above. 5 Comments are included throughout the program to describe the difference processes used. See #2 above. Winter 2015 2 Due: 4/12/2015 CSC 122 – INTRODUCTION TO PROGRAMMING PROG #6 5 Descriptive variable names are used in the program. 10 The program contains at least one (1) function. 20 The program contain two lists. One list to hold the days of the week and the other list to store the sales for each day of the week. 20 The program displays the days of the week when prompting the user to enter the store’s sales for each day of the week. 10 The program uses a loop to calculate the total sales for the week and displays the result. The program displays the total sales with a “$” sign and formatted to 2 decimal places 10 5 100 The program output is identical to the required output. See screen capture above. Total Points Program should be submitted by Sunday, April 12. Winter 2015 3 Due: 4/12/2015
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
Really useful study material!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags