Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.println("How many cookies did you eat today");
int numOfCookies = in.nextInt();
double numCalories = (numOfCookies*300)/4;
System.out.println("The total number of calories you consumed in "+numOfCookies+" cookies is " +
" "+numCalories);
}
}
Explanation:
This code is implemented in Java.
- We know from the question that 4 cookies contain 300 calories
- Therefore number of calories consumed = (number of cookies eaten*300)/4
- To implement this in java we used the scanner class to prompt user for the input
- save the input to a variable and write mathematical expression for the number of calories consumed
- Then output the result
Answer:
Basic characteristics of OOAD and compression with SAD can be defined as follows:
Explanation:
The Object-oriented analysis is described as a design and analysis system like an application, that uses Oops programming. It is the measurement model, that is the presentation, which became a part of the object-based review.
The features of OOAD can be defined as follows.
- The complex issues are simply solved.
- The operation of very fast recovery.
- The stability in condition changes.
- Its conceptual method for resolving its extremely complex problems.
The difference in OOAD and SAD can be defined as follows:
- The OOAD mainly focuses upon the design of objects, it can be used in highly complex logical systems, whereas the SAD focuses on data analysis systems and processes.
- The OOAD uses the framework to target data, but the SAD is process-oriented. It uses class and UML diagrams, but SSAD uses DFDs to extract the element, it has many limited steps to prepare and execute, but OOAD relies mostly on initial growth. This method is being developed in the course of the process.
If i remember correctly...it should be 64 MB
Hope this helps
It is a programmer's responsibility to contribute to society and human well-being is true.
Explanation:
- It is a programmer's responsibility to contribute to society and human well-being is true.
- The Association for Computing Machinery (ACM) is known as the world's largest educational and scientific computing society.
- It has its own Code of Ethics and another set of ethical principles which were also approved by the IEEE as the known standards of teaching and practicing software engineering.
- Programmers contribute to develop computer systems which can reduce negative impression to the society.
- The negativity includes as threats to safety and health, which can be reduced and make everyday activities and work easier.
- software developers should reduce the risk of harming others due to the coding errors or the security issues which could impact human well-being.