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]
2 years 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]2 years 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
Clayton Road is 2.25 miles long. Wood Pike Road is 1.8 miles long. Kisha used a quick picture to find the combined length of Cla
tatuchka [14]
I may ask, where is Kisha’s work?
7 0
2 years ago
John spent $75 on a shopping trip for new clothes last week. He had expected to spend $100 on clothes. Complete the table.John's
aleksklad [387]
John’s calculations are not correct. He compared the exact value to the absolute error. The absolute error should be in the numerator and the exact value in the denominator.
5 0
2 years ago
Read 2 more answers
A coat was originally priced at $50. It went on sale for $35. What was the percent that the cost was discounted?
Reptile [31]

Answer: 30 % Off

Step-by-step explanation:

8 0
2 years ago
If the probability is 0.54 that Stock A will increase in value during the next month and the probability is 0.68 that Stock B wi
Aloiza [94]

P(A) =0.54

P(B)= 0.68

P'(A)= 1-0.54 = 0.46

P'(B)= 1- 0.68 = 0.32

The probability of neither of both event will occur:

= P'(A)×P'(B)

=0.46 × 0.32

=0.1472

3 0
2 years ago
Bob is having a party and want to order some cake. there will be 57 guest and he wants to make sure that everyone gets a slice o
Dafna1 [17]
To find out which cake is better for the price, we need to multiply the cake amounts by how many cakes of that kind we need. You need 5 20cm cakes, so we multiply 5 by the price of the 20cm cake (13.50) to get $67.50. You need 3 25cm cakes, so 3 x 18.75 = 56.25.

20cm cake: $67.50
25cm cake: $56.25

Answer: The 25cm cake is cheaper for more people.
4 0
2 years ago
Other questions:
  • Sara’s little brother is getting ready to color the picture of a rainbow that Sara drew for him. To make the task easier for her
    15·2 answers
  • The four vertices of an inscribed quadrilateral divide a circle in the ratio 1 : 2 : 5 : 4. The four angles of the quadrilateral
    8·2 answers
  • Explain how complex fractions can be used to solve problems involving ratios
    6·1 answer
  • A series contains 18 numbers and has a sum of 4,185. The last number of the series is 275. What is the first number?
    9·1 answer
  • Suppose that you want to mix two coffees in order to obtain 100 pounds of a blend. If x represents the number of pounds of coffe
    8·1 answer
  • 18.) The cost of textbooks for a school increases with the average class size. Identify the independent and dependent quantity i
    8·1 answer
  • What is the sum of the infinite geometric series? Sigma-Summation Underscript n = 1 Overscript 4 EndScripts (negative 144) (one-
    5·2 answers
  • Zoe spent $3200 for his new computer. The computer’s value will depreciate by 35% each year. How much will his computer be worth
    15·1 answer
  • Based on the given segment lengths, determine whether the segments can form a triangle.
    10·1 answer
  • What would be the denominator after rationalizing 7/(5√3 - 5√2)?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!