Answer:
Explanation:
import java.util.Array;
public class Items{
public static void main (String {} args){
// a. Set up 4 arrays which hold data about 6 items you want to sell
int [] itemnum = new int[](1,2,3,4,5,6);
int [] quantity = new int[](500,200,350,100,270,300);
double [] price = new double [](10000, 50000,30000, 22000, 26000,100200);
double[] sales = new double [6];
//b. Set up loops to load the itemnum, quantity and price arrays
for(int I=0;I<6;I++)
{
System.out.println("Item "+itemnum[I]);
System.out.println("Item "+quantity[I]);
System.out.println("Item "+price[I]);
}
//c. Set up another loop to calculate values for the sales array.
for(int j=0;j<6;j++)
{
sales[j] = quantity[j] * price[j];
}
//d. Set up another loop to print the item number and sales amount for each transaction
for(int k=0;k<6;k++)
{
System.out.println("Item Number "+itemnum[k]);
System.out.println("Sales Amount "sales[k]);
}
//e. Set up another loop to calculate the total sales of all 6 items
double totalsales = 0;
for(int l=0;l<6;l++)
{
totalsales+=sales[l];
}
//f. print the total sales amount
System.out.print("Total Sales: "+totalsales);
}
}
You cannot compare apples to oranges.
Assumes indentation has a logical purpose
No error
Answer:
Assumes indentation has a logical purpose
Explanation:
No period
2. Click the
tab.
3. In the
group, click
.
4. Specify whether to shift cells or insert an entire row or column, and click OK.
The completion of steps for inserting a range of cells in a worksheet as follows:
The advantage of inserting a range of cells in a worksheet is that it generally makes your workbook easier to read, constructing formulas faster to read, and authorizes you to create ranges with variable sizes to produce your dynamic spreadsheet which is easy to update as well.
According to the context of this question, if one should want to insert a range of cells in a spreadsheet, he/she must follow some steps in order to make it effective, convenient, and dynamic.
Therefore, the completed steps for inserting a range of cells in a worksheet are well described above.
To learn more about Spreadsheet, refer to the link:
#SPJ5
Answer:
Click the Home tab. In the Cells group, click Insert
Explanation:
I had it on a quiz.
Answer:
Fill the blank with
public interface Nameable {
Explanation:
Required
Complete code segment with the interface definition
The given code segment is divided into three parts
1. The interface
2. The method that returns nothing
3. The method that returns string
The blank will be filled with the definition of the interface.
The definition is as follows:
public interface Nameable {
Analyzing the above definition
public -----> This represents the modifier
interface ------> This represents that the definition is an interface
Nameable ------> This represents the name of the interface
Answer:
c. 27
Explanation:
Python
CSS
Javascript
Originally, Java was used to create similar apps as other languages, which as python. The correct option is b.
The computer languages are Java and Python is in their conversion; the Java compiler converts Java source code into an intermediate code known as bytecode, whereas the Python interpreter converts Python source code into machine code line by line.
Curly braces are used in Java to define the beginning and end of each function and class definition, whereas indentation is used in Python to separate code into separate blocks.
Multiple inheritances is done partially through interfaces in Java, whereas Python continues to support both solitary and multiple inheritances.
Therefore, the correct option is b. Python.
To learn more about computer languages, refer to the below link:
#SPJ2
Answer:
Python
Explanation:
Took the test