Take input from user: age, weight, dress color, shoe size, is Male, first character of name and last character of name. Make a program that will process all of above inputs and inform user that he/she can enter in hall or not? For all males: Dress color = white, royal blur, brown, gray Shoe size = 6 – 10 Age = 18 – 25 First character of name MUST be a vowel Last character of name should NOT contain alphabets N, M, A and B For all females: Dress color = white, pink, green, sea-­‐green Shoe size = 6 – 9 Age = 18 – 22 First character of name MUST be a vowel OR alphabets A, U, P, S, T, F, I and M Last character of name should NOT contain alphabets any of the vowels For both: Weight = 40 – 60

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section: Chapter Questions
Problem 8PP: (Modify) a. Modify the program you wrote for Exercise 7 to provide the mass of a person as an...
icon
Related questions
icon
Concept explainers
Question

Take input from user: age, weight, dress color, shoe size, is Male, first character of name and last character of name. Make a program that will process all of above inputs and inform user that he/she can enter in hall or not?

For all males:

  • Dress color = white, royal blur, brown, gray
  • Shoe size = 6 – 10
  • Age = 18 – 25
  • First character of name MUST be a vowel
  • Last character of name should NOT contain alphabets N, M, A and B

For all females:

  • Dress color = white, pink, green, sea-­‐green
  • Shoe size = 6 – 9
  • Age = 18 – 22
  • First character of name MUST be a vowel OR alphabets A, U, P, S, T, F, I and M
  • Last character of name should NOT contain alphabets any of the vowels

For both:

  • Weight = 40 – 60

 

Else, anything that is not as per above set of rules cannot enter OR invalid entry

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Operators
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr