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
mixer [17]
3 years ago
6

Create a variable pounds to store weight in pounds. Convert this to kilograms and assign the result to a variable kilos. The con

version factor is 1 kilogram = 2.2 pounds.
Engineering
1 answer:
vodka [1.7K]3 years ago
5 0

Answer:

>>pounds=13.2

>>kilos=pounds/2.2

Explanation:

Using Matlab to write the program, consider at any time when the weight in pounds is 13.2 lb, this variable of weight is created in MATLAB by typing >>pounds=13.2. To convert it from lb to Kg, we simply divide it by 2.2 hence the second command to created is kilos. For this, the output of the program will be 6 Kg.

You might be interested in
C++ - Green Crud Fibonacci programThe following program is to be written with a loop. You are to write this program three times
Fynjy0 [20]

Answer:

Below is the required code:

Explanation:

Using for loop

#include <iostream>

using namespace std;

int main()

{

    //Initial crud size

    int init = 0;

    int newCrud;

    int next=0;

    //Number of days to simulate

    int no_days;

    int day;

    cout << "Enter initial amount of green crud: ";

    cin >> newCrud;

    cout << "Enter number of days to simulate: ";

    cin >> no_days;

    for (day = 10; day<=no_days; day++)

    {

         if (day % 10 == 0)

         {

             next = newCrud + init;

         }

             newCrud = init;

             init = next;

    }

    if (no_days < 5)

    cout << "\nCrud reproduce only after 5 days minimum.Hence the current amount is "

    << newCrud << " pounds.";

    else

    cout << "On day " << no_days << " you have " << init

    << " pounds of green crud." << endl;

    cout << "\nWould you like to continue? (y or n): ";

    cin >> ans;

         return 0;

}

Output:

         Enter initial amount of green crud: 5

         Enter number of days to simulate: 220

    On day 220 you have 10485760 pounds of green crud.

Using while loop

Program:

#include <iostream>

using namespace std;

int main()

{

    char ans='y';

    while (ans == 'Y' || ans == 'y')

    {

         //Initial crud size

         int init = 0;

         int newCrud;

         int next=0;

         //Number of days to simulate

         int no_days;

         int day;

         cout << "Enter initial amount of green crud:

         ";

         cin >> newCrud;

         cout << "Enter number of days to simulate:

         ";

         cin >> no_days;

         for (day = 10; day<=no_days; day++)

         {

             if (day % 10 == 0)

             {

                  next = newCrud + init;

             }

                  newCrud = init;

                  init = next;

         }

         if (no_days < 5)

         cout << "\nCrud reproduce only after 5 days

         minimum.Hence the current amount is "

         << newCrud << " pounds.";

         else

         cout << "On day " << no_days << " you have "

         << init

         << " pounds of green crud." << endl;

         cout << "\nWould you like to continue? (y or

         n): ";

         cin >> ans;

    }

    return 0;

}

Output:

Enter initial amount of green crud: 5

Enter number of days to simulate: 220

On day 220 you have 10485760 pounds of green crud.

Would you like to continue? (y or n): y

Enter initial amount of green crud: 5

Enter number of days to simulate: 225

On day 225 you have 10485760 pounds of green crud.

Using do while loop

Program:

#include <iostream>

using namespace std;

int main()

{

    char ans;

    do

    {

         //Initial crud size

         int init = 0;

         int newCrud;

         int next=0;

         //Number of days to simulate

         int no_days;

         int day;

         cout << "Enter initial amount of green crud: ";

         cin >> newCrud;

         cout << "Enter number of days to simulate: ";

         cin >> no_days;

         for (day = 10; day<=no_days; day++)

         {

             if (day % 10 == 0)

             {

                  next = newCrud + init;

             }

                  newCrud = init;

                  init = next;

         }

         if (no_days < 5)

         cout << "\nCrud reproduce only after 5 days

         minimum.Hence the current amount is "

         << newCrud << " pounds.";

         else

         

         cout << "On day " << no_days << " you have " <<

         init << " pounds of green crud." << endl;

         cout << "\nWould you like to continue? (y or n):

         ";

         cin >> ans;

    } while (ans == 'Y' || ans == 'y');

    return 0;

}

Output:

Enter initial amount of green crud: 5

Enter number of days to simulate: 220

On day 220 you have 10485760 pounds of green crud.

Would you like to continue? (y or n): y

Enter initial amount of green crud: 5

Enter number of days to simulate: 225

On day 225 you have 10485760 pounds of green crud.

7 0
3 years ago
Which term describes a Cloud provider allowing more than one company to share or rent the same server?
svlad2 [7]

Answer:

multitenancy is the term.

6 0
2 years ago
A) For Well A, provide a cross-section sketch that shows (i) ground elevation, (ii) casing height, (iii) depth to
Ad libitum [116K]
Don’t go on that file will give a virus! Sorry just looking out and I don’t know how to comment!
7 0
2 years ago
A company buys a machine for $12,000, which it agrees to pay for in five equal annual payments, beginning one year after the dat
Yuki888 [10]

Answer:

$7,778.35

Explanation:

At year 3, the final payment of the remaining balance is equal to the present worth P of the last three payments.

First, calculate the uniform payments A:

A = 12000(A/P, 4%, 5)

= 12000(0.2246) = 2695.2  (from the calculator)

Then take the last three payments as its own cash flow.

To calculate the new P:

P = 2695.2 + 2695.2(P/A, 4%, 2) = 2695.2 + 2695.2(1.886) = 7778.35

Therefore, the final payment is $7,778.35

4 0
3 years ago
What is the difference between a refrigeration cycle and a heat pump cycle?
sukhopar [10]

Answer:

In refrigeration cycle heat transfer from inside refrigeration

In heat pump cycle heat transfer from environment

Explanation:

heat cycle is mechanical process use for cool the temperature but

In refrigeration heat transfer from inside of refrigeration that decrease temperature of refrigerator and in heat pump it decrease temperature negligible as compare to refrigerator

5 0
3 years ago
Other questions:
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • a. Determine R for a series RC high-pass filter with a cutoff frequency (fc) of 8 kHz. Use a 100 nF capacitor. b. Draw the schem
    7·1 answer
  • The shaft is hollow from A to B and solid from B to C. The shaft has an outer diameter of 79 mm, and the thickness of the wall o
    6·1 answer
  • Water vapor at 5 bar, 320°C enters a turbine operating at steady state with a volumetric flow rate of 0.65 m3/s and expands adia
    6·1 answer
  • A steam power plant is represented as a heat engine operating between two thermal reservoirs at 800 K and 300 K. The temperature
    14·1 answer
  • Explain the importance of water quality in aquaculture business.
    8·2 answers
  • For RTK to work, what do we need besides two or more receivers collecting data from a sufficient number of satellites simultaneo
    11·1 answer
  • How buy airpods in my phone​
    7·2 answers
  • GOOD AFTERNOON GUYSS!! ​
    15·2 answers
  • The regulator is closed when the adjusting screw is turned in (clockwise).
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!