Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Homework 3 Solved - Programming for Applications in Geomatics | SURE 272, Assignments of Engineering

Material Type: Assignment; Class: Prog Applications in Geomatics; Subject: Surveying Engineering; University: Ferris State University; Term: Unknown 2005;

Typology: Assignments

Pre 2010

Uploaded on 08/07/2009

koofers-user-2t6-1
koofers-user-2t6-1 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
SURVEYING ENGINEERING DEPARTMENT
FERRIS STATE UNIVERSITY
SURE 272 – Geomatics Computations Winter 2005/06
Homework #3
For all program assignments in SURE 272, provide the following information with any
program:
Print your program code and the form image and attach to your report
Explain how your program works using a pseudo code or a flow chart
Create a new folder for each program \HMK3\PROG1\
Save your program project, executable and form on a floppy disk (different
folder for each program and attach the floppy disk to the report binder.
Declare all your variables in the general declaration section
Write comments in the body of your program to explain ever step
Attach the code to the assignment report.
1. Write a program that given a slope distance, and vertical angle, height of the
instrument, height of the reflector and elevation of base station computes the
elevation of the unknown point.
α
sinDRRHIElevElev Instrreflector
±
+
=
2. Write a program prompting the user to input:
Enter side a:
Enter angle A opposite side a in degrees:
Enter angle B:
The program should compute and display the following:
Angle C in degrees =
Side b =
Side c =
CB
A
c
a
b
ha
3. Answer question 5 (page 128) in the programming projects of the course textbook.
Note the algorithm converts the English units into inches and then use the INT
command (INT returns the first integer less than or equal to number)
Total inches = 63360 × miles + 36 × yards + 12 × feet + inches
Total meters = total inches/39.37
Kilometer = INT(meter/1000)
Meters = INT(Total_meters - (km * 1000))
Centimeter = ?
Add another button that converts from metric units to miles, feet and inches.
Total 1 mile = 5280 feet, 1 yard = 3 feet, 1 foot = 12 inch,
1 inch = 2.54 cm, 1 ft = 0.3048 m, 1 mile = 1.60934 km
pf2

Partial preview of the text

Download Homework 3 Solved - Programming for Applications in Geomatics | SURE 272 and more Assignments Engineering in PDF only on Docsity!

SURVEYING ENGINEERING DEPARTMENT

FERRIS STATE UNIVERSITY

SURE 272 – Geomatics Computations Winter 2005/ Homework #

For all program assignments in SURE 272, provide the following information with any program:

  • Print your program code and the form image and attach to your report
  • Explain how your program works using a pseudo code or a flow chart
  • Create a new folder for each program \HMK3\PROG1\
  • Save your program project, executable and form on a floppy disk (different folder for each program and attach the floppy disk to the report binder.
  • Declare all your variables in the general declaration section
  • Write comments in the body of your program to explain ever step
  • Attach the code to the assignment report.
  1. Write a program that given a slope distance, and vertical angle, height of the instrument, height of the reflector and elevation of base station computes the elevation of the unknown point.

Elev (^) reflector =ElevInstr+HI−RR±Dsin α

  1. Write a program prompting the user to input: Enter side a: Enter angle A opposite side a in degrees: Enter angle B: The program should compute and display the following: Angle C in degrees = Side b = Side c = (^) C B

A

c

a

b ha

  1. Answer question 5 (page 128) in the programming projects of the course textbook. Note the algorithm converts the English units into inches and then use the INT command (INT returns the first integer less than or equal to number) Total inches = 63360 × miles + 36 × yards + 12 × feet + inches Total meters = total inches/39. Kilometer = INT(meter/1000) Meters = INT(Total_meters - (km * 1000)) Centimeter =? Add another button that converts from metric units to miles, feet and inches. Total 1 mile = 5280 feet, 1 yard = 3 feet, 1 foot = 12 inch, 1 inch = 2.54 cm, 1 ft = 0.3048 m, 1 mile = 1.60934 km
  1. Write the following functions: Convert an angle in DDD.MMSSs to radians Convert an angle in radians to DDD.MMSSs Convert an angle in decimal degrees to DDD.MMSSs Convert an angle in DDD.MMSSs to decimal degrees Note: 128º 54’ 45’’ = 128 + 54/60 + 45/3600 = 128. Or backward 128.9125º = 128º + Fix(0.9125 * 60)’ + ((0.9125 * 60) - Fix(0.9125 * 60)) * 60
  2. Given point i and point j (Xi, Yi and Xj, Yj ), where point j is in the first quadrant if point i is the origin. Write a program with two functions: - A function that compute the distance between the points - A function that compute the azimuth between the points - Display the azimuth in DDD.MMSSs, in decimal degrees and in radians using the functions that you wrote in question 3.

SURE 272 Geomatics Computations Homework #3 Page 2