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:
Spreadsheets is a software like Microsoft excel
you can right click the target cell or cells and then select the keys to paste the copled data.
I think its A. an on-demand service that helps to access shared computing and storage resources from anywhere using an Internet connection
The time that will be used to perform a multiplication using the approach is 28 time units.
<h3>How to calculate time taken?</h3>
From the information given, the following can be noted:
A = 8 (bits wide)
B = 4 time units.
The multiplication will be performed based on the adder stack. Since A = 8, then, A - 1 = 8 - 1 = 7.
Now, the time taken will be:
= 7 × B
= 7 × 4tu
= 28 tu
In conclusion, the correct option is 28 time units.
Learn more about time taken on:
brainly.com/question/10428039