Using C++ Input a number into an array of characters.  Check to see if all of the characters in the array are numeric.  If they are not all numeric output (invalid input).  If they are all numeric convert the characters to there integer form.  Once in the integer form add 25 to the integer and print it out. Example run: Input a number-> 12A3 (Invalid input) Input a number->125 Your number plus 25 is150

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

Using C++

Input a number into an array of characters.  Check to see if all of the characters in the array are numeric.  If they are not all numeric output (invalid input).  If they are all numeric convert the characters to there integer form.  Once in the integer form add 25 to the integer and print it out.

Example run:

Input a number-> 12A3
(Invalid input)

Input a number->125
Your number plus 25 is150

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,