Answer:
// program in java.
// package
import java.util.*;
// class definition
class Main
{// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read inputs
Scanner scr=new Scanner(System.in);
// variables
String name;
double price;
System.out.print("Enter item's name: ");
// read item's name
name = scr.next();
System.out.print("Enter item's price: ");
// read item's price
price= scr.nextDouble();
// print name
System.out.println("name of item is:"+name);
// print price
System.out.println("price of item is:"+price);
}catch(Exception ex){
return;}
}
}
Explanation:
Read name & price of item from user and assign it to variables "name" & "price" respectively with scanner object.Then print the name and price of item .
Output:
Enter item's name: Apple
Enter item's price: 100
name of item is:Apple
price of item is:100.0
Answer:
Device Driver
Explanation:
All of the other options are physical and are something that you can physically touch. The device driver runs in software and allows the computer to communicate with the device that is attached.
Answer:
The answer is "Analyze"
Explanation:
The term Analyze is the use of a machine or critical thinking to enable more effective management by companies and their information systems, in which the Xavier wishes to use a method for solving to find ideal decision-making strategies. Its object of the series analyses X selects, that's why the "Analyze " is correct.
The answer to this question would be algorithm animation.
Since the algorithm is animate, then you will be able to watch it works. Watching the algorithm executed can give you much information, what the algorithm does and how the algorithm does it.
Normally you will not be able to do this since the algorithm only do what it needs to do without reporting the detail to you
Answer:
numMugs=input(); #take input from the user and store it on a numMugs variable.
print ('Number of mugs:'+numMugs) #print the numMugs variable value with the Number of mugs: line.
Output:
- If the input is 8 then the program is print Number of mugs: 8.
- If the input is 'Harry' then the program is print Number of mugs: Harry.
Explanation:
- The above program is in python language with the two statements one in input and the other is output.
- The first line takes input and stores it into a variable named "numMugs".
- The second line print the value as Number of mugs: value_of_numMugs.
- The above program works for any type of input. It can work for the string data type or integer data type or character data type or any other data type.