Marketing<span> is an essential process to the success of your small </span>business<span>. </span>Marketing <span>involves researching, packaging and presenting products and services to consumers.</span>
The answer to your question is D, OSHA requires employers to let employees of any hazardous chemicals exposed,or not.
Answer:
Java.
Explanation:
public class Rectangle {
private int x;
private int y;
private int width;
private int height;
///////////////////////////////////////////////////////////
public Rectangle(int inX, inY, inWidth, inHeight) {
x = inX;
y = inY;
width = inWidth;
height = inHeight;
}
///////////////////////////////////////////////////////////
public int getX() {
return x;
}
public int getY() {
return y;
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
///////////////////////////////////////////////////////////
public int getArea() {
return width * height;
}
public bool isSquare() {
if (width == height) {
return true;
}
else
return false;
}
///////////////////////////////////////////////////////////
public String toString() {
return "Rectangle located at (" + x + "," + y + ")" + "with dimensions " + width + "x" + height + "and " + getArea() + "is the area.";
}
}
Answer:
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int sumOdds =0;
int sumEvens =0;
int num;
do{
System.out.println("Enter positive integers");
num = in.nextInt();
if(num%2==0){
sumEvens+=num;
}
else if (num%2!=0){
sumOdds+=num;
}
}while (num>0);
System.out.println("The sum of evens: "+sumEvens);
System.out.println("The sum of odds: "+sumOdds);
}
}
Explanation:
- Import Scanner class to prompt and receive user input
- Declare the following variables and initialize them int sumOdds =0, int sumEvens =0, int num;
- Create a do....while loop That continously prompts user to enter a positive number. The loop should terminate when a negative number is enters (n<=0)
- Within the while loop use an if condition with the modulo (%) operator to determine even and odd numbers and add to the respective variables
- Outside of the while loop Print sum of odds and sum of evens