Write code in c to output male if gender contains upper case

Assignment Help Electrical Engineering
Reference no: EM13269417

Given a char variable called gender, write C++ statements to output "Male" if gender contains upper or lower case M, "Female" if it contains upper or lower case F, or "Invalid Gender" if it contains anything else. Use if / else if statements.

Reference no: EM13269417

Questions Cloud

Design an elevator controller for simple two-floor elevator : Design an elevator controller for a simple two-floor elevator. On the 1st floor, there is only an up button, and on the 2nd floor, there is only a down button. Within the elevator, there are two buttons: door open and door close.
What was the most recent dividend per share paid : what was the most recent dividend per share paid on the stock? (Do not round intermediate calculations and round your answer to 2 decimal places. (e.g., 32.16)) Dividend paid per share $
Criticisms aimed at the advertising industry : Assess some of the criticisms aimed at the advertising industry. Determine whether or not advertisers create advertising copy in the best interests of society, giving a specific example.
Find out the empirical and molecular formulas : A compound containing only C, H, and O, was extracted from the bark of a sassafras tree. The combustion of 91.3 mg produced 248 mg of CO2 and 50.8 mg of H20. The molar mass of the compound was 162 g/mol. Determine its empirical and molecular formu..
Write code in c to output male if gender contains upper case : Given a char variable called gender, write C++ statements to output "Male" if gender contains upper or lower case M, "Female" if it contains upper or lower case F, or "Invalid Gender" if it contains anything else. Use if / else if statements.
How do people use language to style themselves : How do people use language to style themselves - to take on a particular persona or juggle between personae in interaction with others?
What is the gauge pressure on the bottom of the tube : A test tube standing vertically in a test tube rack contains 2.2 cm of oil, What is the gauge pressure on the bottom of the tube
Sensitive information about this organization confidential : Identify a health care organization with which you are familiar, and discuss working capital management and its revenue cycle as follows (be mindful to keep sensitive information about this organization confidential):
What is the required semi-annual payent : Immediately after the 4th payment at the end of the second year, interest rates have risen to 8% annually. You can earn that rate on funds already accumulated and the 16 future payents.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd