Answer:
document size texture printing stock color mode He must print in CMYK because that color mode retains all the colors
Explanation:
Answer:
import java.util.Scanner;
public class CalculatingSales {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int product, quantity;
double total = 0;
while(true) {
System.out.println("Enter product_id and quantity(0 0 to stop): ");
product = sc.nextInt();
quantity = sc.nextInt();
if(product==0 && quantity == 0)
break;
switch (product) {
case 1:
total = total + 2.98*quantity;
break;
case 2:
total = total + 4.50*quantity;
break;
case 3:
total = total + 9.98*quantity;
break;
case 4:
total = total + 4.49*quantity;
break;
case 5:
total = total + 6.87*quantity;
break;
default:
System.out.println("Invalid option");
}
}
System.out.println("total value: "+total);
sc.close();
}
}
Explanation:
- Take the product and quantity as input from user.
- Use a switch statement to multiply the total with their relevant value.
- Display the total value.
Answer:
The function in Python is as follows:
def unite_lists(A, B):
union = []
for elem in A:
if elem in B:
union.append(elem)
return union
Explanation:
This defines the function
def unite_lists(A, B):
This initializes an empty list for the union list
union = []
This iterates through list A
for elem in A:
This checks if the item in list A is in list B
if elem in B:
If it is present, the item is appended to the union list
union.append(elem)
This returns the union of the two lists
return union
Answer:
D. is a temporary file created by an information system for a single task
(the options are given in the question and correctly provided in ask for detail section)
Explanation:
File oriented information system is the system that is used to store data temporarily. A file has been created for each new user that stores information about client for small piece of time in database. The files does not share information with each other as each independent user creates his own files. The data in this file is deleted after specific time interval.
A work file is a file that stores all the above mentioned information for single time. This is a temporary file.