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, 21.06.2019 20:30
To display data in a certain manner like alphabetical order is called
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-à-vis other ad-serving companies?
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
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, 02.12.2020 04:40
question
Mathematics, 02.12.2020 04:40
question
Mathematics, 02.12.2020 04:40
question
Mathematics, 02.12.2020 04:40
question
Mathematics, 02.12.2020 04:40
Questions on the website: 13722360