Write an if or else statement that compares the value

Question # 00766935 Posted By: Georgey Updated on: 06/24/2020 11:10 AM Due on: 06/29/2020
Subject Computer Science Topic General Computer Science Tutorials:
Question
Dot Image

 

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 . 2-Given two integer variables matricAge and gradAge , write a statement that gives gradAge a value that is 4 more than the value of matricAge . 3-Write a single statement that declares a reference variable of type Integer named myInt , creates an object of type Integer with the initial value of 75 , and assigns it to the reference variable.

 

Dot Image

Click chat on right side to get answer. Click on Chat
Whatsapp Lisa