{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw_09_vasani

# hw_09_vasani - Homework#9 Vasani Radhika 6817 I promise...

This preview shows pages 1–3. Sign up to view the full content.

Homework #9 November 10, 2010 Vasani, Radhika 6817 I promise that I did all the work by myself without help from other students. I understand that violating this promise will result in automatic 0 point and penalties as severe as expulsion from UTA. Radhika Vasani Problem 1 Program listing #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { FILE *fp; int count; fp=fopen("counter.dat", "r"); fscanf(fp, "%d", &count); fclose(fp); count=count+1; fp=fopen("counter.dat", "w"); fprintf(fp, "%d", count); fclose(fp); printf("Content-type: text/html\n\n"); printf("<title>Seconds since 1970</title>"); printf("<font color=red><center><h1>Second Counter<br><h1></center></font>"); printf("<h3>Since January 1, 1970,<font color=blue>%d</font> seconds havepassed.<h3><p>",time(NULL)); printf("You are the <font color=blue>%d</font>-th visitor.<p><hr>",count); printf("<h5>Hit F5 (Function key 5) to refresh<h5>"); return 0; } Link http://omega.uta.edu/~rpv6817/cgi-bin/hw09.cgi

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

View Full Document
Problem 2 HTML Source listing <html> This program computes real root(s) of the following quadratic equation.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern