1. Engineering
  2. Computer Science
  3. challenge311 reading multiple data ty activity type two statements the...

Question: challenge311 reading multiple data ty activity type two statements the...

Question details

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 users 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) RunCHALLENGE 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) RunCHLE3.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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution