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
KengaRu [80]
3 years ago
15

4. If d is a double variable with a value of 7.5, which of the following statements results in a (1 point) value of 7 being assi

gned to x?
int x = (int)d;
int x = d;
int x = int(d);
double x = d;​
Computers and Technology
1 answer:
nignag [31]3 years ago
7 0

Answer:

int x = (int)d

Explanation:

(int) means the largest integer value smaller than <value>.

which is 7.

Only the first choice has the correct syntax.

The second choice sets an int as a double, which does not work.

The third one shows int as a function, d as a parameter, which is not allowed, as int is a keyword in java

For the last choice, you are setting x to 7.5 not 7.

So int x = (int)d is correct.

You might be interested in
A photo's color intensity can be modified by changing the brightness and content.
fiasKO [112]
The above statement is FALSE.

A photo's color intensity can be modified by changing the brightness and CONTRAST.

There are four common image controls that makes an image easy to view. These controls are brightness, contrast, saturation, and sharpness.

Brightness control simply brightens the whole image from the shadows to the highlights equally.

Contrast control is the separation between the darkest and brightest areas  of the image.

Saturation control is the separation of colors in the image.

Sharpness control is defined as the edge contrast, meaning the edges in the image are the ones being contrasted.
6 0
3 years ago
Copyrighted software illegally downloaded and sold by organized groups without a license to do so is called:
trasher [3.6K]
Copyrighted software illegally downloaded and sold by organized groups without a license is called Warez
5 0
3 years ago
Add me on xbox ahaha craig#6822 this is also just for points
Monica [59]

Answer:

sadly i dont have one:(

4 0
3 years ago
Read 2 more answers
Technical colleges offer certification in audio engineering through programs that are normally from 2 to 6 months long. False Tr
kompoz [17]

Answer: False

Explanation:

Certification in Audio Engineering equips one with skills needed in the music industry such as being able to record, mix and master sounds as well as knowledge of studio equipment such as microphones, speakers, consoles and the computer software needed to blend all these components together.

As such, it can take a bit of time to learn it adequately enough to be certified.  This is why Technical colleges offer certifications in audio engineering through programs that usually last between 6 months and a year.

6 0
3 years ago
3. Write a program that has the user enter two Strings. Display whether the first String is less than (comes first alphabeticall
Citrus2011 [14]

Answer:

The solution code is written in Python 3

  1. firstStr = input("Enter first string: ")
  2. secondStr = input("Enter second string: ")
  3. if(firstStr < secondStr):
  4.    print("The first string comes first alphabetically.")
  5. elif(firstStr > secondStr):
  6.    print("The second string comes first alphabetically.")
  7. else:
  8.    print("The first and second string are same")

Explanation:

Firstly, prompt the user to input two strings (Line 1 - 2).

Next create if else if statement to check if the firstStr is less than, greater than or equal to the secondStr and then print the appropriate message accordingly (Line 4- 9). For example, the program display message "The first string comes first alphabetically." if it find the firstStr is less than secondStr.

4 0
3 years ago
Other questions:
  • . _______ are the components that allow a posi-traction differential to transfer power from one drive wheel to another.
    10·1 answer
  • Which of the following journals is not aimed at the public as well as scientists?
    7·1 answer
  • You are configuring IP settings on a new network. For the external interfaces, you decide to obtain registered IP addresses from
    5·1 answer
  • I'm using assembly language. This is my assignment. I kinda confused about how to write code for this assignment. Can anyone exp
    11·1 answer
  • Choose the HTML5 element below that is used to configure an area on a web page that can stand on its own and could potentially b
    5·1 answer
  • What is SoC? how is it different from CPU?
    14·1 answer
  • Suppose you are choosing between four different desktop computers: one is Apple MacIntosh and the other three are PC-compatible
    15·1 answer
  • Lord Strawberry, a nobleman, collected birds. He had the finest aviary in Europe, so large that eagles did not find it uncomfort
    9·1 answer
  • study the picture of the simulation and the graph above. based on the information obtained from your study of the simulation and
    11·1 answer
  • Busco a talcotalco38
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!