Write a program that asks the user for the number of males and the number of females
Question:
Write a program that asks the user for the number of males and the number of females registered in a class. The program should display the percentage of males and females in the class.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 54% (11 reviews)
First we need to create a program that asks the user for input In this case we need the user t...View the full answer
Answered By
Tamondong Riza
Professionally, I am a teacher with years of experience tutoring math and science, as well as teaching in both public schools and independent schools. I feel that education should be an enlightening experience for all children, and I'm committed to helping my students learn new skills and make progress in their subjects.
0.00
0 Reviews
10+ Question Solved
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted:
Students also viewed these Computer science questions
-
Write a program that asks the user for a positive integer no greater than 15. The program should then display a square on the screen using the character X. The number entered by the user will be the...
-
Write a program that asks the user for a positive nonzero integer value. The program should use a loop to get the sum of all the integers from 1 up to the number entered. For example, if the user...
-
Write a program that asks the user for a path to a directory, then updates the names of all the files in the directory that contain the word draft to instead say final EX: "term paper (draft).txt"...
-
Prove that if a planetary orbit is circular of radius R, then vT = 2R, where v is the planets speed (constant by Exercise 7) and T is the period. Then use Keplers Third Law to prove that Data From...
-
A cone with base radius r and vertex in contact with the surface of a sphere is constructed inside a sphere, as shown in the figure. The radius of the sphere is R = 9 in. (a) Create a polynomial...
-
Determine the x and y components of each of the forces shown. 24 kN 30 1.85 kN 20 35 1.40 kN
-
To prepare the statement of cash flows, accountants for Toil-Free Calling, Inc., have summarized 2008 activity in the Cash account as follows: Requirement Prepare the statement of cash flows of...
-
Compare the Acceleration and Containment strategies for supporting user computing, and provide a rationale for why a firm might choose one or the other.
-
Consider the following scenario analysis involving asset X and asset Y: Economic Condition Probability Return on X Return on Y Boom .1 30% 12% Accelerated Growth .2 20% 10% Normal Growth .4 15% 9%...
-
1) Read case study and assess the given informatio nin it. Identify at least three significant assertions, WCGWs and explain how these assertions might be at risk. Develop an audit strategy memo that...
-
How would the number 6.31 10 17 be represented in E notation?
-
An expression adds a byte variable and a short variable. Of what data type will the result be?
-
The number of parts produced per hour by a worker is given by n= 4 + 3t2 - t3where t is the number of hours on the job without a break. If the worker starts at 8 a.m., when will she be at maximum...
-
On January 1 of Year 1, Alpha Corporation issued $400,000 of 8% (cash payable semiannually on June 30 and December 31), three-year bonds to yield 10%. Required a. Compute the selling price of the...
-
A 08.30% annual coupon, 5-year bond has a yield to maturity of 03.50%. Assuming the par value is $1,000 and the YTM is expected not to change over the next year: a) what should the price of the...
-
JL Lumber has a debt-equity ratio of .47. The firm's required return on assets is 11.8 percent and its current cost of equity is 14.23 percent. What is the firm's pretax cost of debt? Ignore taxes.
-
2) How much will you have accumulated, if you annually invest $3000 into an IRA at 12% interest compounded bi-annually for: a. 10 year b. 20 years c. 50 years d. How long will it take to earn your...
-
What type of algorithm is the following code? 1-0 while i
-
Using the martingale approach in the single-period binomial model, find the optimal portfolio strategy for maximizing E[log(X(1)] and E[X|(1)= ], for < 1.
-
Use the following data to answer the next two (2) questions: Product 1 Product 2 Product 3 Direct Material Cost $25,000 $30,000 $35,000 Direct Labor Cost $30,000 $40,000 $50,000 Direct Labor Hours...
-
Explain the difference between a compiler and an interpreter.
-
Write a statement that displays the value of the second element in the float array ideas.
-
Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase: The number of shares that Joe purchased was 1,000. When Joe purchased the stock, he paid $32.87 per...
-
You need to either criticize or defend the philosopher's position. Do not do both. So, if you choose Kant, deductive argument that either criticizes or defends Kant's understanding of deontological...
-
What are the molecular determinants underlying hormone-receptor specificity and selectivity, and how do structural insights into hormone-receptor complexes inform the development of targeted...
-
The fixed budget for 20,000 units of production shows sales of $400,000; variable costs of $80,000; and fixed costs of $150,000. QS 21-3 (Static) Flexible budget income calculation LO P1 If the...
Study smarter with the SolutionInn App