Computers and Technology, 16.10.2020 04:01 taniyasmith
Java
Summary: Given integer values for red, green, and blue, subtract the gray from each value.
Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).
Given values for red, green, and blue, remove the gray part.
Ex: If the input is:
130 50 130
the output is:
80 0 80
Find the smallest value, and then subtract it from all three values, thus removing the gray
1 import java. util. Scanner;
2
3 public class LabProgram
4 public static void main(String[] args) {
5 /* Type your code here. */
6
7
8
Answers: 2
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
Computers and Technology, 26.06.2019 04:00
Semester a exam digital photography connection students 1-50 1c 2d 3a 4b 5c 6c 7b 8c 9b 10b 11b 12b 13a 14a 15b 16a 17a 18d 19a 20c 21b 22b 23d 24b 25a 26a 27b 28b 29b 30b 31b 32b 33a 34a 35a 36b 37a 38a 39c 40a 41c 42a 43b 44b 45b 46a 47d 48a 49d 50a
Answers: 1
Java
Summary: Given integer values for red, green, and blue, subtract the gray from each value.
History, 29.01.2020 15:47
Mathematics, 29.01.2020 15:47
Geography, 29.01.2020 15:47
Social Studies, 29.01.2020 15:47
Mathematics, 29.01.2020 15:47
English, 29.01.2020 15:47
Mathematics, 29.01.2020 15:47