Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String isbn;
System.out.print("First 1:2 digits: ");
isbn = input.nextLine();
if(isbn.length()==12){
int chksum = 0;
for(int i = 0; i<12;i++){
if((i+1)%2==0){ chksum+= 3 * Character.getNumericValue(isbn.charAt(i)); }
else{ chksum+=Character.getNumericValue(isbn.charAt(i)); } }
chksum%=10;
chksum=10-chksum;
if(chksum==10){
System.out.print("The ISBN-13 number is "+isbn+"0");}
else{
System.out.print("The ISBN-13 number is "+isbn+""+chksum); } }
else{
System.out.print("Invalid Input");
} }}
Explanation:
See attachment for explanation where comments are used to explain each line
Answer:
I will try to help you answer this. it seems really confusing but I'll do my best to solve it and get it back to you. Hope I'm able to help!
2 is tha answer to Why should cloud computing not be a set of silos? Provide real or made up examples of why incompatible solutions will fail in IT.?
Answer:
On-site food services is the INDEPENDENT variable and the weight gain is the DEPENDENT variable
Explanation:
Variables can be dependent or independent. An independent variable is the one used by the researcher to test its degree of influence on the dependent variable. The dependent variable, as the name implies, relies on changes in the independent variable to effect its own changes.
In the question, it is obvious that weight gain among the first year students is dependent on on-site food services
In Computer programming, a value type variable can be used to store a: value expression.
<h3>What is a variable?</h3>
A variable can be defined as any name which refers to a location in computer memory that is typically used for storing a value.
<h3>The two types of variable.</h3>
In Computer programming, there are two (2) types of variable and these include:
Generally, a value type variable can be used to store a <u>value expression</u> or a value of that type.
Read more on variable here: brainly.com/question/20264183