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

  How long in seconds would it take to discharge the capacitor

A 2 farad capacitor is charged up to 400v by a dc power supply. How long in seconds would it take to discharge the capacitor to a safe stored energy level of 1 joule using a 1k ohm high wattage resistor bank.

  What is the frequency resolution-df for the analysis

An engineer decides to take 600 samples at sampling frequency 9000Hz. A Fast Fourier Transform (fft) program was applied to obtain the frequency spectrum of the signal. What is the frequency resolution,df, for the analysis

  Find what is the themal efficiency of the engine

If the work output is 10kW, find the required heat transfer rate from the high to the low temperature source, and the required heat transfer rate to the low temperature source. What is the themal efficiency of the engine

  How to perform an economic analysis

For a new product sales are expected to be 2,000 products in year 1, increasing by 1,000 products each subsequent year to 5,000 products in year 4. Two different manufacturing equipment options are available a) Up front equipment purchase cost of $..

  Find the per unit length inductance of the transmission line

A lossless transmission line is embedded in a medium having a dielectric constant of 9. The per-unit length capacitance of the line is given as 100 pF/m. a.Find the wave velocity in the medium.

  What is the frequency of the voltage in hertz

A sinusoidal voltage has maximum amplitude of 90 V. The voltage passes through one complete cycle in 64 ms. What is the frequency of the voltage in hertz

  What aspects of the software need to be considered

If designing a computer configuration for use as a workstation for one specific application, what aspects of the software need to be considered as part of the design process?

  Find the starting torque of the motor

A 460-V, four-pole, 75-hp, 60-Hz, Y connected, three phase induction motor develops its full load induced torque at 1.2 percent slip when operating at 60 Hz and 460 V. The per phase circuit model impedances of the motor are

  Find what is the approximate center frequency of the filter

An SSB generator has a 9 MHz carrier and is used to pass voice frequencies in the 300- to 3300-Hz range. The lower sideband is selected. What is the approximate center frequency of the filter needed to pass the lower sideband

  What is the total bit rate for the tdm link

A TDM link has 20 signal channels and each channel is sampled 8000 times/sec. Each sample is represented by seven binary bits and contains an additional bit for synchronization. what is The total bit rate for the TDM link.

  Determine the bandgap energy of the semiconductor

A particular intrinsic semiconductor has a resistivity of 50 -cm at T=300 K and 5 - cm at T=330 K. Neglecting the change in mobility and effective density of states with temperature, determine the bandgap energy of the semiconductor.

  Determine what is the magnitude of the output voltage

A circuit has an 9 ohm resistor in series with a 0.30 mF capacitor. The input voltage is vIN(t) = 14 cos (400t - 30o) V. The output voltage is measured across the resistor. what is the magnitude of the output voltage

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