Chat with us, powered by LiveChat Programming Principles | Writedemy

Programming Principles

Programming Principles

ENG TECH 1PR3 Programming Principles
Assignment 01
Be sure to assign all input to appropriate variables. Do NOT use the control name directly in the
calculations. Instead, assign the value of a control to a variable and use the variable in the
calculations. Assign the result of the calculations to an appropriate form control. Ensure the
forms are well-behaved. A form must contain an Exit button, sensible tabbing and alt-shortcuts
where appropriate.
This assignment comprises 2 VB applications. Create each as a separate project.
VB Application 1
Create a VB application that will perform the following tasks.
a. The user will enter the number of seconds in the textbox.
b. Store the number of seconds in a minute as a constant and use it in the calculations.
c. Store the number of seconds in an hour in a constant and use it in the calculations.
d. Store the number of seconds in a day in a constant and use it in the calculations.
e. Calculate the number of Days, hours, minutes and seconds. For instance, if the user enters
95646 seconds, the Time Calculator will display the results:
1 day, 2 hours, 34 minutes, 6 seconds
f. Display the days, hours, minutes and seconds result in a label control as shown above.
g. Add a Clear button that will clear the textbox, and the label control.
h. Validate user input for nonnumeric and seconds >= 0.
VB Application 2
Consider the integration of ( ) 0.3 2 3 5 3 2 f x  x  x  x  in the interval [0, 3] :
 
3
0
Sum f (x) dx . —— (1)
The analytical solution to this problem is Sumanalytical = 16.575.
Numerically we can integrate the above function by writing the
integral in eq(1) as
Sumnumerical = 


N
i
f xi x
1
( ) , ———- (2)
where x is a user defined step size and
x
N



3 0
.
The error in the above calculation is
error = Sumanalytical – Sumnumerical ———— (3)
Develop an application that:
(1) Solve eq(1) numerically by implementing eq(2). The application will require a user
defined step-size that satisfies 0  x  0.1.
(2) Calculate the error defined in eq(3).
(3) Display the above results.
Submitting the Lab
In order for your Lab/Assignment to be eligible for grading you must submit the following:
 The code must contain your Full Name and Student ID in a comment block at the top of
each form module.
 A .zip compressed file containing the entire VB.NET project to AVENUE. Use .zip
compression only (no RAR, TAR etc). If there is more than one project, create a separate
.zip file for each individual project. Be sure to add all project files and folders to the .zip
file. If the compressed file is missing files/folders such that the project will not open or
run, the lab/assignment will receive a grade of 0.
 A Word .doc (or .docx) file containing:
o A cover page that includes your name, Student ID, and MAC ID
o The form code (event and other subprocedures and functions) including
programmer’s block
o Screen captures of the form showing sample input and output.
Upload the Word file and .zip file(s) separately to the appropriate assignment drop-box on
AVENUE.
Labs and assignments will not be accepted for evaluation if any of the above items are omitted
and will result in a grade of 0.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order