What is the result when you run the following program?

print(“2 + 7”)
print(3 + 1)

Answers

Answer 1

Answer:

line 1 = 2+7 (you added quote marks)

line 2 = 4 (you did not add quote marks, which adds both nums together)

Explanation:


Related Questions

I need to identify what this building is

Answers

Answer:

its American building name annismous building

Which of the following are examples of packages you can import and use classes from in java?

Choose all options that apply.


A. Main.main

B. java.util

C. java.double

D. java.int

E. edhesive.shapes

Answers

it’s D java. int i think

Introduction:

Java is a computer programming language. A computer programmer may use package in java which is a mechanism to encapsulate a group of classes and then import it to sub package interfaces.

Explanation:

These package help to prevent the issues of naming conflicts. The examples of packages which can import and use classes from in java are

Conclusion:

A. Main.main

B. Java.util

D. java.int

Learn more at https://brainly.com/question/17882992

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.

Answers

Answer:

Here is the C++ program:

#include <iostream>   //to use input output functions

using namespace std;   //to identify objects cin cout

int main() {   //start of main method

int red,green,blue,smallest;   //declare variables to store integer values of red,green, blue and to store the smallest value

cout<<"Enter value for red: ";  //prompts user to enter value for red

cin>>red;  //reads value for red from user

cout<<"Enter value for green: ";  //prompts user to enter value for green

cin>>green;  //reads value for green from user

cout<<"Enter value for blue: "; //prompts user to enter value for blue

cin>>blue;   //reads value for blue from user

//computes the smallest value

if(red<green && red<blue) //if red value is less than green and blue values

smallest=red;   //red is the smallest so assign value of red to smallest

else if(green<blue)   //if green value is less than blue value

smallest=green;   //green is the smallest so assign value of green to smallest

else  //this means blue is the smallest

smallest=blue;  //assign value of blue to smallest

//removes gray part by subtracting smallest from rgb

red=red-smallest;  //subtract smallest from red

green=green-smallest;  //subtract smallest from green

blue=blue-smallest;  //subtract smallest from blue

cout<<"red after removing gray part: "<<red<<endl;  //displays amount of red after removing gray

cout<<"green after removing gray part: "<<green<<endl;  //displays amount of green after removing gray

cout<<"blue after removing gray part: "<<blue<<endl;  } //displays amount of blue after removing gray

Explanation:

I will explain the program using an example.

Lets say user enter 130 as value for red, 50 for green and 130 for blue. Sp

red = 130

green = 50

blue = 130

First if condition if(red<green && red<blue)   checks if value of red is less than green and blue. Since red=130 so this condition evaluate to false and the program moves to the else if part else if(green<blue)  which checks if green is less than blue. This condition evaluates to true as green=50 and blue = 130 so green is less than blue. Hence the body of this else if executes which has the statement: smallest=green;  so the smallest it set to green value.

smallest = 50

Now the statement: red=red-smallest;  becomes:

red = 130 - 50

red = 80

the statement:  green=green-smallest;  becomes:

green = 50 - 50

green = 0

the statement: blue=blue-smallest; becomes:

blue = 130 - 50

blue = 80

So the output of the entire program is:

red after removing gray part: 80                                                                                                 green after removing gray part: 0                                                                                                blue after removing gray part: 80

The screenshot of the program along with its output is attached.

Describe in 2-4 sentences how you would select a function on a spreadsheet.

Answers

Answer:

Explanation:

You would call the capacity from the primary. At that point execute your own factors to it. When the capacity is in the cell, you can copy and after that paste it into another cell to do a similar capacity for that diverse scope of cells.

You would call the capacity from the primary. At that point execute your own factors to it. When the capacity is in the cell, you can copy and after that paste it into another cell to do a similar capacity for that diverse scope of cells.

What is spreadsheet?

A spreadsheet is a type of computer program used for organizing, calculating, analyzing, and storing data in tabular form. Spreadsheets were created as digital counterparts to traditional paper accounting spreadsheets.

The data entered into a table's cells is what the program uses to run. Each cell may include text, numeric data, or formula results that automatically calculate and display values based on the contents of neighboring cells.

Users of spreadsheets can change any stored value and watch the changes in calculated values. This enables quick investigation of numerous scenarios without the need for manual recalculation, making the spreadsheet helpful for "what-if" study.

Therefore, You would call the capacity from the primary. At that point execute your own factors to it. When the capacity is in the cell, you can copy and after that paste it into another cell to do a similar capacity for that diverse scope of cells.

To learn more about Spreadsheet, refer to the link:

https://brainly.com/question/8284022

#SPJ3

D
E
A
C
B
For this lab, you will find the area of an irregularly shaped room with the shape as shown above.
Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.
Remember the formula for finding the area of a rectangle is length width and the area of a right triangle is 0.5 * the base" heigh
Please note the final area should be in decimal format.
Sample Run
Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Sample Output
Room Area: 53.5

Answers

In python:

a = float(input("Enter side A: "))

b = float(input("Enter side B: "))

c = float(input("Enter side C: "))

d = float(input("Enter side D: "))

e = float(input("Enter side E: "))

print(f"Room Area: {(a * b) + ((a - c) * (d - (b + e))) + (0.5*(a - c) * e)}")

I hope this helps!

What are the two reasons we analyze algorithms?

Answers

Answer:

the most straightforward reason for analyzing an algorithm is too discover its characteristics in order to evaluate its suitability for various applications or compare it with other algorithms for the same application

Where do i go to find questions to answer
13 points if you can help me PLz

Answers

Answer:

if you are on a phone there should be a Answer tab at the bottom in the middle next to influence but if you are on a computer go to the Brainly home page and scroll down to the bottom (not all the way) and there should be some questions to answer

Which of the following is true of how computers represent numbers

A. Using a fixed but large number of bits can eliminate the possibility of round off error when repressing numbers in binary
B. With a fixed number of bits some numbers are too large to represent in a computer which will lead to overflow errors.
C. Using a fixed but larger number of bits, for example 128, eliminates the possibility of overflow errors.
D. With a large but fixed number of bits it is possible to eliminate either round-off errors or overflow errors, but not both.

Answers

Answer: C. Using a fixed but large number of bits, for example 128, eliminates the possibility of overflow errors.

Explanation:

Computer as an intelligent device can only be able to represent inputs through conversion to readable machine language before it becomes output. In order to do this, there is a need to convert those inputs into bits and bytes. The converted input is then brought out as a readable format on the computer screen.

What is the purpose of an IP address?
A identifying source and destination of data
B. creating images on websites
C. drawing tables on a spreadsheet
D. arranging packets of data correctly

Answers

pretty sure the answer is A!

Look both _____before you cross a street and i want to see how much of yall know it

Answers

Answer:

Ways

Explanation:

Look both ways

Which of the following is the primary benefit of becoming a member in the Dramatists Guild of America?


group health insurance

free legal advice

standard salary

networking opportunities

Answers

Answer:

networking opportunities

Explanation:

  The Dramatists Guild of America does offer playwrights legal advice and information on establishing royalties. However, the primary benefit of membership in the DG is networking opportunities. Playwriting is a limited field, and networking opportunities are essential for work.

Which term means a session-level protocol that is fast and efficient but has no means for error control or acknowledgment?

QoS

frame

TCP/IP

UDP

Answers

Answer:

UDP

Explanation:

User Datagram Protocol: a session-level protocol that is fast and efficient but has no means for error control or acknowledgment (UDP)

Also just took it on edj.

A session-level protocol that is fast and efficient but has no means for error control or acknowledgment is known as the term UDP.

What is UDP?

UDP is the acronym for User Datagram Protocol. It is defined as the protocol that is used for time sensitive applications but it's non-reliable because delivery of data to the destination cannot be guaranteed in UDP ( that is, has no means for acknowledgment)

Therefore, a session-level protocol that is fast and efficient but has no means for error control or acknowledgment is known as the term UDP.

Learn more about UDP here:

https://brainly.com/question/5660386

#SPJ2

Can a computer evaluate an expression to something between true and false? Can you write an expression to deal with a "maybe" answer?

Answers

Answer:

yes it can

Explanation:

Computers cannot evaluate an expression to be between true or false.

Expressions in computers are represented in boolean values; i.e. they can only take one of two values (either true or false, yes or no, 1 or 0, etc.)

Take for instance, the following expressions will be evaluated to true, because the expressions are true.

[tex]\mathbf{1 + 2 = 3}[/tex].[tex]\mathbf{5>4}[/tex].[tex]\mathbf{4 + 4 <10}[/tex]

The following expressions will be evaluated to false, because the expressions are false.

[tex]\mathbf{1 + 2 > 3}[/tex].[tex]\mathbf{5=4}[/tex].[tex]\mathbf{4 + 4 >10}[/tex]

The above highlights show that, a computer cannot evaluate expressions to another value other than true or false

Read more about computer expressions at:

https://brainly.com/question/17500565

Give me 2 examples of Monthly Cash Inflow: (2 points) *

Answers

Answer:

cash payments for goods and services; merchandise; wages; interest; taxes; supplies and others.

Explanation:

Answer:

1. Key cash flow drivers should be modeled explicitly.

In our example, a retail store business should start with the number of stores it plans to operate each month, then build up from there, based on the number of square feet and sales per square foot.  This will help the business to compute its revenue.

2. Inputs should only need to be input once.

It is important to group all inputs in the assumptions section so users can easily find, add, and modify them.

Explanation:

Helpppppp What is telnet?
internet protocol that allows one to access newsgroups
internet protocol that is the foundation for online data communication
internet protocol that connects to a computer remotely
internet protocol that loads a local file from a network onto a computer

Answers

C. internet protocol that connects to a computer remotely

During active listening, which response is NOT an example of providing feedback to the speaker to show that you understand his or her thoughts?
A.
nodding your head
B.
turning your back to the speaker
C.
saying, "You're saying that his reaction made you feel appreciated?"
D.
saying, "Sorry to interrupt, but can you explain that part again?"

Answers

Answer:

The answer is D.

Explanation:

They/you are asking the speaker to clarify what they just said.

Answer:

B. turning your back to the speaker

Explanation:

Translate the following code into hexidecimal and to octadecimal


....
110000100111000011001100111

Answers

Answer:

1

Explanation:

me want brainliest pwease

Which shape is used as a start or end?
a paralleogram
a rounded rectangle
a rectangle
a diamond

Answers

Answer:

rounded rectangle

Explanation:

I jus looked it up lol

A company hires Brandon, a software engineer. Brandon is asked to work on a project with others in order to meet a tight deadline. He finds himself in weekly meetings to discuss the direction and status of the project, but most of his time is spent creating code. What is Brandon's specialization?

system management
system support
system collaboration
system development

Answers

Answer:

System developement

Explanation:

he is creating code, which is devloping the system.

What is the shortcut key to launch the Macros dialog box?
A. Alt+F7
B. Alt+F8
C. Ctrl+F8
D. Ctrl+F7

Answers

Answer:

On excel, Ctrl + F8 is the shortcut for the Macros dialog box

Explanation:

Answer:

Alt +F8

Explanation:

edge 2022

does anyone know what type of Honda this is and the year of it lol this isn’t school related

Answers

my car guy boyfriend said that he thinks its a van due to the space and its definitely a newer Honda but not sure what year. he said don't quote him on it  tho lol

The collection of tools and features at the top of the screen is called the
O file
O ribbon
O tab

Answers

TAB THE ANSWER IS TAB

Even after charging your smartphone for several hours, it still appears completely turned off and will not tum on What should you try next to restore it
to health?
A.)submerge it in a bag of rice for 24 hours
B.)perform a hard reset
C.)perform a soft reset
D.)plug it into a charger for another hour

Answers

B. Perform a hard reset. Hold home and power I think.

Answer:

C: perform a soft reset

Explanation:

Just took the test, got 100.

In one to two sentences, describe how to create a new tab.

Answers

Answer:

First you could move your cursor to the right and click on the button that looks like this +    

Or you can press ctrl+T and make a new tab

Explanation:

Hope this help you!

You have a friend that says she is interested in going into web development. She is very knowledgeable in terms of technology and digital media, but she is not sure if she has the personality and character traits that would help her succeed in the job. She knows that you are educated in this area, so she has come to you for help. What questions would you ask her to determine whether or not she has the necessary traits to be a good candidate for a career in web development? Keep in mind at least three important traits that a web developer should have.

Answers

Answer:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

Explanation:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

She should think before saying anything as one of his fans may complaint about her content to the police if she makes a joke about shooting up a place.

She has to be careful with his words as this may lead to termination from the job.

Is she a patient person? The customer might nitpick little things and make her change them or make her redo the entire website completely multiple times. If she's not patient it'll be difficult for her to handle customers like that.

Is she really good at listening to others? She'll need to be good at following instructions and listening to what people want to creat what they want easier.

Is she detail oriented? If she is not then it's likely she won't mind if her work is kind of sloppy but the customer is highly likely to complain, resulting in punishment from her employer.

hope this helps!

i need help with this fast, thank you sm if you help me. ill give you brainliest

Answers

Answer:

Red

Explanation:

Magsulat ng ilang mga paalala sa paggawa ng proyektong Series Circuit
1._______________________________________________

2.______________________________________________

3.______________________________________________

4.______________________________________________

5.______________________________________________

PLEASE HELP ME​

Answers

Answer:

mag ingat,dapat d basa ang kamay,ayusin ang posive at negative na hindi maghalo,kong may electric tape mas safe..

Explanation:

yun yung tips ko kasi nakagawa na kami non ay yop 1 yung samin

Plz plz plz help QUICKLY idk the answer and I really need help

Answers

Answer:

productivity is the correct answer

D
E
A
C
B
For this lab, you will find the area of an irregularly shaped room with the shape as shown above.
Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.
Remember the formula for finding the area of a rectangle is length width and the area of a right triangle is 0.5 * the base" heigh
Please note the final area should be in decimal format.
Sample Run
Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Sample Output
Room Area: 53.5

Answers

In python:

a = float(input("Enter side A: "))

b = float(input("Enter side B: "))

c = float(input("Enter side C: "))

d = float(input("Enter side D: "))

e = float(input("Enter side E: "))

print(f"Room Area: {(a * b) + ((a - c) * (d - (b + e))) + (0.5*(a - c) * e)}")

I hope this helps!

What era did the television occurred in

Answers

Answer:

roughly from the late 1940s through the late 1950s.

Explanation: hope this helps :)

Answer:

The first Golden Age of Television is the era of live television production in the United States, roughly from the late 1940s through the late 1950s.

Explanation:

Other Questions
HELPPPPPJermaine runs exactly 2 laps around a 400 meter track.Find displacement. g Benton Industries manufactures carpets and draperies in the Atlanta area. Employee absenteeism was becoming a problem, so HR conducted a study involving a random sample of employees. The number of absences during the past year was tabulated by marital status. What is the probability that an employee is not married and has between 1 and 5 absences in the past year Find the scale of the 3 copies yesterday my mom is it a subject ore a predicate An escaped convict runs 1.70 km due East of the prison. He then runs due North to a friend's house. If the magnitude of the convict's total displacement vector is 2.50 km, what is the direction of his total displacement vector with respect to due East? What is the slope of the line 4x 2y = 5?O-4O-20 20 4 which expression is not equivalent A sign company charges $28 per yard for each custom-made banner. Ms.Gill orders two banners that are each 1 7/8 yards long, and one banner that is 2 5/8 yards long. What will Ms.Gill pay for all three banners? 3 types of no correlation scatterplots Hi, i really need help!Look at the images below:(there is 2 images per question) Gabriela can swim 100 meters in 20 minutes. What is Gabriela's unit rate? PLS I NEED THIS ASAP How do traffickers use social media to lure people? Check all that apply. 1) by posting fraudulent job advertisements 2) by monitoring those they are exploiting 3) by using sextortion 4) by finding young and vulnerable people PLZ HELPPPWhat number is 70% of 60? How is a scientific theory different from everyday theories proposed by random individuals? A. Everyday theories can be proven beyond doubt. B. Everyday theories are based on facts, not opinions. C. Scientific theories must be supported by evidence or data. D. Scientific theories are not different from everyday theories. What city doesAlexanderHamilton end upin after his roughupbringing? Alice and her two sisters, Betty and Carol, are avid tennis players. Betty is the best of the three sisters, and Carol plays at the same level as Alice. Alice defeats Carol 50% of the time but only defeats Betty 40% of the time. Alices mother offers to give her $100 if she can win two consecutive games when playing three alternating games against her two sisters. Since the games will alternate, Alice has two possibilities for the sequence of opponents. One possibility is to play the first game against Betty, followed by a game with Carol, and then another game with Betty. We will refer to this sequence as BCB. The other possible sequence is CBC.Calculate the probability of Alice getting the $100 reward if she chooses the sequence CBC. What can you infer about Sally from this sentence? Sally jumped up, her eyes wide, she gaspedloudly.Sally is happyO Sally was asleepO Sally is delightedSally is surprised What can you conclude about a firm in the short run from its marginal product numbers as its output approaches capacity production Uva vez. Cuando esto sucede y se tiene un nmero interminable o infinite de cifras en la parte decimal del numero, a este se le conoce como numerodecimal peridico; es decir, son nmeros decimales que corresponden a las traccionesque no son equivalentes a una fraccin decimalpreguntas y desousLata de explicarle toque entendiste.s para obte-Ejemplo: El nmero decimal 01, donde la Unea sobre la cifra indica que el nmero serepite En la conversionResiduo-010-010 5 - 01m, et simbolo significa "apro-ximadamente iguala", pues 01,010 on son aproximaciones de3e residuo?4. Escriban las fracciones como nmero decimal y determinen si se trata de un nme-ro decimal finito o peridico...= 0.2.12 = 1.75sel divi-0.0>132 a) Las fracciones cuya expresin en nmero decimal es peridica tienen unafraccin decimal equivalente? Justifiquen su respuesta. S.dureradorb) Expliquen cundo una fraccin se puede representar como nmero decimal fini-to y cundo como nmero decimal infinito peridico y viceversa.lenominadoresbo?SANTANAExpresas fracciones no decimales mediante aproximaciones con numerosdecimales finitos y mediante nmeros decimales periodicos.