subject

Complete this assignment in python 3.x. make sure you have downloaded the software, and it is installed correctly.

you will code the following and submit it in one file. use the information in the lessons area for this week to assist you. save it as a python file (.py), and upload it into the assignments area.

create a comment block (starts at line 1 in the code) with the following information:

your name
course name, section (example: entd200 b002 spr15)
instructor name
week #
date completed
problem 1: create a list (or tuple only, no dictionary) that contains the months of the year. ( do not hardcode the number)
problem 2: create a loop to print the number and the months of the year from the list.
the output should like this:

month 1 is january
month 2 is february
….
….

month 12 is december

optional 1

month 1 is january, new year ( do not use if-then)

the output will look like this

month 1 is january , new year!
month 2 is february, valentine!
month 3 is march
month 4 is april
month 5 is may
month 6 is june
month 7 is july, fourth of july!
month 8 is august
month 9 is september
month 10 is october, halloween!
month 11 is november, !
month 12 is december, christmas!

optional 2
modify the payroll and/or the mpg program from week5/6 to store the results in a list/dictionary. print the list/dictionary when no more calculation is selected.
the output will be something like this for the payroll

payroll for week xyz
james bond 21,500
al bundy 500
johnny english ….. 1,200
total payroll 23,200

for the mpg will be something like

mpg for zyz truck
week 1 12
week 2 33
week 3 27
mpg ave 24

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Pthe price of tickets in a group when a purchased in bulk can be found with the equation c=px+24 were c is the cost, p is the number of people,and x is the price per ticket. what is price of of each ticket if it costs $189 to buy tickets for 15 people ? a $8 b $24c $9d $11 show work
Answers: 1
question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Where would you click to edit the chart data?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
You know the right answer?
Complete this assignment in python 3.x. make sure you have downloaded the software, and it is instal...
Questions
question
Mathematics, 22.09.2020 23:01
question
Chemistry, 22.09.2020 23:01
question
Mathematics, 22.09.2020 23:01
question
Mathematics, 22.09.2020 23:01
question
English, 22.09.2020 23:01
Questions on the website: 13722361