C++   How to Program (Early Objects Version)
C++ How to Program (Early Objects Version)
10th Edition
ISBN: 9780134448824
Author: Paul Deitel; Harvey M. Deitel
Publisher: Pearson Education (US)
bartleby

Concept explainers

Question
Book Icon
Chapter 21, Problem 21.14E
Program Plan Intro

Program Plan:

  • Include header files.
  • Make two character arrays “ a” and “ b ”.
  • Get the message in “ a ”.
  • Use “strlen()” function to get length of the entered message in variable “ len ”.
  • Run the for loop for value 1 to len
    • Convert every character to lowercase using “tolower()” function.
    • If character is not space then check that if we add 13 to the current character i.e. a[i], the resultant character is less than or greater than character ‘z’.
    • If not going beyond ‘z’ then make b[i]=a[i]+13.
    • else make b[i]=a[i]-13.
    • If current character a[i] is space make b[i]=a[i], which means putting space in array b.
    • End of for loop
    • Put ‘\0’ − null character in the end of array b.
    • Display the array b as encrypted message.

Blurred answer
Students have asked these similar questions
I want to solve 13.2 using matlab please help
a) Show a possible trace of the OSPF algorithm for computing the routing table in Router 2 forthis network.b) Show the messages used by RIP to compute routing tables.
using r language to answer question 4 Question 4: Obtain a 95% standard normal bootstrap confidence interval, a 95% basic bootstrap confidence interval, and a percentile confidence interval for the ρb12 in Question 3.
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage