Answer:
discriminant = b * b - 4 * a * c
discriminant = b ** 2 - 4 * a * c
Explanation:
The operands are correct and in the right order (for python).
** is the operand for squaring something.
* is the operand for multiplying something.
- is the operand for subtracting something.
Answer:
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int inputYear;
boolean isLeapYear;
isLeapYear = false;
inputYear = scnr.nextInt();
// If a year is divisible by 400, then it is a leap year
if (inputYear % 400 == 0)
isLeapYear = true;
// If a year is divisible by 100, then it is not a leap year
if (inputYear % 100 == 0)
isLeapYear = false;
// If a year is divisible by 4, then it is a leap year
if (inputYear % 4 == 0)
isLeapYear = true;
if(isLeapYear)
System.out.println(inputYear + " is a leap year.");
else
System.out.println(inputYear + " is not a leap year.");
}
}
Explanation:
- Take the year as an input from user and store it to inputYear variable.
- If the year is a century year, check if the year is divisible by 400 ( the year must be evenly divisible by 400 ), then set the boolean isLeapYear to true. If a year is divisible by 100, then set the boolean isLeapYear to false. If a year is divisible by 4, then set the boolean isLeapYear to true.
- Check if isLeapYear is true, then print that it is a leap year. Otherwise, print that it is not a leap year.
Output:
1712
1712 is a leap year.
Answer:
Explanation:
Concurrent Process model can be regarded as evolutionary process model as well as software engineering is concerned, it allows to know the current state of activities as well as their associated states.
The set of states In the concurrent process model are:
✓awaiting changes
✓Inactive
✓baselined
✓under development
✓under revision
✓under review
✓done
The stated "states" above give a representation of externally observable mode as regards to the behaviour of activities of a particular software engineering.
The existence of activities of software engineering do exist at same period
In concurrent process model, though each of the activities occur in different states so that process network is produced. The movement from one state to another of activity of software engineering is as a result of
predefined events.
Pablo can be a minimum of two pains and a maximum of four panes in a split screen worksheet.
Answer:
Sorry mate I tried but I got it wrong!
Explanation:
Sorry again