answer.
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]
2 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]2 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
At summer camp the ratio of boys to girls was 7:2 If there were 21 boys how many girls were there?
Alenkinab [10]
Ratio:\\7:2\\\\
7x-number\ of\ boys\\2x-number\ of\ boys\\\\
7x=21\ \ \ |:7\\
x=3\\\\
2x=2*3=6\\
Number\ of\ girls\ is\ equal\ to\ 6.
3 0
2 years ago
Calculate the standard deviation. Variance = 107.76. Mean = 34.2
Llana [10]

Answer:

The standard deviation is 10.38

Step-by-step explanation:

Given;

Variance, v = 107.76

mean, x = 34.2

The standard deviation is given by;

standard deviation = √variance

standard deviation = √107.76

standard deviation =  10.381

standard deviation = 10.38 (two decimal places)

Therefore, the standard deviation is 10.38

8 0
2 years ago
A manufacturer of banana chips would like to know whether its bag filling machine works correctly at the 449 gram setting. It is
stealth61 [152]

Answer:

We accetp  H₀

Step-by-step explanation:

Information:

Normal distribution  

Population mean      =   μ₀  = 449

Population standard deviation  σ   unknown

Sample size   n  =  23        n < 30    we use t-student test

so   n  =  23    degree of fredom   df = n  - 1  df  = 23- 1   df = 22

Sample mean    μ =  448

Sample standard deviation   s  =  20

Significance level  α  =  0,05  

1.-Hypothesis Test

Null hypothesis                               H₀     μ₀  =  449

Alternative hypothesis                    Hₐ     μ₀  ≠  449

Problem statement ask for determine decision rule for rejecting the null hypothesis. For rejecting the null hypothesis we have to  get an statistic parameter wich implies  that μ is bigger or smaller than μ₀

2.-Significance level   α  =  0,05  ;  as we have a two tail test

α/2    =  0,025

Then from t - student table for  df =  22   and 0,025 (two tail-test)

t(c)  =  ±  2.074

3.- Compute  t(s)

t(s)   =  (  μ  -  μ₀ )  /  s /√n

plugging in values

t(s)   =  (448  -  449) /  20 /√23    ⇒   t(s)   =  -  1*√23 /20

t(s)   =  - 0.2398

4.-Compare t(c)   and  t(s)

t(s)  <  t(c)         - 0.2398  <  - 2.074

Therefore  t(s)  in inside acceptance region.  We accept  H₀

7 0
2 years ago
Prove the diagonals of the square with vertices P(0, 4), Q(4, 4), R(0, 0), and S(4, 0) are perpendicular bisectors of each other
const2013 [10]

Answer:

The slope of diagonal PS is -1.

The slope of diagonal QR is 1.

The midpoint of PS is (2, 2).

The midpoint of QR is (2, 2).

Perpendicular and share the same midpoint.

6 0
1 year ago
Read 2 more answers
If a conditional statement is “If the sun shines, people will be in good moods”, what is the statement “If the sun does not shin
77julia77 [94]

Answer:

C. Inverse

Step-by-step explanation:

The second statement is the inverse, because in an inverse, the hypothesis and the conclusion are both negated. In this case, the sun doesnt shine and the people wont be in a good mood, as opposed to the sun will shine, and the people will  be in a good mood.

7 0
1 year ago
Other questions:
  • Estimate the unit rate if 12 pairs of socks sell for $5.79.
    15·1 answer
  • The ideal width of a certain conveyor belt for a manufacturing plant is 50 in. Conveyor belts can vary from the ideal width by a
    6·1 answer
  • The sine of the complimentary angle to 75° a. 0.65 c. 0.34 b. 0.57 d. 0.26
    10·2 answers
  • Alana is writing a coordinate proof to show that the diagonals of a rectangle are congruent. She starts by assigning coordinates
    13·2 answers
  • Camille's Seed Haven claims that 90% of its sunflower seeds will germinate. Suppose the company's claim is true. Seth buys a pac
    10·1 answer
  • If running a radio ad 8 times daily for a week generated 2,100 ticket sales, how many ticket sales would you expect if you ran t
    15·1 answer
  • A box can hold a maximum of 8 cans. You have 50 cans to put in boxes. What is the smallest number of boxes you need to store all
    5·1 answer
  • Jana is ordering a list of numbers from least to greatest. StartRoot 7 squared EndRoot, StartRoot 7 EndRoot, Four-fifths, StartR
    6·2 answers
  • The function below represents the interest Kristina earns on an investment. Identify the term that represents the amount of mone
    7·1 answer
  • Is 1/4a rational number​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!