Write a program using an array that accepts five input values from the keyboard. Then it should also accept a number to sea This number is to be search if it is among the five input values. If it is found, display the message "Search number is found!", otherwise display "Search number NOT found!". Program is also able to accept name and section.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 23PE
icon
Related questions
Question

C programming using Arrays

Write a program using an array that accepts five input values from the keyboard. Then it should also accept a number to search.
This number is to be search if it is among the five input values. If it is found, display the message "Search number is found!",
otherwise display "Search number NOT found!". Program is also able to accept name and section.
Sample Input/Output:
Student Name: Juan Dela Cruz
Section: CE3-1
Enter five numbers: 10 20 15 7 8
Enter a number to search: 7
Results(s):
Juan Dela Cruz, CE3-1
Entered number is 7
Search number is found!
Transcribed Image Text:Write a program using an array that accepts five input values from the keyboard. Then it should also accept a number to search. This number is to be search if it is among the five input values. If it is found, display the message "Search number is found!", otherwise display "Search number NOT found!". Program is also able to accept name and section. Sample Input/Output: Student Name: Juan Dela Cruz Section: CE3-1 Enter five numbers: 10 20 15 7 8 Enter a number to search: 7 Results(s): Juan Dela Cruz, CE3-1 Entered number is 7 Search number is found!
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Arrays
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr