ASCII(e)=101 sum=103+105+118+101-427. The set are(42.24). (47.74).(27.72). The biggest values in a set is (42,74,72) char(42)=* char(74)=) char(72)=H ASCII(u)=117 ASCII (p)=112 sum=117+112=229, The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92) char(22)=$(Replaced with S) char(92)=\ char(92)=\ Output: (62 *JH S\\ For example: Test Input 1 Result Dont give up (62 3H $\\
ASCII(e)=101 sum=103+105+118+101-427. The set are(42.24). (47.74).(27.72). The biggest values in a set is (42,74,72) char(42)=* char(74)=) char(72)=H ASCII(u)=117 ASCII (p)=112 sum=117+112=229, The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92) char(22)=$(Replaced with S) char(92)=\ char(92)=\ Output: (62 *JH S\\ For example: Test Input 1 Result Dont give up (62 3H $\\
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 20PE
Related questions
Question
![ASCII(e)=101
sum=103+105+118+101=427. The set are(42.24). (47.74).(27.72). The biggest values in a set is (42,74,72)
char(42)=*
char(74)=J
char(72)=H
ASCII(u)=117
ASCII (p)=112
sum=117+112=229. The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92)
char(22)=$(Replaced with $)
char(92)=\
char(92)=\
Output:
(62 *JH S\\
For example:
Test Input
1
Result
Dont give up (62 3H $\\](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd804f70f-1a78-4403-93bf-838e65f14e42%2Fe5fe5f08-4dae-45ad-b3dc-187251dddb79%2F0yvgr7he_processed.png&w=3840&q=75)
Transcribed Image Text:ASCII(e)=101
sum=103+105+118+101=427. The set are(42.24). (47.74).(27.72). The biggest values in a set is (42,74,72)
char(42)=*
char(74)=J
char(72)=H
ASCII(u)=117
ASCII (p)=112
sum=117+112=229. The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92)
char(22)=$(Replaced with $)
char(92)=\
char(92)=\
Output:
(62 *JH S\\
For example:
Test Input
1
Result
Dont give up (62 3H $\\
![In python language please
Input a sentence from the user and compute the following:
Eg: Dont give up
Find the ASCII value for each character of each word and calculate the sum.
//hint use ord() & chr() function are used to find corresponding ASCII & char values in python.
//*if you get any value ranges from 1 to 32 then replace with $ symbol
//char[1-32]--->S
Dont give up
ASCII(D)=68
ASCII (0)=111
ASCII(n)=110
ASCII(t)=116
sum=68+111+110+116=405. The set are (40, 04), (45,54), (05,50). The biggest values in a set is(40, 54, 50).
char(40)=(
char(54)=6
char(50)=2
ASCII(g)=103
ASCII()=105
ASCII(v)=118
ASCII(e)=101
sum=103+105+118+101-427, The set are(42.24), (47,74),(27,72), The biggest values in a set is (42.74,72)
char(42)=*
char(74)=)
char(72)=H
ASCII(u)=117
ASCII (p)=112
sum=117+112=229, The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92)
char(22)=$(Replaced with S)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd804f70f-1a78-4403-93bf-838e65f14e42%2Fe5fe5f08-4dae-45ad-b3dc-187251dddb79%2F0sdeco_processed.png&w=3840&q=75)
Transcribed Image Text:In python language please
Input a sentence from the user and compute the following:
Eg: Dont give up
Find the ASCII value for each character of each word and calculate the sum.
//hint use ord() & chr() function are used to find corresponding ASCII & char values in python.
//*if you get any value ranges from 1 to 32 then replace with $ symbol
//char[1-32]--->S
Dont give up
ASCII(D)=68
ASCII (0)=111
ASCII(n)=110
ASCII(t)=116
sum=68+111+110+116=405. The set are (40, 04), (45,54), (05,50). The biggest values in a set is(40, 54, 50).
char(40)=(
char(54)=6
char(50)=2
ASCII(g)=103
ASCII()=105
ASCII(v)=118
ASCII(e)=101
sum=103+105+118+101-427, The set are(42.24), (47,74),(27,72), The biggest values in a set is (42.74,72)
char(42)=*
char(74)=)
char(72)=H
ASCII(u)=117
ASCII (p)=112
sum=117+112=229, The set are (22.22). (29.92). (29.92), The biggest values in a set is(22.92.92)
char(22)=$(Replaced with S)
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr