Algorithm To Convert Weight Into Pounds-Programming For Aeronautical Engineering And Sciences-Assignment, Exercises of Computer Engineering and Programming

This assignment is for Computer Programming course. It was assigned by Prof. Anurag Negi at KIIT University. It includes: Unified, Ada95, Weight, Compile, Copy, Algorithm, Program, Implement

Typology: Exercises

2011/2012

Uploaded on 07/20/2012

savitri_85
savitri_85 🇮🇳

4

(5)

70 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Problem C3. (Unified Computers and programming)
1. Compile Program 3.8 (Distance_With_Errors.adb, Feldman-Koffman, Page 107)
into a listing file. Turn in a hard copy of the listing file.
2. Correct the errors in Program 3.8. Turn in a hard copy of the listing of the
modified program and an electronic copy of your code.
3. Write an algorithm to
a. Accept the weight of the user (in kilograms)
b. Compute the equivalent weight in pounds
c. Display
weight_in_kg” kg = “weight_in_pounds” lb
where weight_in_kg is the entered value and weight_in_pounds
is the computed value.
Hint:
I. Write down the mathematical formula that you would use. The
algorithm will flow from that.
II. Identify inputs and outputs
III. 1 pound = 0.453592 kilograms.
4. Write an Ada95 program to implement your algorithm from question 3 above.
Turn in a hard copy of your program listing and an electronic copy of your code.
docsity.com

Partial preview of the text

Download Algorithm To Convert Weight Into Pounds-Programming For Aeronautical Engineering And Sciences-Assignment and more Exercises Computer Engineering and Programming in PDF only on Docsity!

Problem C3. (Unified Computers and programming)

  1. Compile Program 3.8 (Distance_With_Errors.adb, Feldman-Koffman, Page 107) into a listing file. Turn in a hard copy of the listing file.
  2. Correct the errors in Program 3.8. Turn in a hard copy of the listing of the modified program and an electronic copy of your code.
  3. Write an algorithm to a. Accept the weight of the user (in kilograms) b. Compute the equivalent weight in pounds c. Display weight_in_kg” kg = “weight_in_pounds” lb

where weight_in_kg is the entered value and weight_in_pounds is the computed value. Hint : I. Write down the mathematical formula that you would use. The algorithm will flow from that. II. Identify inputs and outputs III. 1 pound = 0.453592 kilograms.

  1. Write an Ada95 program to implement your algorithm from question 3 above. Turn in a hard copy of your program listing and an electronic copy of your code.

docsity.com