project - /* Name - Carlos Moran email - cemoran@uh.edu ECE...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/***************************************************** Name - Carlos Moran email - cemoran@uh.edu ECE 3331 Computer Project # 1 Semester Spring 2009 **************************************************** Purpose - To calculate and identify the area of triangles **************************************************** Data Files triangle.out - output file to which results will be written*/ #include <stdio.h> #include <math.h> #include <stdlib.h> main( ) { /*********************Setting the variables*********************/ double a, b, c, long_side, sid_1, sid_2, sid_3, trig, trap_area; int isc, sc, eq, risc, rig, count ; isc=0; sc=0; eq=0; risc=0; rig=0; count=0; FILE *fin,*fout; fout = fopen("triangles.out","w"); fprintf(fout,"Carlos Moran\n"); fprintf(fout,"ECE 3331 Computer Project # 1\n"); fprintf(fout,"Semester Spring 2009\n\n"); while ( count <1){ /********************* Performing task 1 ***********************************/ /*This loop will ask the user to put the side of the triangle until the criteria is matched */ fprintf(fout,"******************Task 1****************** \n\n"); /*This loop will ask the user to put the side of the triangle until the criteria is matched */
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

project - /* Name - Carlos Moran email - cemoran@uh.edu ECE...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online