Answer:
SELECT product_name, amount_due, amount_paid,
cancelled, amount_refunded
FROM products
ORDER BY product_name ASC;
Explanation:
SQL (Structured Query Language ) was used above.
The SELECT command is used to list all the variables we want in our output.
The FROM command signifies the location.
ORDER BY command ensures that your result is ordered
ASC means Ascending Order.
; signifies the end of the query.
NOTE: Underscores were used because variables cannot be written with spaces between them
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:
True
Explanation:
Embedded operating systems are operating systems which supports hardware which is not a computer and allows the hardware to perform its task.
An example of a device with an embedded operating system is an SD card. The operating system on the card allows the card to be readable by the computer which its is plugged to.
Other examples of hardware with embedded systems are traffic lights, digital televisions, ATMs, point of sale (POS) and digital cameras.