Answer:
Java program explained below
Explanation:
FindSpecialNumber.java
import java.util.Scanner;
public class FindSpecialNumber {
public static void main(String[] args) {
//Declaring variable
int number;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
//getting the input entered by the user
System.out.print("Enter a number :");
number = sc.nextInt();
/* Based on user entered number
* check whether it is special number or not
*/
if (number == -99 || number == 0 || number == 44) {
System.out.println("Special Number");
} else {
System.out.println("Not Special Number");
}
}
}
_______________
Output#1:
Enter a number :-99
Special Number
Output#2:
Enter a number :49
Not Special Number
Write a statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased is described below
Explanation:
Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with every purchase of 8 or more books. It offers regular customers 1 free book with every purchase of 7 or more books, and offers 2 free books with every purchase of 12 or more books.
A statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased. Here's what we have:
if(isPremiumCustomer = true){
if(nbooksPurchased >= 5));
freeBooks = 1;
}else if(nbooksPurchased >= 8){
freeBooks = 2;
}else {
if(nbooksPurchased >= 7);
freeBooks = 1;
}else if(nbooksPurchased >= 12){
freeBooks = 2;
}
We are getting an error of "illegal start of expression".
Two of the hints are "You are using an incorrect number somewhere in your solution" and "We think you might want to consider using: ==".
I do not want the answer, I just want pointed in the right direction.
Answer:
The answer is "Option B".
Explanation:
Given equation:
if
Calculating by the Routh's Hurwitz table:
Form the above table:
In the above, the value of k is greater than 1.
Answer:
The following table is among some of the discrepancies between some of the different topics.
Explanation:
- Science seems to be the application of structured organized facts which could be interpreted scientifically because when engineering would be a branch of science which deals with either the profession of acquiring including using technological, computational, economical and severity of adverse effects to design and manufacture equipment and devices that seem to be beneficial to mankind.
- Science would be a set of information and established frameworks whereas the use of these models and information to construct structures as well as mechanisms becomes engineering.