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
ki77a [65]
3 years ago
8

You are given two variables, already declared and assigned values, one of type double, named totalWeight, containing the weight

of a shipment, and the other of type int, named quantity, containing the number of items in the shipment. Write an expression that calculates the weight of one item.
Mathematics
1 answer:
Alchen [17]3 years ago
8 0

Answer:

double singleWeight = totalWeight/quantity;

Step-by-step explanation:

Considering you already have two different declared and assigned variables, in C language you would have the following lines:

#include <stdio.h>

int main()

{

   double totalWeight = 5.2 ;

   int quantity = 2;

   double singleWeight = totalWeight/quantity;

   

   // Displays operation      

   printf("%f / %d = %f", totalWeight, quantity, singleWeight);

   return 0;

}

It is very important to keep in mind that the type of variable of singleWeight is double due to the expecting number is the result of the division where the dividend is double too.

You might be interested in
What number lies between 7x8/10=
zzz [600]
The number that lies between that is 7
3 0
3 years ago
Read 2 more answers
Solve the following:<br><img src="https://tex.z-dn.net/?f=4x%20%2B%203%20%3D%207" id="TexFormula1" title="4x + 3 = 7" alt="4x +
Ne4ueva [31]

Answer:

x=1

Step-by-step explanation:

4x+3=7

7-3 = 4

4x=4

4/4 = 1

Hope this helps! :)

4 0
3 years ago
Read 2 more answers
A trucks height is 3 meters 35 centimeters. how tall is the truck in millimeters
amid [387]
3 meters = 300 cm
300 cm + 35 cm = 335cm
Each cm is 10mm


So 335 cm = 3350 mm
5 0
3 years ago
Find the equation of a line that is parallel to the line -3x+2y=10 and goes through the point (0,7).
Delvig [45]

Answer:

  3x -2y = -14

Step-by-step explanation:

The parallel line will have a new constant that can be found by substituting the given point for x and y.

  -3x +2y = -3(0) +2(7) = 14

An equation for the parallel line is ...

  -3x +2y = 14

__

In standard form, the leading coefficient is positive, so the standard form equation is ...

  3x -2y = -14

6 0
3 years ago
Need help in math I am struggling need help with my homework
lord [1]
Please get a tutor instead of going on brainly.com, and using the space needed for other people who have a legitimate question to have an answer. Other than that, what are you struggling with?
7 0
3 years ago
Other questions:
  • On her pogo stick lula made 24 hops in 30 seconds at this rate how many hops in 50 seconds
    12·2 answers
  • Jai and Kim need to collect cans of for for a food drive jai collects (65/100) of the total cans needed, and Kim collects (2/10)
    10·1 answer
  • Need help on this one
    11·1 answer
  • the area of a square mirror is 256 inches squared. A Rectagular mirror has a width the same as the square mirror`s width.Its len
    11·1 answer
  • Please help!!! I’m failing with a 38 in math rn! I’ll make you brainlest. Thank you
    14·1 answer
  • Ciro made a sign in the shape of a trapezoid. The parallel sides measured 18 inches and 35 inches. The distance between these si
    6·1 answer
  • Sasha deposited $600 in a simple-interest savings account.In one year the value of the account increased to $621.By what percent
    6·2 answers
  • The question is in the picture
    15·2 answers
  • Solve the equations 25 - 3x = 40. Write the problem on the sketch pad then solve the problem algebraically. I need the answer an
    9·1 answer
  • How to divide polynomials using synthetic division
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!