Question

In: Computer Science

Homework 3 – World Series and Inpatient Payment System This assignment has two parts: one that...

Homework 3 – World Series and Inpatient Payment System

This assignment has two parts: one that takes information from the web and one that takes it from a file.   To select the type of information to gather, a menu will be used.    Although the assignment does not require the use of functions, they can be useful.

***** This question uses Python. The website can not be provided in the question, but the website entails every World Series since 1903, the year it was played, the team who won, the team who lost, and what the series score was. *****

MENU

The menu will have six choices.

  • Getting the title of the website
  • Finding out how many Series resulted in a shutout (a 4-0 series)
  • A way to exit the program
  • The next choice will be your preference between these two:
    • Find the winner and loser from a year given by the user
    • Find the number of times the team given by the user won the Series
  • Records from South Dakota
  • The next choice will be your preference between these two:
    • Highest of the Average Covered Charges
    • Referrals from Chico, CA

WEB

The program will go to this website: On that page is a table showing

  • The year the game was played between 1903 and 2019
  • The winning team
  • The losing team
  • How the games were split (4-2, 4-0, etc.)

Gather all these statistics into one of these configurations: a single list, multiple lists, or a dictionary. Another method could be to store the information in one or more files. There is no requirement for having a certain method for storing this information. It is your choice.

See the MENU section for the required information to gather.

FILE

Open it to find this information:

  • How many of the records are from South Dakota?
  • Answer one of the following questions
    • What are three largest amounts in the column Average Covered Charges and what cities are they from?
    • Of all the records from California, which Provider Names have been referred by Chico? (Use columns Hospital Referral Region Description and Provider Name)

The results of the Charges or the Referrals will be written to a file.

Both the Web and File sections can go in one module. You can do separate modules, if you wish.

See the attached rubric for requirements.

Rubric

Homework 3 - World Series and Inpatient Payment

Points

Is there a main function?

         Yes (5)

5

Is the code inside main?

         Yes (5)

5

Is there a menu?

Yes (5)

5

Does the menu work?

         Yes (5)

5

WEB

Did you get the title?

         Yes (5)

5

Did you get the years where there were shutouts?

         Yes (10)

10

Did you do one of the options? Winner / Loser or
Number of wins

         Yes (10)

10

FILE

Did you get the number of records in South Dakota?

          Yes (10)

10

Did you do one of the options? Average Charges /
Chico Referrals

          Yes (10)

10

Did you write the charges / referrals to a file?

          Yes (10)

10

Did you use variables?

Yes (15)

15

Is standard variable naming used?

Yes (5)

5

Is the standard function naming used?

Yes (5)

5

Are all errors handled?

Yes (30) max of 3 @ 10 pts. each

30

Are comments used?

Header (5)

5

Body (10)

10

Is the code written neatly?

Yes (5)

5

Are the results displayed neatly?

Yes (5)

5

Miscellaneous: anything not in the
sections above

10

Solutions

Expert Solution

Answer :

NOTE : UNLESS you give the information, I cant fininsh this assignment

Hi, as you dosent provide the informations like web address or the file details( to read from the file, I need the file ), I will give a normal general way to read from the file and web page, i can help you, only if you can provide the web address and the file.

So based on that , I will create a menu for you and the normal code the read from the file and from the web page.

The menu is as follows

def menu():
'''This is the main menu'''
while True:
print("---------- MENU ----------")
print("1. Get title of the webpage")
print("2. Number of shoutout")
print("3. Exit")
print("4. Submenu 1")
print("5. Records from south dakota")
print("6. submenu 2")

option = int(input("Enter your option : "))
if option <1 or option >6:
print("Invalid option, Enter again")
continue
break
return option
def submenu1():
'''This is the submenu 1'''
while True:
print("---------- SUB MENU 1 ----------")
print("1. Find the winner and looser of the year")
print("2. Find the numebr of times the team wins")

option = int(input("Enter your option : "))
if option <1 or option >2:
print("Invalid option, Enter again")
continue
break
return option

def submenu2():
'''This is the submenu 2'''
while True:
print("---------- SUB MENU 1 ----------")
print("1. Highest of average covered")
print("2. Referals from ca")

option = int(input("Enter your option : "))
if option <1 or option >2:
print("Invalid option, Enter again")
continue
break
return option
def main():
while True:
option = menu()
if option == 3:
break # exit condition
if option == 1:
# Get title of the webpage
# TODO : Implement the code to rad from the webpage and display the title
pass
elif option == 2:
#TODO : Number of shoutout
pass
elif option == 4:
option = submenu()
if option == 1:
# TODO :Find the winner and looser of the year
pass
else:
# TODO : Find the numebr of times the team wins
pass
elif option == 5:
# TODO :Records from south dakota
pass
else :
# TODO : submenu 2
option = submenu2()
if option == 1:
# TODO :Highest of average covered
pass
else:
# TODO : Referals from ca
pass

main()
I need the web address and the file specified in the assignment to complete this. Hope you will give it fast.

I hope this answer is helpful to you, please upvote my answer. I'm in need of it.. Thank you..


Related Solutions

Homework 3 – World Series and Inpatient Payment System This assignment has two parts: one that...
Homework 3 – World Series and Inpatient Payment System This assignment has two parts: one that takes information from the web and one that takes it from a file.   To select the type of information to gather, a menu will be used.    Although the assignment does not require the use of functions, they can be useful. ***** This question uses Python Programming Language. The website can not be provided in the question, but the website entails every World Series since...
Homework 3 – World Series and Inpatient Payment System This assignment has two parts: one that...
Homework 3 – World Series and Inpatient Payment System This assignment has two parts: one that takes information from the web and one that takes it from a file.   To select the type of information to gather, a menu will be used.    Although the assignment does not require the use of functions, they can be useful. ***** This question uses Python Programming Language. The website can not be provided in the question, but the website entails every World Series since...
This assignment has three parts that should all be completed on one document. For this assignment...
This assignment has three parts that should all be completed on one document. For this assignment you will explore the cost-effectiveness of informatics interventions in healthcare. In your role as director of health informatics you are tasked with putting together an executive report that outlines and EHR adoption the effectiveness of EHR. The detailed assignment requirements are below. Part I Summary of laws and mandates requiring EHR adoption EHR & treatment effectiveness and efficiency Be sure to discuss how PHR...
The homework assignment this week requires you to prepare various journal entries for a series of...
The homework assignment this week requires you to prepare various journal entries for a series of transactions involving sales transactions, estimations for bad debts expense, and estimated warranty obligations. Remember – the only way to lose points is to leave something blank. Take your best shot even if you are NOT really sure. The Professor sold rubber life rafts with a full cash refund if they sunk within a year after the purchase. During the first year 300 rafts were...
one homework question, split into two parts. part 1: A machine can be purchased for $253,000...
one homework question, split into two parts. part 1: A machine can be purchased for $253,000 and used for five years, yielding the following net incomes. In projecting net incomes, double-declining depreciation is applied using a five-year life and a zero salvage value. Year 1 Year 2 Year 3 Year 4 Year 5 Net income $ 17,000 $ 32,000 $ 78,000 $ 46,500 $ 129,000 Compute the machine’s payback period (ignore taxes). (Round payback period answer to 3 decimal places.)...
Assignment Details This assignment has 3 parts: Every business or organization must utilize accounting to record,...
Assignment Details This assignment has 3 parts: Every business or organization must utilize accounting to record, summarize and report business transactions.  While the focus in this course is the use of accounting within a business, the same concepts can be used on a personal level.   How can you use accounting to manage your personal finances?  What are the benefits of keeping track of personal transactions – income and expenses – in an organized manner?   What are some of the possible...
Homework 3 – Programming with C++ What This Assignment Is About: • Classes and Objects •...
Homework 3 – Programming with C++ What This Assignment Is About: • Classes and Objects • Methods • Arrays of Primitive Values • Arrays of Objects • Recursion • for and if Statements • Insertion Sort 2. Use the following Guidelines • Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc). • User upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for...
There are 3 SPSS outputs in this homework assignment. The questions for each output are listed...
There are 3 SPSS outputs in this homework assignment. The questions for each output are listed below. Please type your answers into this word document and submit it as an attachment in the assignment tab. Q1. Researchers were interested in determining whether background music helped or hindered students’ performance on a math test. Students were randomly assigned to 1 of 3 groups: 1) no music; 2) music only; and 3) music with lyrics. Students were then given a math exam,...
Investing (ONE PAGE FOR TWO PARTS) For this assignment, assume that you have $10,000 to invest....
Investing (ONE PAGE FOR TWO PARTS) For this assignment, assume that you have $10,000 to invest. Using the internet, newspapers, investing chapter presentation materials or other sources for information, select at least 2 investments, starting on any date between Jan 21 – Feb 1. You may pick any investment instruments you wish including GICs, stocks (equities), bonds, mutual funds, gold, foreign exchange futures, keeping the funds under your mattress, or any other legitimate investment as long as there are at...
Assignment Details This assignment has 3 parts: How do accounting policies and practices affect financial accounting...
Assignment Details This assignment has 3 parts: How do accounting policies and practices affect financial accounting information used for "external" decision making purposes? What governing and oversight bodies exist to help ensure timely and accurate reporting of financial information by publicly traded companies? How to internal controls help ensure that financial results are accurately and fairly presented for use by external users?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT