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
Ghella [55]
3 years ago
13

Given two integer variables distance and speed, write an expression that divides distance by speed using floating point arithmet

ic, i.e. a fractional result should be produced.
1. Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double variable avg. Assume the variables num1, num2, and num3 have been declared and assigned values, and the variable avg declared.
Creating objects
2. Declare a reference variable of type File named myFile.
3. Declare a variable named myMenu suitable for holding references to Menu objects.
4. Suppose a reference variable of type File called myFile has already been declared. Create an object of type File with the initial file name input.dat and assign it to the reference variable myFile.
invoking methods
Computers and Technology
1 answer:
Readme [11.4K]3 years ago
4 0

Answer:

Following are the solution to this question:

Explanation:

In this question, the result value which would be produced are as follows:

= \frac{distance}{(double) \ speed}

In point 1:

The formula for the avg variable:

\to avg = \frac{(num_1 + num_2 + num_3)}{(double)\  3};

In point 2:

The variable for the file is:

File myFile;

In point 3:

The variable for the mymenu:

Menu myMenu;

In point 4:

myString = new String();

You might be interested in
Professionalism is defined as what?<br> ASAP PLEASE!
blsea [12.9K]

the competence or skill expected of a professional.

"the key to quality and efficiency is professionalism"

the practicing of an activity, especially a sport, by professional rather than amateur players.

"the trend toward professionalism"

8 0
3 years ago
Someone please help fast! I’m taking the test rn and I don’t understand this!!!!!!
andrezito [222]

Answer:

the mistake that was made by allen is that he was not suppose to hire a highly proficient technician to install the heating and cooling system in the granary.

7 0
3 years ago
Hi Guys,
Bingel [31]

Answer:

Please check the attachment.

Explanation:

Please check the attachment.

Download docx
8 0
4 years ago
You have a farm in the mountains. It is difficult for the power supply company to provide electricity at hilly areas. The area i
White raven [17]
D . a wind turbine power plant .
3 0
4 years ago
It converts Assembly Language into machine language?​
docker41 [41]

Answer:

An assembler.

Explanation:

Input is (as with any programming language) files with lists of instructions (typically assembler mnemonics), output is a binary format representing these instructions in machine language.

6 0
3 years ago
Other questions:
  • Pls help me. ask yourself what would jesus do...
    14·1 answer
  • Write the pseudo code to display the largest number from given 3 numbers.(n1,n2,n3,).
    10·1 answer
  • What is a content creator? Multiple Choice The person responsible for creating the original website content. The person responsi
    14·1 answer
  • Which layer includes the physical transmission medium (cables or wireless media) that any network must use to send and receive t
    8·1 answer
  • What is the purpose of filters in a database?
    11·1 answer
  • 1. Define what grasslands are ?
    14·2 answers
  • 3.4 lesson practice quiz edhesive
    11·1 answer
  • What does it mean to influence the government? Use influence in a sentence.
    8·2 answers
  • Explain basic anatomy of computers.
    13·2 answers
  • As part of your regular system maintenance, you install the latest operating system updates on your Windows 10 computer. After s
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!