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
The path of a football kicked by a field goal kicker can be modeled by the equation y = –0.03x2 + 1.53x, where x is the horizont
netineya [11]
This is the equation of an upside down parabola, so the maximum height will be at the vertex. To find the vertex, we'll use the formula for the x-coordinate and then solve for the y-coordinate.
x=\frac{-1.53}{2*-.03}=25.5

Plugging this into the given formula:
y=-0.03(25.5)^2+1.53(25.5)=19.5075
Since it asks us to round, the maximum height would be 20 yards. To find how far the football travels in total, we need to set the equation equal to 0 and find the roots:
0=-0.03x^2+1.53x=x(-0.03x+1.53)

Then by the zero product property (or the no zero divisors rule), we have:
x=0 (this is the x value where the ball is kicked from)
-0.03x+1.53=0
-0.03x=-1.53
x=51

So the ball travels 51 yards in total.
4 0
2 years ago
Read 2 more answers
Sal's Sandwich Shop sells wraps and sandwiches as part of its lunch specials. The profit on every sandwich is $2 and the profit
kifflom [539]
This is a very long question. I'm not going to write all of it out but I will give you a starting point. Find your x by making y in the formula equal to 0.

2x + 3y = 1470

2x + 3(0) = 1470

2x = 1470

x = 735

Your furthest point on the x axis is (735,0).

Do the same for y.

2x + 3y = 1470.

2(0) + 3y = 1470

3y= 1470

y= 490

Your highest point is (0,490).

Now that both are plotted, draw a straight line connecting the two points. There's your graph.

Check
8 0
2 years ago
You just discovered that you have 100 feet of fencing and you have decided to make a rectangular garden. Assume the lengths of t
Tju [1.3M]

Answer:

10*10=100

50*2=100

5*20-100

Step-by-step explanation:


3 0
2 years ago
PLEASE HELP ASAP, CORRECT ANSWER GETS BRAINLIEST
Fynjy0 [20]
Car value at the time of purchase $15, 250 (2012)
Rate of depreciation 7.5%
1) y = 15250 ( 1- 0.075)^x
y = 15250 (0.925)^x (x tis the number of years that passed since purchase)

2)  y = 15250 * ( 0.925)^8 = 8173.42
4 0
2 years ago
Read 2 more answers
You are facing North. Turn 90 degrees left. Turn 180 degrees right. Turn around to reverse your direction. Turn 45 degrees left.
andriy [413]
North
You are facing north. 90 degrees left is west. 180 degrees is now east. Reversing your direction is the same as 180 so your now back to facing west. Turn 45 left you’re now facing south. Reverse again and you’re facing north.
5 0
2 years ago
Read 2 more answers
Other questions:
  • What is the length of the rectangular prism if it has a width of 13 meters, a height of 17 meters, and a volume of 2,873 cubic m
    12·2 answers
  • To convert degrees Fahrenheit (F) into degrees Celsius (C) use the formula 2003-05-04-00-00_files/i0150000.jpg. Rewrite the equa
    6·1 answer
  • Which sequence of transformations confirms congruence by mapping shape I onto shape II?
    7·2 answers
  • Mr. Young has a piece of rope. He uses 1/4 of it to tie some boxes together. He then uses 5/9 of the remainder to make a jump ro
    5·1 answer
  • A sweater was on sale at 40% off the regular price. Ella saved 20$ by buying the sweater on sale. What was the regular price of
    9·1 answer
  • Suppose a company did $3,000,000 in annual maintenance in 2013 and expects 85% of those to renew for 2014. Suppose that product
    7·1 answer
  • A rectangular box is to have a square base and a volume of 40 ft3. If the material for the base costs $0.36/ft2, the material fo
    15·1 answer
  • A circle fits inside a semicirlce with a diameter of 24mm calculate the shaded area
    13·1 answer
  • Jeremiah works as a salesperson at an electronics store and sells phones and phone accessories. Jeremiah earns a $10 commission
    5·1 answer
  • Patel squeezed oranges so that his family could have fresh-squeezed juice for breakfast. He squeezed StartFraction 4 over 17 End
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!