Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

imir.io/projects/c3827df7-3cf3-4311-80ae-a36faf63acef/project submissions Write a program to fetch state of residence and marital status of 5 users. Use if.elif: to find out the number of people

image text in transcribed
image text in transcribed
imir.io/projects/c3827df7-3cf3-4311-80ae-a36faf63acef/project submissions Write a program to fetch state of residence and marital status of 5 users. Use if.elif: to find out the number of people who belong to each of the regions below. If the user is from "CA", NV",-AR", "WA". count them towards westernregion Within this region, count the number of people who are married, single, divorced and separated. If the user is from "NY", "MA", "FL count them towards eastern region Within this region, count the number of people who are married, single, divorced and separated. If the user is from "TX", "AL", "GA count them towards southern region Within this region, count the number of people who are married, single, divorced and separated. ELSE AR or WA" Make sure you test the program intensively before submitting it. All results must be displayed Mimir Requirements: display "The person is not counted towards Any of the following states. TX, Al, GA, NY, MA, FL, CA, NV. The file name should be named Module3Homework5.py Your program should be able to handle both cases for each state, fo example, CA or "ca for california, TX" or tx" for Texas and so on. Similarly, for marital status, your program should handle status "Married" or "married "Single" or 'single and so on. Mimir will be testing your program for different variations of input with multiple test cases. Your program must pass each test case scenario. Here are the results of three sample scenarios. Test Scenario 1 please enter the state where the first person resides:CA Please enter your marital status of first person :'Single please enter the state where the second person resides :TX Please enter your marital status of second person :Divorced please enter the state where the third person resides :FL 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

What are the requirements of ISO 9001: 2015?

Answered: 1 week ago

Question

manageremployee relationship deteriorating over time;

Answered: 1 week ago