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
kaheart [24]
1 year ago
7

Problem 1: Red, Green or Blue? One of the truly fascinating things about the world is that it’s infinite. What do we mean by thi

s? As an example, we could ask you how many shades of yellow there are, and you’d soon realize there are an infinite number of them. Because computers don’t have an infinite amount of storage space, they have to approximate the natural world. For colors, they most often use an additive color model comprised of (R)ed, (G)reen and (B)lue. They store these values either as a floating point number 0.0 – 1.0 (fully off to fully on), or an integer between 0 to 255. Your task is to:

Mathematics
1 answer:
anzhelika [568]1 year ago
6 0

Answer:

the complete question is found in the attachment

Step-by-step explanation:

pseudocode

1)start

2)Ask the user to enter value for red color in range 0-255 and store it in red_val

3)Ask the user to enter value for green color in range 0-255 and store it in green_val

4)Ask the user to enter value for blue color in range 0-255 and store it in blue_val

5) compute new range of red as red_val/255

6) compute new range of green as green_val/255

7) compute new range of blue as blue_val/255

8) display the new values for red, green and blue color

9)Stop

execution

if user input is

red:101

green:67

blue:33

computed values will be

red_val : 101/255 = 0.396

green_val : 67/255 = 0.263

blue_val : 33/255 = 0.129

You might be interested in
What's 3/4 times 7/9 in simplest form
Alexxandr [17]
3/4 times 7/9:

First, we must use the rule for multiplying fraction. The rule is: a/b times c/d = ac/ bd. Let's substitute our problem into that formation.
\frac{3 \times 7}{4 \times 9}

Second, we can now simplify. (3 times 7 = 21) and (4 times 9 = 36). 
\frac{21}{36}

Third, since our fraction is not in the simplest form, we can simplify it down by listing the factors of both the numerator and denominator and then finding the greatest common factor (GCF). 

Factors of 21: 1, 3, 7, 21
Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36

The GCF is 3, since only 1 and 3 were the common factors and since 3 is the greatest common factor. 

Fourth, now we can divide our numerator (21) and denominator (36) by our recently found GCF which was 3. 

21 \div 3 = 7 \\ 36 \div 3 = 12

Our new fraction in its simplest form is 7/12.

Answer in fraction form: \fbox {7/12}
Answer in decimal form: \fbox {0.5833}
7 0
2 years ago
Read 2 more answers
Find the solution to each of these recurrence relations and initial conditions. use an iterative approach such as that used in e
Kamila [148]
Ok he anawee is d I’m pretty sure
8 0
2 years ago
The power 3 Superscript negative 3 equals StartFraction 1 Over 27 EndFraction . Which expression is equivalent to 3 Superscript
SpyIntel [72]

Answer:

Option a: \frac{m^{5} }{162n} is the equivalent expression.

Explanation:

The expression is \frac{(3m^{-2} n)^{-3}}{6mn^{-2} } where m\neq 0, n\neq 0

Let us simplify the expression, to determine which expression is equivalent from the four options.

Multiplying the powers, we get,

\frac{3^{-3}m^{6} n^{-3}}{6mn^{-2} }

Cancelling the like terms, we have,

\frac{3^{-3}m^{5} n^{-1}}{6 }

This equation can also be written as,

\frac{m^{5}}{3^{3}6 n^{1} }

Multiplying the terms in denominator, we have,

\frac{m^{5} }{162n}

Thus, the expression which is equivalent to \frac{(3m^{-2} n)^{-3}}{6mn^{-2} } is \frac{m^{5} }{162n}

Hence, Option a is the correct answer.   23

Step-by-step explanation:

4 0
1 year ago
Read 2 more answers
Ava wants to figure out the average speed she is driving. She starts checking her car’s clock at mile marker 0. It takes her 4 m
Novosadov [1.4K]

Answer:

45 mph

Step-by-step explanation:

Find the unit rate (i. e., the speed):

6 mi        60 min

--------- * ------------- = (3/4)(60) mph = 45 mph

8 min       1 hr

6 0
2 years ago
Read 2 more answers
In? gambling, the chances of winning are often written in terms of odds rather than probabilities. The odds of winning is the ra
erma4kov [3.2K]

Answer:

A) The probability that the event will occur=\frac{1}{7}

B)The probability that the event will not occur = \frac{6}{7}

Step-by-step explanation:

We are given that The odds of event occurring are 1:6.

So, Number of successful events = 1

Number of unsuccessful events = 6

So, Total events = 6+1=7

a)the probability that the event will occur=\frac{\text{Favorable event}}{\text{Total event}}

The probability that the event will occur=\frac{1}{7}

b)The probability that the event will not occur =\frac{\text{Favorable event}}{\text{Total event}}

The probability that the event will not occur = \frac{6}{7}

5 0
1 year ago
Other questions:
  • Add 4 to n then divide by 5
    10·1 answer
  • An isosceles triangle has base 6 and height 11. find the maximum possible area of a rectangle that can be placed inside the tria
    5·1 answer
  • Which graph has the same end behavior as the graph of f(x) = –3x3 – x2 + 1?
    5·2 answers
  • How do I do this problem?
    9·2 answers
  • The coach of a local basketball team says that her team scored 32 points in the first game and 64 points in the second game. Wha
    8·2 answers
  • Which shows the best path to convert 100 liters to pints?
    11·2 answers
  • What is the equation of a line through the points (0, 9) and (3, 0)?
    12·2 answers
  • Mukat has five times as many book as usha.If mukat gave 16 books to usha,they each would have the same number.how many books did
    8·1 answer
  • If 25^x+1 = 125/5^x find the value of x
    12·1 answer
  • PQ=2x+1 and QR=5x-44; Find PR
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!