0,7,0,0
9,9,0,0
7,7,7,7
3,9,0,7
Hope this helps
Answer:
if (pH<7.0){
neutral=0;
base=0;
acid=1;
}
else if (pH>7.0){
neutral=0;
base=1;
acid=0;
}
else if (pH==7.0){
neutral=1;
base=0;
acid=0;
}
Explanation:
As required by the question, if and else statements have been used to test the value of the pH and assign the apropriate values to the variables neutral, base and acid.
The code snippet below can be used to prompt the user to enter values for pH
<em>import java.util.Scanner;</em>
<em>public class pHTest {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner scr = new Scanner(System.in);</em>
<em> System.out.println("Enter a value for the pH");</em>
<em> int neutral, base, acid;</em>
<em> double pH = scr.nextDouble();</em>
<em> if (pH<7.0){</em>
<em> neutral=0;</em>
<em> base=0;</em>
<em> acid=1;</em>
<em> }</em>
<em> else if (pH>7.0){</em>
<em> neutral=0;</em>
<em> base=1;</em>
<em> acid=0;</em>
<em> }</em>
<em> else if (pH==7.0){</em>
<em> neutral=1;</em>
<em> base=0;</em>
<em> acid=0;</em>
<em> }</em>
<em>} }</em>
Answer:
30 units of Food A and 45 units of Food B are to be purchased to keep costs at the minimum $105.
Explanation:
X = Amount of food A
Y = Amount of food B
Z= 2X+Y..... minimum cost equation
50X + 20Y > 2400 .................Vitamins .......(1)
30X + 20Y > 1800 ...................Minerals.......(2)
10X + 40Y > 1200 .................Calories ..........(3)
X > 0
y > 0
X=30 and Y = 45
Z= 2(30) + 45 = $105
I think it should be Java of package instead
Answer:
a. Software as a Service.
Explanation:
These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.