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
lapo4ka [179]
3 years ago
15

Write an if/else statement that compares the value of the variables soldYesterday and soldToday, and based upon that comparison

assigns salesTrend the value -1 or 1. -1 represents the case where soldYesterday is greater than soldToday; 1 represents the case where soldYesterday is not greater than soldToday.
Computers and Technology
1 answer:
jenyasd209 [6]3 years ago
7 0

Answer:

if(soldYesterday > soldToday){

salesTrend = -1;

} else if(soldToday > soldYesterday){

salesTrend = 1;

}

Explanation:

The if/else statement is more explicit. The first if condition check if soldYesterday is greater than soldToday, if true, then -1 is assigned to salesTrend.

Else if soldToday is greater than soldYesterday, if true, then 1 is assigned to salesTrend.

You might be interested in
How do you change your password on this? This isn’t really a “Question” but....
MissTica
You go to edit profile and press the change password button.  click on profile pic
5 0
4 years ago
Read 2 more answers
Help me please thankyou was
sweet [91]

Answer:

Macros

Explanation:

The Macros extensions is used to dave time on repetitive tasks and standardize document formats.

7 0
3 years ago
When a web page author includes meta keywords, like sex, that have little to do with the information on the page, the author is
OLga [1]
This practice is known as "ClickBait".
8 0
3 years ago
Looking at the response vehicles (pictured above), explain two options you have in order to abide by the Move Over law,
Nesterboy [21]

Answer: two options I have in order to abide by the move over law is to either move over or slow down. You must move over a lane away from stationary emergency vehicles if it is safe to do so. If it is not safe to do so then the driver must proceed with due caution, with a safe speed for road conditions.Until the driver has passed the emergency vehicle.

Explanation:Let me know if this helped! (:

6 0
3 years ago
Read 2 more answers
Why do scientists use computers to map El Nino?
Zielflug [23.3K]
El Nino is a meteorogycal phenomenom that affects certain areas . My best guess is that computers are used to map in which areas and patterns this phenomenom affects.
8 0
4 years ago
Read 2 more answers
Other questions:
  • In the replace dialog box, clicking what button changes highlighted text
    13·2 answers
  • The analysts at Techno Info Systems are considering the four-model approach to system development for a new client. If they make
    12·1 answer
  • #In chemistry, the ideal gas law states:
    5·1 answer
  • Write the definition of a function named newbie that receives no parameters and returns 1 the first time it is invoked (when it
    7·1 answer
  • What laws are broken when you hack someone?
    9·1 answer
  • When you build a computer from parts, you usually start by deciding on which processor and motherboard you will use?
    11·1 answer
  • Why are control components necessary in traditional software and generally not required in object-oriented software?​
    11·1 answer
  • What would be the greatest tool for emphasis? (video class)
    9·1 answer
  • In the following nested loop structure, which loop does the program EXIT first?
    6·1 answer
  • Write a summary on the video "Greatest Inventions w/Bill Nye".
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!