SUBJECT:C PROGRAMMING  QUESTION: Q3) Write a C program to input the weight of two objects in kg. Calculate the total weight and display the result in kg and grams as shown in the sample output: Sample Dialog Format: Enter the weights of two objects in kg : 3     4 Total weight in kg is 7 kg and grams is 7000 gms

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.5: A Case Study: Solving Quadratic Equations
Problem 1E
icon
Related questions
Question

SUBJECT:C PROGRAMMING 

QUESTION:

Q3) Write a C program to input the weight of two objects in kg. Calculate the total weight and display the result in kg and grams as shown in the sample output:

Sample Dialog Format:
Enter the weights of two objects in kg : 3     4
Total weight in kg is 7 kg and grams is 7000 gms

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr