1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sasho [114]
3 years ago
12

Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and onl

y if x is a upper-case letter.
Mathematics
1 answer:
Lorico [155]3 years ago
4 0

Answer:

bool b = isupper(x);

Step-by-step explanation:

I have written the expression for a char variable x.The isupper(x) will return true if the character x is upper case and false if the character x is lower case.

I have stored the returned value to a bool variable b .So the value of variable b will be true only when the x is in uppercase and false when b is lower case.

You might be interested in
-f+2+4f=8-3f−f+2+4f=8−3f
Anna11 [10]

Answer:

Step-by-step explanation:

Merge the Like variables/terms together

3f+2=10=8-3f

Get F on one side

6f+2=10=8

Sub 2

8 0
3 years ago
please answer asap! A couple plans to have 5 children. The gender of each child is equally likely. Design a simulation involving
dimulka [17.4K]

Step-by-step explanation:

The gender of a child which is either a boy or a girl is determined by the XX-chromosomes, or XY-chromosomes.

Since the couple plan to have 5 children, the chance of a child being a boy is equal to the chance of it being a girl - the chances are 50/50.

What we do to achieve our aim is to run a simulation that would add an X or Y to an X for all 5 children.

Doing this 125 times, we obtain the number of trials we desire.

For each trial, we get for each child, C:

C1: X + (X or Y)

C2: X + (X or Y)

C3: X + (X or Y)

C4: X + (X or Y)

C5: X + (X or Y)

Since the chance of having an X is equal to the chance of having a Y, they equal probability, which is 0.5 for each.

6 0
3 years ago
Suppose you mark n points on a circle, where n is a whole number greater than 1. The number of segments you can draw that connec
leonid [27]
The expression for the number of segments drawn out of the n number of points in the circle is,
                                n² / 2 - n / 2
Substituting directly to the expression the number of points, n, which is equal to 8,
                                8² / 2  - 8 / 2 = 28
Thus, there are 28 segments that can be drawn from the points. 
5 0
3 years ago
A grocery store sells a bag of 3 oranges for $2.79. How much would it cost for 4 oranges?
Kaylis [27]

Answer:

$3.72

Step-by-step explanation:

Divide $2.79 by 3

$0.93 is the price of one orange

$0.93 times 4 is $3.72

Hope this helps!

3 0
3 years ago
Read 2 more answers
You read 50 pages in an hour your sister reads 40 pages in an hour how many more pages did you read than your sister in 1/2 hour
Murljashka [212]
If it is 50 pages in an hour, half an hour would be 25 pages, and if it is 40 pages in an hour it would be 20 pages in half an hour, the answer is 5 pages more in half hour
4 0
3 years ago
Read 2 more answers
Other questions:
  • Help 11 minutes!!!!!!
    9·1 answer
  • Carlos is making cookies six batches of cookies each require 1/4 cup of sugar and 3/4 cup of butter how much sugar will be neede
    11·1 answer
  • Use the multiplier method to decrease £56 by 14%
    7·1 answer
  • What is the volume in terms of pi?
    15·1 answer
  • Solve for all possible values of x.<br> Vx+7-11=2<br> Ox= 6<br> O x = 20<br> Ox= 162<br> Ox = 169
    5·1 answer
  • GamesOnly is having a “30% Off Everything!” sale. They have a PS4 on sale for $182. What was the original price?
    12·1 answer
  • What is the length of QR
    10·2 answers
  • The Gonzalez family sold their home for $256,000. Their real estate agent earned 5.5% in commission of that sale. How much did t
    14·1 answer
  • Solve with subsitution <br> y-3x=2<br> y=-2x-8 <br> show ur work HURRY PLSS
    8·2 answers
  • Callie had $24.65 to spend on groceries. After buying 6 potatoes, she had $18.95 left. If each potato costs the same amount, wha
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!