1answer.
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
s344n2d4d5 [400]
3 years ago
8

Describe a function that would take in any RGB value and double its intensity. What do you think happens if the input is 200, 22

0, 209?
Computers and Technology
1 answer:
Paladinen [302]3 years ago
6 0

Answer:

400, 440, 418

Explanation:

Lets say it takes in 3 separate inputs. It would return the int of the input * 2, so if you passed in 200, 220, and 209 as separate inputs it would return 400, 440, and 418

You might be interested in
Write a recursive method that tests whether a string is a palindrome. It should return a boolean T or F depending on whether or
Sveta_85 [38]

Answer:

// program in java.

// library

import java.util.*;

// class definition

class Main

{

// recursive function to check palindrome

   public static boolean isPalin(String str){

// base case

     if(str.length() == 0 ||str.length()==1){

        return true;

     }

// if first character is equal to last

     if(str.charAt(0) == str.charAt(str.length()-1))

     {

     // recursive call

        return isPalin(str.substring(1, str.length()-1));

     }

     // return

     return false;

  }

  // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // object to read input

Scanner scr=new Scanner(System.in);

System.out.print("Enter a string:");

 // read string from user

String myString =scr.nextLine();

 // call function to check palindrome

     if (isPalin(myString)){

        System.out.println("Given String is a palindrome");

     }

// if string is not palindrome

     else{

        System.out.println("Given String is not a palindrome");

     }    

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read a string from user and assign it to variable "myString" with scanner object. Call the method isPalindrome() with string input parameter.In this method, if  length of string is 0 or 1 then it will return true(base case) otherwise it will call itself and compare first character with last character.If string is palindrome then function will return true else return false.

Output:

Enter a string:ababa                                                                                                      

Given String is a palindrome

8 0
4 years ago
What are paragraphs separated by
Lemur [1.5K]

Paragraphs are usually separated by blank space.

Hope this is what you were looking for :)

6 0
3 years ago
How do you create code on scratch?
lina2011 [118]
On scratch they feature a drag and drop form of coding to visualize it. You can create an account and drag and drop puzzle ties in the order. The first tile you’ll want to drag into the area is the “start program” tile and then you’ll need to connect tiles from there.

Hope this helped!
3 0
3 years ago
Read 2 more answers
Because health and safety are important in all workplaces, not just hazardous ones, what working conditions must ALL employers p
antiseptic1488 [7]
A since fire extinguishers are legally enforced 
5 0
4 years ago
Read 2 more answers
Which programming language should I learn in order to build basic websites? I'd like to learn how to make my own websites, just
s344n2d4d5 [400]
You can study a program like graphic design

4 0
3 years ago
Other questions:
  • Which of these printers would be the most suitable for printing a large number of high quality black and white printouts?
    15·1 answer
  • What is the subjects under artificial intelligence ?​
    15·1 answer
  • You support Richman Investments, a brokerage firm that employs 20 brokers. Each broker has his own client computer, and the firm
    15·1 answer
  • Where can I easily find an easy app or program to use for making/editing videos?
    13·1 answer
  • Microsoft word 2016
    14·1 answer
  • What variation of a dictionary attack involves a dictionary attack combined with a brute force attack, and will slightly alter d
    5·1 answer
  • You don't have policies that force settings for the look of users' computer desktops. Each user's chosen desktop settings are ap
    15·2 answers
  • Which line in the following program will cause a compiler error?
    9·1 answer
  • What is a feature of audio editing software
    11·1 answer
  • Can you plz type down a word.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!