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
inn [45]
3 years ago
11

You're working on a TV that has a hard coded list of channels (use an enum for this list) and you're asked to create a mechanism

to switch channels. Start by creating an enum class that holds 4 to 5 channels. Each channel has a network name to identify it and a channel number as its value. In a class called Television, create a method called changeChannel() that takes an enum from the channel class as input. In the method, use switch to print out a randomo message for each channel depending on what input was provided?
Computers and Technology
1 answer:
ra1l [238]3 years ago
8 0
Jsjsjsoos I jdkkskso I iDisks I iiddikdk I ididkkd
You might be interested in
Which one of the following oscilloscope controls is used to move the trace up and down the screen vertically? A. Focus B. Sweep
Andre45 [30]
<span>the trace position is surprise surprise controlled by the position knob!</span>
4 0
4 years ago
What is a popular use for SLR film cameras? (choose one)
Artemon [7]
Answer is c i believe
3 0
3 years ago
[20 pts] Write the function rectangle(perimeter, area), which takes two positive integers, perimeter and area. It returns an int
MrRissso [65]

Hi, you haven't provided the programing language in which you need the code, I'll explain how to do it using Python, and you can follow the same logic to make a program in the programing language that you need.

Answer:

import math

def rectangle(perimeter, area):

   l1_1 = (perimeter+math.sqrt((perimeter**2)-(16*area)))/4

   l1_2 = (perimeter-math.sqrt((perimeter**2)-(16*area)))/4

   l2_1 = area/l1_1

   l2_2 = area/l1_2

   print(l1_1,l2_1)

   print(l1_2,l2_2)

   if l1_1.is_integer() and l2_1.is_integer() and l1_1>0 and l2_1>0:

       return(int(max(l1_1,l2_1)))

   elif l1_2.is_integer() and l2_2.is_integer() and l1_2>0 and l2_2>0:

       return(int(max(l1_2,l2_2)))

   else:

       return(None)

Explanation:

  • We import math to make basic operations
  • We define the rectangle function that receives perimeter and area
  • We calculate one of the sides (l1_1) of the rectangle using the quadratic equation to solve 2h^2 - ph + 2a = 0
  • We calculate the second root of the quadratic equation for the same side (l1_2)
  • We calculate the second side of the rectangle using the first root on w = a/h
  • We calculate the second side of the rectangle using the second root on w= a/h
  • We verify that each component of the first result (l1_1, l2_1) is an integer (using the build-in method .is_integer) and greater than 0, if True we return the maximum value between them (using the max function) as w
  • If the first pair of sides evaluate to False we check the second root of the equation and if they meet the specification we return the max value
  • if all the if statements evaluate to false we return None to indicate that not positive or integer sides were found

7 0
3 years ago
How bout these chose your fave for bnha
VARVARA [1.3K]
The third one is mine
6 0
3 years ago
Read 2 more answers
how does the accenture mynav green cloud advisor integrate sustainability when transitioning client data centers to the cloud?
AVprozaik [17]

The accenture mynav green cloud advisor integrates sustainability when transitioning client data centers to the cloud by estimating carbon emissions reduction and sustainability index improvement.

  • Cloud computing refers to the availability of computer system resources without the user directly managing them. In this case, the network of remote servers that are hosted on the internet helps in the storage and the management of the data.

  • Mynav Green Cloud Advisor is vital as it helps companies design cloud solutions that can be used in the reduction of carbon emissions.

In conclusion, accenture mynav green cloud advisor integrate sustainability as cloud solutions are vital to businesses.

Read related link on:

brainly.com/question/2662575

5 0
3 years ago
Other questions:
  • strategy that is used to help improve the chances that your site will be found by search engines is known as search engine
    12·1 answer
  • What error, if any, is in the following code?
    11·1 answer
  • Why was the movable type of the printing press such a breakthrough for publishing?
    15·2 answers
  • ________ is the abbreviation for the place in the computer where the programs and data the computer is currently using are store
    8·1 answer
  • What are the advantages and disadvantages of malware maintenance?
    12·1 answer
  • .<br> 1. Press the _______ key to move to the next cell in a row.
    14·2 answers
  • Why are you unable to modify the budget file, when you have the allow full control ntfs permission?
    5·1 answer
  • Now the y0utube home screen is gone
    13·2 answers
  • It refers to the story or events in which the film revolves.
    13·1 answer
  • What feature should you enable to prevent the sidhistory attribute from being used to falsely gain administrative privileges in
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!