Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE3.1.1: Reading multiple data ty ACTIVITY Type two statements. The first reads user input into person_name. The second reads user input into person age. Use

image text in transcribedimage text in transcribedimage text in transcribed

CHALLENGE3.1.1: Reading multiple data ty ACTIVITY Type two statements. The first reads user input into person_name. The second reads user input into person age. Use the int0 function to convert person age into an integer. Note: Do not write a prompt for the input values. Below is a sample output for the given program if the user's input is: Amy 4 In 5 years Amy will be 9 1 person_name'' 2 person-age=0 4 Your solution goes here"" 6 print( In 5 years', person_name, 'will be', person_age 5) Run CHALLENGE CCTILEY3.1.2: Concatenating strings. Write two statements to read in values for my_city followed by my_state. Do not provide a prompt. Assign log entry with current time, my_city, and my_state. Values should be separated by a space. Sample output for given program if my._city is Houston and my_state is Texas: 2014-07-26 02:12:18: Houston Texas Note: Do not write a prompt for the input values. 1 current-time = '2014-07-26 02:12:18:' 2 my city 3 my_state 4 log-entry = '' 6 Your solution goes here" 8 printClog_-entry) Run CHLE3.3.2: Set theory methods ACTIVITY The following program includes fictional sets of the top 10 male and female baby names for the current year. Write a program that creates 1. A set all_names that contains all of the top 10 male and all of the top 10 female names. 2. A set neutral_names that contains only names found in both male_names and female_names. 3. A set specific_names that contains gender specific names found only in one of the top 10 sets. 1 male_names 'John', 'Bailey', 'Charlie', 'Chuck', 'Michael', 'Samuel', 'Jayden', Aiden', 'Henry', 'Lucas' 2 female_names 'Elizabeth', 'Meghan' "Kim, 'Khloe', 'Bailey, 'Jayden', 'Aiden', 'Britney, 'Veronica', 'Maria' 4 Use set methods to create sets al1_names, neutral_names, and specific_names. 6Your solution goes here' Run

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

=+1. What proactive strategies might you develop?

Answered: 1 week ago