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
loris [4]
3 years ago
12

6.1.3: Function call with parameter: Printing formatted measurement. Define a function PrintFeetInchShort, with int parameters n

umFeet and numInches, that prints using ' and " shorthand. End with a newline. Ex: PrintFeetInchShort(5, 8) prints: 5' 8" Hint: Use \" to print a double quote.
Computers and Technology
1 answer:
Xelga [282]3 years ago
7 0

Answer:

public class Main

{

public static void main(String[] args) {

 PrintFeetInchShort(5, 8);

}

public static void PrintFeetInchShort(int numFeet, int numInches) {

    System.out.println(numFeet + "'" + " " + numInches + "\"");

}

}

Explanation:

Create a function called PrintFeetInchShort that takes two parameters, numFeet, and numInches

Print the given values in required format. Use <em>System.out.println </em>to print the values, ends with a new line.

Inside the main, call the function with two integers as seen in the example

You might be interested in
Given an integer variable count, write a statement that displays the value of count on the screen. Do not display anything else
Irina-Kira [14]

Answer:

cout<<count;

Explanation:

The above statement is in c++ which display the value of count .The cout statement is used in c++ to print the value on console .

Following are the code in c++

#include <iostream> // header file

using namespace std; // namespace

int main() // main method

{

   int count=90; // count variable

   cout<<count; // display the value of count

   return 0;

}

Output:

90

In this program we have declared a count variable of integer type which is initialized by 90 and finally displays the value of count on the screen.

4 0
3 years ago
what is the molarity of a solution prepared by dissolving 15.0g of sodium hydroxide in enough water to make a total of 225 ml of
Reptile [31]

Answer:

1.6666 g/mol = 1 \frac{2}{3} g/mol

Explanation:

Molar mass of NaOH= 23+16+1 =40g/mol

Mols in 15g = 15/40 mol

If this was dissolved in 225ml of water molarity of the solution is

\frac{15}{40} ÷ 225 x 1000 = 1.6666 g/mol = 1 \frac{2}{3} g/mol

5 0
3 years ago
When a number gets assigned to a variable that already has a value __________?
Aleksandr-060686 [28]
A already assigned variable cannot be assigned twice You can make the variable change over to a new one or call a whole new one to assign one without a value or It might be possible to do v=n (v is variable and n is number / value)
3 0
3 years ago
Five programs are currently being run in a computer. Program 1 is using 10 GiB of RAM, program 2 is using 5 GiB of RAM, program
muminat

Virtual memory could be used to allow program 5 to access RAM without any of the data from the other four programs being lost because it is one that tend to allows the system to give all of the process its own memory space that is said to be  isolated from the other processes.

<h3>How is virtual memory used instead of RAM?</h3>

A system is known to make use of a virtual memory and this is one that tend to make use of a section of the hard drive to act like the RAM.

With the use of virtual memory, a system can be able to load bigger or a lot of programs running at the same time, and this is one that tends to hep one to work as if it has more space, without having to buy more RAM.

Therefore, Virtual memory could be used to allow program 5 to access RAM without any of the data from the other four programs being lost because it is one that tend to allows the system to give all of the process its own memory space that is said to be  isolated from the other processes.

Learn more about virtual memory from

brainly.com/question/13088640

#SPJ1

6 0
1 year ago
What describes the time it takes a packet to move from one designated on the network to
lana66690 [7]

Answer:Latency

Explanation:Latency is the measurement that describes about the (RTT)round trip time of a packet. RTT consist of the function of the packet travelling from the source to destination and then back again to the source port. If there is any kind of disturbance in the path of transmission then it causes the loss in the data packet.Therefore, the correct option is latency.

5 0
3 years ago
Other questions:
  • There are two types of short-term memory: one type is involved in the input and storage of new information, the other type of sh
    9·1 answer
  • In the source-code file containing a class's member function definitions, each member function definition must be tied to the cl
    13·1 answer
  • You should use the longest possible shutter speed for all firework photographs.
    8·2 answers
  • What did I do wrong? May you please correct it for me...I was also looking on how to delay when it prints. Like when it prints a
    9·1 answer
  • In Microsoft word you can access the blank command from the mini toolbar
    7·1 answer
  • Difference between switch case and if else statement.​
    11·1 answer
  • Which of the following guidelines about the subject line of e-mail messages is most appropriate?
    15·2 answers
  • Does anyone know what episode Hinata threatens useless sakura?
    9·1 answer
  • Describe accessibility in Windows 7 ​
    13·1 answer
  • In a relational database, information is organized into tables in which each row represents a(n ) ________. Group of answer choi
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!