CODE USING C++ 4. Do I Have a Real Fear? by CodeChum Admin Shux, I'm starting to get back up but I feel like I'm scared. Life seems too overwhelming.   Wait, what are you saying? Are you saying I don't have to worry about anything because my fear is non-existent in an array of fears?     Instructions: Create a program that asks the user for the size of the array of fears and then integer inputs which represents a certain fear. Store these integer inputs in the array of fears you created after getting the size. Then, ask the user for the value of x which represents the fear of the stranger we're helping. Finally, go through the array of fears and check if the fear of the stranger is not in the array of fears. If it is not in there, print "You have nothing to worry about". Otherwise, just be silent... Input 1. Size of the array of fears 2. Series of integer values representing the fears 3. Value of x representing the fear of the stranger Output Enter·the·size:·5 Enter·fear·#1:·-3 Enter·fear·#2:·4 Enter·fear·#3:·10 Enter·fear·#4:·1 Enter·fear·#5:·15 Enter·the·value·of·x:·9 You·have·nothing·to·worry·about

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

CODE USING C++

4. Do I Have a Real Fear?

by CodeChum Admin

Shux, I'm starting to get back up but I feel like I'm scared. Life seems too overwhelming.

 

Wait, what are you saying? Are you saying I don't have to worry about anything because my fear is non-existent in an array of fears?

 

 

Instructions:

  1. Create a program that asks the user for the size of the array of fears and then integer inputs which represents a certain fear. Store these integer inputs in the array of fears you created after getting the size.
  2. Then, ask the user for the value of x which represents the fear of the stranger we're helping.
  3. Finally, go through the array of fears and check if the fear of the stranger is not in the array of fears. If it is not in there, print "You have nothing to worry about". Otherwise, just be silent...

Input

1. Size of the array of fears

2. Series of integer values representing the fears

3. Value of x representing the fear of the stranger

Output

Enter·the·size:·5
Enter·fear·#1:·-3
Enter·fear·#2:·4
Enter·fear·#3:·10
Enter·fear·#4:·1
Enter·fear·#5:·15
Enter·the·value·of·x:·9
You·have·nothing·to·worry·about
Output
Enter the size: 5
Enter fear #1: -3
Enter fear #2: 4
Enter fear #3: 10
Enter fear #4: 1
Enter fear #5: 15
Enter the value of x: 9
You have nothing to worry about
Transcribed Image Text:Output Enter the size: 5 Enter fear #1: -3 Enter fear #2: 4 Enter fear #3: 10 Enter fear #4: 1 Enter fear #5: 15 Enter the value of x: 9 You have nothing to worry about
Expert Solution
steps

Step by step

Solved in 3 steps with 2 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