{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
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
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern