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

Assignment II Questions - 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/08/2009

koofers-user-jda
koofers-user-jda 🇺🇸

4

(2)

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 Homework #2
W
in
te
r 2
00
5
/0
6
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 \HMK2\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 to compute the hypotenuse of a right triangle ( 22 bac += ) such
that the form looks similar to that in the following figure. When editing the different
properties, make sure that the text size is 14 in all cases. You can keep the default
fault and style if you desire.
Object Property Value
Form1 Text Hypotenuse of a Right Triangle
Name lblA Label1
Text a =
Name lblB Label2
Text b =
Name lblHypotenuse Label3
Text Hypotenuse =
Name txtA Text1
Text 4
Name txtB Text2
Text 3
Name txtHypotenuse
Text (blank)
Text3
ReadOnly True
Name btnCalculate Button1
Text Calculate
Name cmdEnd Button2
Text Quit
pf2

Partial preview of the text

Download Assignment II Questions - 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 Homework # Winter 2 005 /0 6

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 \HMK2\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 to compute the hypotenuse of a right triangle ( c = a^2 +b^2 ) such that the form looks similar to that in the following figure. When editing the different properties, make sure that the text size is 14 in all cases. You can keep the default fault and style if you desire.

Object Property Value Form1 Text Hypotenuse of a Right Triangle Label1 Name lblA Text a = Label2 Name lblB Text b = Label3 Name lblHypotenuse Text Hypotenuse = Text1 Name txtA Text 4 Text2 Name txtB Text 3 Name txtHypotenuse Text (blank)

Text

ReadOnly True Button1 Name btnCalculate Text Calculate Button2 Name cmdEnd Text Quit

  1. Write a program to compute the area of a circle ( ) where π = 3.141593. The

form should look similar to that shown below. Font size for all text should be 12. As before, you can accept the default font and style.

A =πr^2

Object Property Value Form1 Text Area of Circle Label1 Name lblInstruct Text Enter the radius in the box below and press GO to compute the area Name lblRadius Label2 TxtAlign MiddleCenter Text Radius Name lblArea Label3 TxtAlign MiddleCenter Text Area Text1 Name txtRadius Text Text2 Name txtArea Text Button1 Name cmdGo Text GO Button2 Name cmdEnd Text End

SURE 272 Geomatics Computations Homework #2 Page 2