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

  Find resistance and inductance per unit length for the line

A distortionless transmission line operating at 125 MHz has characteristic impedance = 40-ohm, attenuation constant = 0.02 Np/m and phase constant = 0.75 rad/m. Find the resistance and inductance per unit length for the line.

  Determine velocity and acceleration of a with respect to b

At the instant shown, car A has a speed of 20km/h, which isbeing increased at a rate of 300km/h2 as the car entersan expressway. At the same instant, car B is decelerating at250 km/h2 while traveling forward at 100 km/h.

  What is the torque developed in the armature

A dc motor takes an armature current of 105 A at 480 V when running at 720 rpm . The resistance of the armature circuits is 0.2 Ω and the field resistance is 96 Ω what is the torque developed in the armature

  What is the input resistance of the resulting current divide

A designer searches for a simple circuit to provide one-third of a signal current I to a load resistance R. Suggest a solution using one resistor. What must its value be. What is the input resistance of the resulting current divide

  How does the relate to the clock frequency division

What is the modulus of this counter. How does this relate to the clock frequency division that this counter can provide. At what number does this counter reset to start the sequence over again.

  Calculate the resistor- inductor value and capacitor value

Basic boost converter that takes in 600VDC and boost the voltage to 900VDC with an output power of 8KW and a switch with a frequency of 250KHZ. One inductor one switch one capacitor and one resistor.

  What does the inductor current waveform look like

Assume a buck converter contains a synchronous rectifier. Does it operate in the discontinous conduction mode at light load Why What does the inductor current waveform look like

  Find the ball withdrawn from box 2 was red

Box 1 contains 5 red, 6 white, and 9 blue balls. Box 2 contains 7 red, 8 white, and 4 blue balls. A ball is withdrawn at random from Box 1 and placed in Box 2. Then, a ball is taken at random from Box 2.

  How would the current-speed and efficiency change

A permanent magnet dc motor is delivering zero torque when it runs at 1800 rev/min and has 50 V dc applied to its terminals. The armature resistance is 2.0 ohm. What current will the motor need in order to deliver a torque of 2.0 Nm

  Find what is the power delivered to the resistor

a)What is the voltage across a 220? resistor if the current through it is 5.6 mA b)What is the current through a 6.8? resistor if the voltage drop across it is 24 V c) What is the power delivered by a 6 V battery if the current drain is 750mA

  Calculate the ripple voltage and specify a zener diode

Consider the full wave rectifier circuit as shown below, where R=1k-ohm, C= 100 F. If the input voltage Vin = 24 V(peak to peak), Frequency=1k Hz, transformer turns ratio is 1.

  Determine the voltage van at the low-voltage bus

3-singlephase 2 winding transformers, each rated 500 MVA, 13.8/199.2 kV, with leakage reactance Xeq = 0.10 per unit, are connected to form a three-phase bank. Winding resistances and exciting current are neglected.

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