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
Ad libitum [116K]
4 years ago
14

Write a second converttoinches() with two double parameters, numfeet and numinches, that returns the total number of inches. ex:

converttoinches(4.0, 6.0) returns 54.0 (from 4.0 * 12 6.0).

Computers and Technology
2 answers:
svetlana [45]4 years ago
4 0

Answer:

Answer is in java language

Explanation:

I am writting the code with comments in lines that starts with "//".

//First write the method converttoinches having two input parameters

// 1st param numfeet

// second param numinches

// public is a access modifier in which this method can be accessed

// from any class

//double is a return type as we have both input param as double so the

// the return value will also be double as well

public double converttoinches(double numfeet, double numinches) {

// In programming languages any numeric value that is in parenthesis

// will execute first so as we want to multiple numfeet with 12 in order to

//get number of inches in feet and then add those values with //numinches

// return will send the result from this function to where its being called.

       return (numfeet * 12) + numinches;

   }

Dvinal [7]4 years ago
4 0

Answer:

public static double convertToInches ( double numFeet, double numInches ){

     return ((numFeet * 12.0) + numInches);

     }

Explanation:

You're creating a second method that has the same name. It's very similar to the one above it (see the picture attached) just changing the parameters and adding on + numInches to the end of the return statement.

You might be interested in
Ping pc-b from a command prompt window on pc-a. were the pings successful? why?
love history [14]
If the pings are successful you are either on the same subnet and everything is configured correctly or ICMP echo is enabled on the router which it should be by default internally. Externally, ICMP can/should be disabled to avoid DOS attacks.
7 0
3 years ago
Which two of the following are analog signals? A) whether a place of business is open or closed B) the volume of the radio C) th
ella [17]

Answer: B) The volume of the radio and D) the outdoor temperature.

Explanation:

The analog signal is the signal that continuously varying with the time and it continuous analog signal. Analog signal is basically used to carry information or data from one device to another device.

The volume of the radio is the example of the analog signal as it carry voice from one place to another. The analog signal  is the type of signal that use to measure the particular change in the physical phenomena like pressure, sound and temperature in the environment. So, outdoor temperature is also the example of analog signal.

And the other options (A) and (C) are incorrect because it is represent any physical change in the environment.  

8 0
4 years ago
Write a function addUpSquaresAndCubes that adds up the squares and adds up the cubes of integers from 1 to N, where N is entered
avanturin [10]

Answer:

All functions were written in python

addUpSquaresAndCubes Function

def addUpSquaresAndCubes(N):

    squares = 0

    cubes = 0

    for i in range(1, N+1):

         squares = squares + i**2

         cubes = cubes + i**3

    return(squares, cubes)

sumOfSquares Function

def sumOfSquares(N):

    squares = 0

    for i in range(1, N+1):

         squares = squares + i**2

    return squares

sumOfCubes Function

def sumOfCubes(N):

    cubes = 0

    for i in range(1, N+1):

         cubes = cubes + i**3

    return cubes

Explanation:

Explaining the addUpSquaresAndCubes Function

This line defines the function

def addUpSquaresAndCubes(N):

The next two lines initializes squares and cubes to 0

    squares = 0

    cubes = 0

The following iteration adds up the squares and cubes from 1 to user input

    for i in range(1, N+1):

         squares = squares + i**2

         cubes = cubes + i**3

This line returns the calculated squares and cubes

    return(squares, cubes)

<em>The functions sumOfSquares and sumOfCubes are extract of the addUpSquaresAndCubes.</em>

<em>Hence, the same explanation (above) applies to both functions</em>

7 0
4 years ago
Why is project scope management so challenging in IT projects? What suggestions do you have for preventing scope creep in projec
seropon [69]

Answer:

Explanation:

<u>Ways to Avoid Scope Creep</u>

Scope creep is what happens when changes are made to the scope of a project without any control. Changes happen to projects all the time without been notify ontime as a project manager. It is that very rare project that ends up delivering exactly what was asked for on the first day. However, without there being some control over the changes, a project manager has little chance of keeping on top of the work and managing the project effectively.

Generally, scope creep is when new requirements are added after the project has commence. These changes are not properly reviewed. The project team is expected to deliver them with the same resources and in the same time as the original scope.

On the other hand, as a project manager you could end up with a project with lots of approved, considered changes, that never ends because every time you think you have finished a new requirement arrives in your inbox and you have to make more changes.

The following are five ways to keep control of your project.

<em>1-Document the Requirements</em>

<em>2-Set up Change Control Processes</em>

<em>3-Create a Clear Project Schedule</em>

<em>4-Verify the Scope with the Stakeholders</em>

<em>5-Engage the Project Team</em>

6 0
3 years ago
Combinations of spaces and special characters can be used in domain names of uniform resource locators (urls).
iris [78.8K]

A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.

The statement that combinations of spaces and special characters can be used in domain names of uniform resource locators (URLs) is false. Correct answer: B

The specifications for URLs are clealy defined by The Internet Engineering Task Force (IETF).

7 0
3 years ago
Read 2 more answers
Other questions:
  • What's another name for the Super High shot, if you shot it on the ground using a tripod?
    14·1 answer
  • A computer system has a 32KB, 8-way set associative cache, and the block size is 8 bytes. The machine is byte addressable, and p
    7·1 answer
  • The term “computer literacy” dates back to what decade? <br> 1960s<br> 1970s<br> 1980s<br> 1990s
    5·1 answer
  • What are tributaries
    15·2 answers
  • When you gather primary or secondary data, what part of the market information management process are you participating in?
    8·1 answer
  • )finding an unused location in the hash table is called
    5·1 answer
  • To discover how many cells in a range contain values that meet a single criterion, use the ___ function
    5·1 answer
  • What is a common use for append queries?
    14·2 answers
  • Years ago when working a helpdesk, the most common question asked, almost daily, was about resetting passwords. What type of kno
    11·1 answer
  • Large and fast disks should be used for as doing so will ensure work is done as quickly as possible?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!