1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
g100num [7]
4 years ago
12

7.1 Write statements that create the following arrays: A 100-element int array referenced by the variable employeeNumbers. final

int employeeNumbers = 100; int [] numbers = new int[employeeNumbers]; B 25-element double array referenced by the variable payRates. final double payRates = 25; int[] numbers = new int [Double] C.A 14-element float array referenced by the variable miles. float[] miles = 14; D 1000-element char array referenced by the variable char[] letters = new char[1000]; 7.2 What’s wrong with the following array declarations? int[] readings = new int[−1]; double[] measurements = new double[4.5]; There should be no negs. 7.3 What would the valid subscript values be in a four-element array of doubles? 7.4 What is the difference between an array’s size declarator and a subscript? My: idk 7.5 What does it mean for a subscript to be out-of-bounds? My: Declares error
Computers and Technology
1 answer:
maria [59]4 years ago
7 0

Answer:

A. int [ ] numbers = new int[employeeNumbers];

B. double[ ] numbers = new double[payRates];

C. float[ ] miles = new float[14];

D. char[ ] letters = new char[1000];

7.2 Size of array cannot be negative

Size of array should be a positive integer and not decimal.

7.4 The size declarator is used in a definition of an array to indicate the number of elements the array will have. A subscript is used to access a specific element in an array.

7.5 subscript to be out-of-bound means the specified integer is not within the range of the length of the array.

Explanation:

The question has answer given for some. I guess the explanation is what is needed.

A. The general format of creating an array is:

data type[] arrayRefVar=new datatype[size];

In this case, the datatype is int, arrayRefVar is numbers, size is employeeNumbers. The size was already initialised to 100 (employeeNumber).

B. A wrong datatype was used.

double[ ] numbers = new double[payRates];

would create an array of size 25 which is the payRates with types double.

C. The array was re-written using the general format of creating an array is:

data type[] arrayRefVar=new datatype[size];

D. The array was correctly defined.

You might be interested in
Employee names are stored using a maximum of 50 characters. This information is an example of which of the following?
enyata [817]

Answer: Data model

Explanation: Data model is the arrangement of the information in the form of table structure to maintain it in the form of database.They help in the keeping the entities in the sequence and can be tracked when required.Example- vendors records,customer record etc.

Other options are incorrect because the data retrieval is the regaining of the data from database, record instance is the parts of the database records  and meta data give knowledge about other data.

8 0
4 years ago
How does consumption of alcohol affect your driving skills? Name three ways that alcohol can affect your driving.
Natali [406]

Drinking and driving is not recommended. You need your, hands, feet, brain, and eyes to maneuver around. Drivers must be alert and able to make judgments quickly. Drinking and driving can affect the driver in the following ways.

Judgment

The brain is the first part of the body that is affected by alcohol. Your ability to think clearly and plan ahead levels down to as low as .02%

Concentration

Alcohol can leave you concentrating on only one action. You need to stay focused on several things at once. Alcohol will interrupt your focus and might result to an accident. Many accidents are as a result of a short attention span or a distracted driver.

Vision

Alcohol, especially when taken in excess, will impair your eye movement. Not only will it slow down your eye muscle function but  will also reduce peripheral vision.

8 0
4 years ago
Read 2 more answers
Assume that the data on a worksheet consume a whole printed page and two columns on a second page. You can do all of the followi
UNO [17]

Answer:

Option (2) is the correct answer of this question.

Explanation:

We will increase the left and right margins of the data on a worksheet that will consume a whole printed page  and columns on second page then the data will print all in one page.

Following are the steps to print the Data all in on page:-

Step 1.  Choose the Ribbon Page Design button

Step2.  select 1 page in the Scale to Fit category, and in the Width box, we  will automatic choose the height box.                

Step 3 .Finally we will  choose 1 page in the Height box to print your worksheet to a single page.

 "Other options are incorrect because they are not related to the given    question.i.e, to print the data in on page in the worksheet".

4 0
3 years ago
Assume that the variables gpa, deansList and studentName, have been declared and initialized . Write a statement that both adds
Alborosie

Answer:

Following are the statement which is given below:

if (gpa > 3.5)  // check the condition if gpa exceeds 3.5.

{

deansList++;  // increment of 1 in the deansList variable

cout << studentName;  // display the studentName,  

}

Explanation:

The description of the statement

  • In the if statement we check the condition of "gpa" .if  "gpa"  is greater then 3.5 then it executed the statement inside the if block otherwise nothing will be executed.
  • if control moves to the if part it adds to 1 to the deansList.
  • Finally, display the value of studentName.
3 0
3 years ago
Write two example use of relationships ICT
Yakvenalex [24]

Answer:

Read it all before you write if this isn't what you searching for I'm sorry...:(

A relationship, in the context of databases, is a situation that exists between two relational database tables when one table has a foreign key that references the primary key of the other table. Relationships allow relational databases to split and store data in different tables, while linking disparate data items.

For example, in a bank database a CUSTOMER_MASTER table stores customer data with a primary key column named CUSTOMER_ID; it also stores customer data in an ACCOUNTS_MASTER table, which holds information about various bank accounts and associated customers. To link these two tables and determine customer and bank account information, a corresponding CUSTOMER_ID column must be inserted in the ACCOUNTS_MASTER table, referencing existing customer IDs from the CUSTOMER_MASTER table. In this case, the ACCOUNTS_MASTER table’s CUSTOMER_ID column is a foreign key that references a column with the same name in the CUSTOMER_MASTER table. This is an example of a relationship between the two tables.

3 0
3 years ago
Other questions:
  • The Fully Meets rating should be assigned when the spelling suggestion matches query intent
    11·1 answer
  • A small company connects data acquisition equipment to the serial port of a computer. The equipment user has reported that not a
    8·1 answer
  • Material science focuses on<br><br> A) Heat<br> B) Solids<br> C) Liquids<br> D) Gasses
    7·2 answers
  • In a 4-way 16-bit Multiplexor the selector is:________
    6·1 answer
  • Plzzzzz help right answer gets Brainly
    10·1 answer
  • I have python homework and I’m struggling with it
    7·1 answer
  • Software refers to the physical parts of a computer.<br> a. True<br> b. False
    11·2 answers
  • Write chracteristics of all 5 generation of computer​
    7·2 answers
  • What is the output of the code?
    15·1 answer
  • Which of the following have the smallest file size
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!