Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to write these basic codes? Can I get an -answer? This activity requires you to write two short programs as described below: 1. common

How to write these basic codes? Can I get an -answer?
image text in transcribed
This activity requires you to write two short programs as described below: 1. common letters,py_ Write a program that prompts the user two string inputs and store them in two variables, word1 and word2. The program should then print the letters the two words have in common onto the screen. Hint: The intersection of two sets contain elements that are common to both 2. average age py. Write a program that prompts the user 5 times for input. Each time, the user provides a first name, last name and age. The program should print the full name and age on the screen before prompting the user for the next input. The program then calculates the average age, converting it to an integer before printing it on the screen. Hint: You can maintain a running sum of ages as you process each input, and then once all inputs have been processed, divide that by 5

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

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

3. You can gain power by making others feel important.

Answered: 1 week ago

Question

Write down the circumstances in which you led.

Answered: 1 week ago