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
A(n) _____ website gathers, organizes, and then distributes web content.
kap26 [50]

Answer:

content aggregator

Explanation:

:)

8 0
3 years ago
PLEASE HELP ME ON THIS..............PLEASEEEEEEEEEEEE PLEASEEEEEE<br><br> ITTS EASYYYYYYYY
Natasha_Volkova [10]
Meetup is a really weird site. It's objective is to put people in groups according to their interests. It is certainly no place to go if you are job hunting.

Twitter seems to be a place where comments are made. Most would be personal. Donald Trump uses it to set policy. Most likely he is the first president to use that.

Facebook for those who have sent me things, is somewhat the same. I wouldn't trust it to find a job.

MySpace no longer exists. So it is not a place you'd put an ad for a job. I think myspace was used for photos. 

That only leaves the 4th one down. Submit that one.



 
3 0
3 years ago
It is necessary for us to verify and checked information before we shared online? Explain​
lesya [120]

Answer:

The answer is yes.

Explanation:

If you don’t check where the source is from and if it is verified, you may share an incorrect and false answer. Also, you may type in your personal information. This is <u>VERY</u> risky. Do <u>NOT</u> share your private information to strangers!

You can check your information by searching it up online or asking a teacher! There! I hope this helps! ;)

4 0
2 years ago
Two variables, num and cost have been declared and given values: num is an integer and cost is a double. Write a single statemen
sweet [91]

// Writing a C++ Program for the given senario

#include<iostream>         // Using input and output stream

using namespace std;       // Using standard namespace

// Main function

int main(){

int num = 10;             // int num initialized with 10

double cost =1000;       // double cost initialized with 1000

/*

Cout is stream in C++ that uses << symbol to output anything on the screen and as the problem says we need to output both numbers on a line, i have used multiple << because on cout streams you are allowed to send one element at a time.

Also, endl is a keyword in C++ that ends the line after output for the cout stream is finished.

*/

cout<< num << " " << cost <<endl;

// Return 0 means telling the compiler to terminate the //program

return 0;

}

3 0
3 years ago
Which option best describes what spotting sessions are in the context of filmmaking? ASAP PLEASEEEEE!!!!!!! 40 points
tia_tia [17]
The answer you are looking for is E! :)
3 0
3 years ago
Read 2 more answers
Other questions:
  • You are installing an updated driver for a hardware device on your system. A dialog box displays indicating that Microsoft has d
    15·1 answer
  • Your supervisor has asked you to set up a RAID hard drive array in a tower system, which has a motherboard that uses the B360 ch
    10·1 answer
  • WHY IS BRAINLY NOTIFICATIONS LIKE THIS?????
    15·2 answers
  • What is a compiler? O a tool used to integrate multiple software programs O a tool used to extract a single software program fro
    13·2 answers
  • Consider the following code:
    13·1 answer
  • What is typescript can you please give me a description of what it is
    13·1 answer
  • You have searched a database to locate US cities with population counts above 1 million people. You need to present the results
    6·2 answers
  • What is text or pictures behind the document called?​
    13·1 answer
  • Plz help
    10·1 answer
  • i was wondering if anybody would have a season 1 or 2 or 3 Fortnight account they never use and was gonna ask if i could play on
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!