Answer:
It can be "ON" or "OFF". So it can store the numbers 1 and 0, but it certainly doesn't have the capacity to store a letter of the alphabet.
Explanation:
Luke himself wrote t the book
Answer:
The answer is "Option C".
Explanation:
In the given question the main list is missing. so, first, we defined the main list after that explain the answer to this question:
The main list:
list={24, 20, 10, 75, 70, 18, 60, 35}
In the above-given choices, option c is correct because in the list, the element 10 and element 18 are fixed in its correct position and element 10 and 24 are positioned in the placed of 18 elements, and the 20 elements will be placed as follows, and the other choices were wrong because in this data is in its wrong place.
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 input
Scanner scr=new Scanner(System.in);
// string array
String name[] = new String[3];
// price array
double price[] = new double[3];
// variable
double sum = 0,avg;
boolean flag = false;
// read three name and their price
for(int i=0;i<3;i++)
{
System.out.print("Enter item "+(i+1)+" name:");
name[i]=scr.next();
System.out.print("Enter item "+(i+1)+" price:");
price[i]=scr.nextDouble();
sum=sum+price[i];
// if any name is "peas"
if(name[i].equalsIgnoreCase("peas"))
flag = true;
}
System.out.println("Name and their price:");
for(int i=0;i<3;i++)
{
System.out.println(name[i]+":"+price[i]);
}
// if flag is true
if(flag)
{
// calculate average
avg=sum/3;
// print average
System.out.println("Average price is:"+avg);
}
else
System.out.println("no average output");
}catch(Exception ex){
return;}
}
}
Explanation:
Read three name and their price from user.If any name is equal to "peas" without case sensitive then find the average of three price and print the average.If their is no name equal to "peas" then print "no average output".
Output:
Enter item 1 name:apple
Enter item 1 price:20
Enter item 2 name:kiwi
Enter item 2 price:15
Enter item 3 name:banana
Enter item 3 price:20
Name and their price:
apple:20
kiwi:15
banana:20
no average output
Answer:
False.
Explanation:
The fixed program computer was used earlier which used wired processor and it was very laborious to make changes in processors. In the fixed program, the computer was following the build-in instructions and were processing only those data which were stored in memory.
Stored program computers are used in modern computers that are those computers that have single process structure and which will have instructions on how to perform the function on the computer and how to keep track of the processed data in computation.
Stored program computers keep program instruction in electronic memory.