exercise you will create a pro methat thas room to store only the last name of the author used in a digital library to format and sort journal entries based on the authors last name. Each el of the author. Begin by removing the first namentbaachfrom the string variable jourhalisent yels by using the string functiont éage Do not forget to also ren o the whitespace so that the string variable journal tentcorte will then contain the string thNewtones with no whitespaces whitespaces. The journal entries should be sorted alphabetically based on the authors last name: For example, the last name ttscount should come before the last name "Davis"ame "Davis" Create ant 16 statement so that if the last name contained within journaalcentration is alphabetically less than the last name contained withinintain journabnenterstringthen the string values are swappled using the string function swap function swap You may use either of the comparison operators < station that fit statement but remember that following ASCIIth is lexicographically lower than

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

 

eIn this exercise you will create a program that will be used in a digital library to format and sort journal entries based on the authors last name. Each entryme. Each entry
thas room to store only the last name of the authore of the author.
mo Begin by removing the first namenssachgfrom the string variable jourbyliseng yels by using the string functiont épage Do not forget to also remove to also remove
the whitespace so that the string variable journal tentconta will then contain the string thNewtions with no whitespaces whitespaces.
The journal entries should be sorted alphabetically based on the authors last name: For example, the last nameuttbcounshould come before the last before the last
name "Davis"hame "Davis"
Create ant 36 statement so that if the last name contained within journal pentrstical is alphabetically less than the last name contained withinintained within
journabnenterstringthen the string values are swapped using the string functions swap function swap
You may use either of the comparison operatorsis batin that bit statement but remember that following ASCHIghits lexicographically lower than "B"ower than "B"
bUtilize the below two stringstin your solution our solution
g journstring journalsentryelt"Isaac Newton"};ac Newton"};
g journstring journaleentry 2; {"Leibniz"}; {"Leibniz"};
Transcribed Image Text:eIn this exercise you will create a program that will be used in a digital library to format and sort journal entries based on the authors last name. Each entryme. Each entry thas room to store only the last name of the authore of the author. mo Begin by removing the first namenssachgfrom the string variable jourbyliseng yels by using the string functiont épage Do not forget to also remove to also remove the whitespace so that the string variable journal tentconta will then contain the string thNewtions with no whitespaces whitespaces. The journal entries should be sorted alphabetically based on the authors last name: For example, the last nameuttbcounshould come before the last before the last name "Davis"hame "Davis" Create ant 36 statement so that if the last name contained within journal pentrstical is alphabetically less than the last name contained withinintained within journabnenterstringthen the string values are swapped using the string functions swap function swap You may use either of the comparison operatorsis batin that bit statement but remember that following ASCHIghits lexicographically lower than "B"ower than "B" bUtilize the below two stringstin your solution our solution g journstring journalsentryelt"Isaac Newton"};ac Newton"}; g journstring journaleentry 2; {"Leibniz"}; {"Leibniz"};
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY