Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you solve this in python. Thank you n Exercises 11 through 14, use the file Justices.txt that contains data abou Supreme Court justices, past
Can you solve this in python. Thank you
n Exercises 11 through 14, use the file Justices.txt that contains data abou Supreme Court justices, past and present as of Janua 015. Each record of the file the state from which thy ry 2 contains six fields -first name, last name, appointing president, the state from which the were appointed, year appointed, and the year the justice left the court. (For current justices the last field is set to 0.) The first five lines of the file are as follows: Samuel,Al i to , George w. Bush , NJ, 2006,0 Henry, Baldwin, Andrew Jackson, PA, 1830,1844 Philip, Barbour, Andrew Jackson, VA, 1836,1841 Hugo, Black, Franklin Roosevelt,AL, 1937,1971 Harry, Blackman, Richard Nixon, MN, 1970,1994 cts should be displayed. See Fig. 5.19. 4, Supreme Court Write a program that requests a state abbreviation as input an plays the justices appointed from that state. The justices should be ordered by their years served. The output should also display the last name of the appointing president and the length of time served. (Note: For current justices, use 2015 - yr Appointed as their time of service. Otherwise, use yrLeft-yrAppointed.) Also, the program should in user if no justices have been appointed from the requested state. See Fig. 5.20. Enter a state abbreviation: NH Justice David Souter Levi Woodbury Appointing Pres Bush Yrs Served 19 2 Polk FIGURE 5.20 Possible outcome of Exercise 14Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started