Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)

Answers

Answer 1
Answer:

Following are the program to convert height and weight values:

Program:

#include <iostream>//header file

using namespace std;

int main ()//main method

{

  double height, weight,h,w; //defining a doubale variable

  cout<<"Following are the converter of Weight and height: "<<endl;//print message

  cout<<"Enter the height in inches: ";//print message

  cin>>height;//input value

  cout<<"Enter the weight in stones: ";//print message

  cin>>weight;//input value

  h=height* 2.54;//converting height value into centimetres and holding its value in h variable

  w= weight* 6.364;//converting weight value into kilograms and holding its value in w variable

  cout<<"The converted height is "<<h<<" cm."<<endl;//printing the converted value

  cout<<"The converted weight is "<<w<<" kg."<<endl;//printing the converted value

  return 0;

}

Program Explanation:

  • Defining header file.
  • Defining the main method.
  • Inside the main method defining four double variables that are "height, weight, h, and w".
  • Inside this, the "height, weight" variable is used for input value is the from user-end, and "h, w" is used to convert height and weight value into centimeters and kilograms.
  • After converting the value using the print method that prints its values.

Output:

Please find the attached file.

Find out more information about the conversion here:

brainly.com/question/26240757

Answer 2
Answer: (Using python)

When running:

measure(the height you want to enter, the weight you want to enter)

When the input is printed you have to re-enter the data (couldn’t fix that)

It will print the conversions as a result

Related Questions

The recommended way to hold a loose hub on a fan is by
Rockstar Software, Inc., develops a new series of performance-related video games. This software is most likely protected by
What is network management?
A _______ is a three-terminal variable resistor that's often used to adjust motor speed.
A rectangular range of cells with headings to describe the cells' contents is referred to as a A. complex formula. B. sparkline. C. table. D. bar chart.

Computer design software requires __________________ to be used properly and successfully by architects.a. an understanding of details and construction
b. an eye for design and a knowledge of computer programming
c. a historical knowledge of architecture
d. architectural talent and an eye for design

Answers

The answer is letter B. An arrangement of directions and related documentation that instructs a PC or how to play out an undertaking or it can mean all the product on a PC, including the applications and the working framework. I hope the answer helps.
The option B is correct.Computer design software requires an eye for design and a knowledge of computer programming to be used properly and successfully by architects. If an architect does not know how to do the computer programming, he wont be able to apply his ideas on the computer software. Also, since he is an arhcitect, he must be having depth knowledge of the designs. Therefore, both design knowledge and computer knowledge is required for successful operation.

The ____ area on the status bar includes six commands as well as the result of the associated calculation on the right side of the menu.

Answers

The answer is "Autocalculate Area"

In Microsoft Office, especially in Excel, the autocalculate area can be found on the status bar. It has six commands namely: average, count, numerical count, minimum, maximum, and sum. The six commands are the result of the associated calculation.

The process of capturing moving images on film or a digital storage device is called?

Answers

Answer:

Cinematography

Explanation:

Cinematography is the blend of art and science and it deals with the recording of moving images on film or a digital storage device.

While making a movie some example of cinematography are the conclusions reached about lighting, camera filters, lenses etc.

What are the two types of formulas in excel

Answers

Hi Lisa


Complex and simple


I hope that's help :)

three analog signals, having bandwidths 1200 hz, 600 hz, and 600 hz are sampled at their respective nyquist rates, encoded with 12 bit words, and time division multiplexed. the bit rate for the multiplexed signal is

Answers

Answer:

57,600

Explanation:

The Nyquist rate for an analog signal is twice its bandwidth. Therefore, for the three signals:

Signal 1: 2 * 1200 Hz = 2400 samples per second

Signal 2: 2 * 600 Hz = 1200 samples per second

Signal 3: 2 * 600 Hz = 1200 samples per second

Since all three signals are sampled at their respective Nyquist rates and encoded with 12-bit words, we can calculate the bit rate for each signal:

Bit rate for Signal 1 = 2400 samples/second * 12 bits/sample = 28,800 bits/second

Bit rate for Signal 2 = 1200 samples/second * 12 bits/sample = 14,400 bits/second

Bit rate for Signal 3 = 1200 samples/second * 12 bits/sample = 14,400 bits/second

To find the total bit rate for the multiplexed signal, simply add up the bit rates of the three signals:

Total bit rate = Bit rate for Signal 1 + Bit rate for Signal 2 + Bit rate for Signal 3

Total bit rate = 28,800 bits/second + 14,400 bits/second + 14,400 bits/second

Total bit rate = 57,600 bits/second

So, the bit rate for the time-division multiplexed signal is 57,600 bits per second.

Final answer:

To determine the bit rate for the multiplexed analog signals, the combined bandwidth is multiplied by the Nyquist rate (2 times the bandwidth), and then by the number of bits in the chosen encoding method (12 bits). This results in a bit rate of 57,600 bits per second.

Explanation:

In this scenario, one of the keys is to be aware that the Nyquist rate for sampling an analog signal is twice the maximum frequency of the signal. Therefore, to find the bit rate for the multiplexed signal, we need to combine the three signals of 1200 Hz, 600 Hz, and 600 Hz. These add up to 2400 Hz, which would be the total bandwidth of the system.

The Nyquist rate equals 2 times the total bandwidth, resulting in 4800 samples per second. Given that the analog signals are encoded with 12-bit words, we multiply the total number of samples per second by 12 bits, which results in a bit rate for the multiplexed signal of 57,600 bits per second.

This is a common calculation in digital communication systems such as cell phone conversations and computer data transmission, where multiple signals are converted into binary, multiplexed, and transmitted over a shared medium.

Learn more about Bit Rate Calculation here:

brainly.com/question/31434111

#SPJ11

Computers in a peer to peer network belong to a

Answers

The correct answer for the question that is being presented above is this one: "B. workgroup." Computers in a peer to peer network belong to a workgroup.

Here are the following choices:
A. client-server group 
B. workgroup
C. personal area network
D. domain