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
olga_2 [115]
3 years ago
11

Assume that x is a variable that has been declared as an int and been given a value. Assume that twice is a method (in the same

class as the caller) that receives a single integer parameter and returns twice its value. (So if you pass 7 to twice it will return 14. Thus the expression twice(7) has the value 14. Write an expression whose value is eight times that of x without using the standard Java arithmetic operators (*,+, etc.). Instead, use calls to twice to accomplish this. In this exercise you must write this as a single expression-- you must not write any statements. Also, you may only use the twice() function-- no other functions or operators.
Computers and Technology
1 answer:
Anastasy [175]3 years ago
4 0

Answer:

Arrays are indexed from 0 in pretty much every language, except stupid Microsoft languages.

Lets say that ARR_SIZE is 5 for example.

So you have an array of 5 elements. They are indexed from 0 - 4.

arr[0] // First element

arr[4] // Last element

Therefore arr[ ARR_SIZE -1 ] is the last element of the array.

That's why for loops to iterate through arrays are wrote like:

for(int i = 0; i < ARR_SIZE; ++i)

You might be interested in
If a database table is to hold data on 52 students it must have 52?
Marina CMI [18]

Answer:

yes

Explanation:

6 0
3 years ago
Which of the following is not an example of technological progress? A: new scientific knowledge that has practical applications
kirill115 [55]
Why isn't there an option [B]? :p

Ah, nevermind. I believe the answer is [C], anyway. Simply building new roads and adding to existing infrastructures cannot really be counted as a "technological improvement". Nothing is technologically improving.
3 0
4 years ago
Read 2 more answers
The Register Set that stores temporary results related to the computations are<br>​
Natasha_Volkova [10]

Answer:

ooh Bhai sahab

Explanation:

ooh Bhai Yaar Mata tyo gari sanisanisanisani

5 0
3 years ago
Why can't i answer any brainly questions?
tigry1 [53]

Answer:

you have to make a account

Explanation:

so yea

7 0
3 years ago
What does the measurement tell you?<br><br> Schedule performance index
Natasha_Volkova [10]

Answer:

how close the project is to being completed compared to the schedule/ how far ahead or behind schedule the project is, relative to the overall project

Explanation:

3 0
3 years ago
Other questions:
  • A program called the ______ combines the object program with other programs in the library and is used in the program to create
    5·1 answer
  • Can using interior light help improve a drivers visibility at night
    9·1 answer
  • A variable used as a subscript should be initialized to ________.
    12·1 answer
  • An example of hardware is a _____. a)word processor b)database c)motherboard d)internet
    15·2 answers
  • EASY POINTS
    5·1 answer
  • In a(n) ____ design, the remote user's keystrokes are transmitted to the mainframe, which responds by sending screen output back
    9·1 answer
  • Question 2 (2 points)
    9·1 answer
  • ​Microsoft claims that the microsoft project software can _____.
    11·1 answer
  • Which term describes the degree to which a network can continue to function despite one or more of its processes or components b
    14·1 answer
  • If a fuse block or holder has tree fuses, it may be termed a...
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!