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
zvonat [6]
4 years ago
7

Assume the following variable definitions int a = 5, b = 12; double x = 3.4, z = 9.1. What are the values of the following expre

ssions?
a) x * a.
b) static_cast(x) * static_cast(z).
c) static_cast(x * z).
d) static_cast(b).
Computers and Technology
1 answer:
levacccp [35]4 years ago
4 0

Answer:

a) 17, b) 27, c) 30, d) 12

Explanation:

a) x * a

3.4 * 5 = 17

b) static_cast<int>(x) * static_cast<int>(z)

Casting a value to int makes it an integer. The above one equals int(3.4) * int(9.1) = 3 * 9 = 27

c) static_cast<int>(x * z)

Casting a value to int makes it an integer. The above one equals int(3.4 * 9.1) = int(30.94) = 30

d) static_cast<double>(b)

12

You might be interested in
a. Do you think the U.S. government should censor information on the Web, such as instructions for making weapons, to protect th
MrRissso [65]

Answer:

The answer is YES.

Explanation:

<em>Things pertaining to weapons, destructive materials should be shared with precautions or much better if these things should not be put online. Since internet is widely available to almost all types of users and almost to all places, we cannot be sure of who will get hold of these information. Kids could easily see this and gain knowledge and out of curiosity will try these dangerous things. Terrorist groups will also have access to these information and who knows might happen to poor innocent souls around.  </em>

<em> </em>

<em>I don't think it would violate the right of First Amendment regarding freedom of speech. Freedom should be granted on matters that are most sensible. And this time, we are just protecting the rights of children and other innocent people who can be a victim including you. We are talking about weapons and destructive materials here which is non beneficial if one could get hold of this information, in my opinion. If there is really a need to construct these things, it is better to consult an expert or an authority to ensure that nobody gets harm.</em>  

5 0
3 years ago
Which type of element is , and what is the meaning of that element ?
tester [92]

Can you show a picture other than asking a question without context

6 0
4 years ago
Since nobody answered, I'm gonna just try this again. I really need help with this so please-
pantera1 [17]

Answer:

3.8

Explanation:

5 0
3 years ago
What kind of network connection do you think is used to connect most wireless video game controllers to consoles, and why would
Ostrovityanka [42]

Answer:

I would say Lan

Explanation:

5 0
3 years ago
The border that defines the outer boundary of a shape or other object
Over [174]
The answer is outline
8 0
3 years ago
Other questions:
  • g The reciprocal Fibonacci constant ψ is defined by the infinite sum: ψ=∑n=1 [infinity] 1 Fn Where Fn are the Fibonacci numbers
    7·1 answer
  • ________is one color shade gradually progressing to another shade of the same color or one color progressing to another color.
    14·1 answer
  • How to ask for a letter of recommendation via email?
    10·1 answer
  • In a Python dictionary, an association is formed between what two components of the dictionary?
    15·1 answer
  • Gn to be printed at a commercial printer. Which main ink type's exact color appearance is determined by the printer and requires
    13·1 answer
  • Where are the Add Level and Delete Level buttons located? Filter options list Sort &amp; Filter group Sort dialog box Custom fil
    11·1 answer
  • While performing disk and file maintenance on the company file server, you determine a user in the accounting department has bee
    13·2 answers
  • Create a python code with 5 circles, 5 polygons, 5 line commands, 2 for loops, and 1 global variable
    12·1 answer
  • 71 81 77 15 63 96 36 51 77 18 17
    14·1 answer
  • Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimen
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!