With that said, I'd like you to make a program that would print out Male or Female depending on the letter we input. If it is the letter m, regardless if it is capital or not, the printed message should be "Male". Ôn the other hand, if it is the letter f, also regardless if it is capital or not, the printed message should be "Female".

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
icon
Related questions
Question
Please help me find the right code in C++. Thank you!
6. Male or Female?
by CodeChum Admin
Good day! I am the proud owner of a mall that will soon be
built in a town nearby. We plan on adding numerous well-
known stores and restaurants to attract potential customers.
However, we're going to need a lot of restrooms to properly
accommodate all of our lovely customers.
With that said, I'd like you to make a program that would print
out Male or Female depending on the letter we input. If it is
the letter m, regardless if it is capital or not, the printed
message should be "Male". On the other hand, if it is the
letter f, also regardless if it is capital or not, the printed
message should be "Female".
Input
1. The inputted letter
Output
The first line will contain a message prompt to input the letter.
The second line will contain the word "Male" if the letter is 'm'
or 'M' or "Female" if the letter is f' or 'F.
Enter the letter: m
Male
Transcribed Image Text:6. Male or Female? by CodeChum Admin Good day! I am the proud owner of a mall that will soon be built in a town nearby. We plan on adding numerous well- known stores and restaurants to attract potential customers. However, we're going to need a lot of restrooms to properly accommodate all of our lovely customers. With that said, I'd like you to make a program that would print out Male or Female depending on the letter we input. If it is the letter m, regardless if it is capital or not, the printed message should be "Male". On the other hand, if it is the letter f, also regardless if it is capital or not, the printed message should be "Female". Input 1. The inputted letter Output The first line will contain a message prompt to input the letter. The second line will contain the word "Male" if the letter is 'm' or 'M' or "Female" if the letter is f' or 'F. Enter the letter: m Male
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,