Subject: Python Programming   Please solve only problem 2

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 4PP: (Useful utility) Modify the program written for Exercise 3 to search for the first occurrence of a...
icon
Related questions
Topic Video
Question

Subject: Python Programming

 

Please solve only problem 2

Solving problems with python
Solve the following problem using a loop. Start with the algorithm (flow chart or pseudo-code) then
translate the algorithm in python code.
Problem 1
Write a program that asks the user to enter their name, and displays the name with spaces between
every character, in upper case. Check that the name is composed of only alphabetic characters. Your
output should be very similar to the below sample runs:
Sample 1:
Please enter your name: zein
ZEIN
Sample 2:
Please enter your name: ze33
Please use only alphabetic characters for your name entry.
Problem 2
Edit the previous program so that you utilize a function to return the new name string with upper lasse
characters and spaces between the characters. Your output should be very similar to the below sample
runs:
Sample 1:
Please enter your name: dina
Now using function to return the new string.
DINA
Sample 2:
Please enter your name: deee
Please use only alphabetic characters for your name entry.
Transcribed Image Text:Solving problems with python Solve the following problem using a loop. Start with the algorithm (flow chart or pseudo-code) then translate the algorithm in python code. Problem 1 Write a program that asks the user to enter their name, and displays the name with spaces between every character, in upper case. Check that the name is composed of only alphabetic characters. Your output should be very similar to the below sample runs: Sample 1: Please enter your name: zein ZEIN Sample 2: Please enter your name: ze33 Please use only alphabetic characters for your name entry. Problem 2 Edit the previous program so that you utilize a function to return the new name string with upper lasse characters and spaces between the characters. Your output should be very similar to the below sample runs: Sample 1: Please enter your name: dina Now using function to return the new string. DINA Sample 2: Please enter your name: deee Please use only alphabetic characters for your name entry.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr