What is printed by the following program? var numApples = 10; var numOranges = 5; if(numApples < 20 || numOranges == numApples){ println("Hello, we are open!"); } else { println("Sorry, we are closed!"); } println("Sincerely, the grocery store");

Answers

Answer 1
Answer:

Answer:

The output of the following code is "Hello, we are open! Sincerely, the grocery store ".

Explanation:

In the given code firstly we declare the variable that is numApples and numOranges. In this variable we assign value and the datatype of the variable is var. The var datatype can hold any type of data. Then we use the conditional statement. In the conditional statement, we use the OR logical operator. In the if block we check the condition that is if numApples variable value is less then 20 OR numOranges variable value is equal to numApples then it will print "Hello, we are open!". In the else block it will print "Sorry, we are closed!". In the last, we print "Sincerely, the grocery store".So in this question, if block is executed and the additional message is printed.


Related Questions

During the initiation phase the user needs are looked at in some detail, they are called..?A=User focusB=User targetsC=User requirements
What are at least 4 things you learned about social media ethics? Is there anything you will change after going over this lesson?
PLEASE HELP!!!!!!!!!!!What is the best way for IT professionals to keep employees’ wireless devices secure? A. encourage use of WPA by updating to compatible equipment B. encourage use of WEP by providing necessary devices C. encourage secure passwords by issuing the same password to all employees D. encourage use of encryption by offering training to employees
What does Upload.jsx file (component) do?
Electronic cover letters should still follow a business letter format, even though e-mail is a less formal type of communication.a. True b. False

What have been three technological changes to photography in the last 200 years?

Answers

There has been been a lot of technological changes to photography in the last 200 years.

The Three technological changes are:

  • The types of cameras: there are now digital cameras, phones of good camera quality against the old black and white.

  • Ths editing systems now for picture taken is better you can snap and get instant editing and printing you can edit to your taste.

  • New, developed and better equipment gear for the cameras and their safety.

Photography involves taking pictures. The camera was brought into limelight in the United States in the early 1800s

The camera and the technology used by camera has improved greatly over the years.

Example of these technological advances are:

  • Picture frame lighting is everywhere to highlight the photographs as they hold it.
  • The introduction of color to the photographs in 1861.
  • The production of disposable cameras and waterproof ones.

In the The first official camera which was invented in 1814, it was a big, clunky machine was used in taking still life pictures in black and white.

Conclusively, all of these improvement do arise occasionally as time goes by.

Learn more from

brainly.com/question/21021738

The technological changes to photography in the last 200 years are as follows :-
-First there was only black and white or sepia.
-Then a big revolution was color photography. 
-Then the was the instant photograph so you didn't need a dark room the Polaroid. 
-Finally there was the change over to digital photography. 
-People processed their own black and white photography but not color.

Hope this helps!

Why do pepole get there question answered in 5 munities but for me its 7 FREAKING DAYS!?question: https://brainly.com/question/26929057

Answers

I’m honestly having the same problem my homework is due tomorrow and like no one is able to answer it,the answer is always wrong it’s due to the algorithm

One property of light that makes it possible to record the image of an object with the camera

Answers

Answer:

Reflection

Explanation:

Reflection is the property of light in which when a ray of light hits a smooth surface, it bounces back in the direction in which it came from. If i is the angle between the normal to the surface and the incident ray, and r is the angle between the normal and reflected ray, the law of reflection states that the angle of incidence equals the angle of reflection. That is, i = r.

So, to record the image of an object with a camera, one property of light that makes that possible is reflection because, the incidence rays form an image of the object in the camera, while the reflected rays reflect the image so that it is visible to the eye.

Yolanda is making a banner for a school pep rally. She cuts fabric in the shape of a parallelogram. The angle at the bottom left corner measures 80°. what The measure of the angle at the top left corner must measure?

Answers

Answer:

100° angle is the correct answer to the following question

Explanation:

In the following statement, a lady who is creating a banner for the school but that lady cuts the sheet of the fabric in parallelogram whose opposite sides are always parallel and the opposite angles also. Then, the angle of the bottoms is 80°. So, that's why the 100° is the angle that is the top left corner.

Answer:

100 (100% sure)

Explanation:

ThIS IS CoRrEcT

What type of malware is heavily dependent on a user in order to spread?

Answers

the answer is " Virus" !

What should be used to screw on broadheads? needle-nose pliers gloves thumb and forefinger only specially designed wrench

Answers

You should use needle-nose pliers, or sometimes even specially designed wrenches to screw on broadheads. 

You should use needle-nose pliers, or sometimes even specially designed wrenches to screw on broadheads.

The needle-nose pliers are pliers used by technicians and artisans for holding and cutting work pieces. They are also known as long-nose pliers, snipe-nose pliers or pinch-nose pliers and are used mainly by electricians, computer networking engineers, designing jewelry .nose pliers or curved needle-nose pliers, have a curved beak.

Locking pliers offer versatility and convenience, allowing welders to hold fittings together with minimal effort and providing a steady grip that helps maintain the intended positioning throughout the welding operation. Their robust construction and ability to lock in place make them a reliable tool for holding fittings and maintaining the desired joint integrity during welding projects.

Learn more about locking pliers here:

brainly.com/question/13979289

#SPJ6