<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DU8AQ3s5eyp7ImA9WhdVE0g.&quot;'><id>tag:blogger.com,1999:blog-6805928598626588182</id><updated>2011-09-18T20:27:22.523+05:30</updated><title>All about programming.....</title><subtitle type='html'>Welcome to my blog where I put, from time to time, some posts regarding topics connected with programming (ActiveX,C,C++,Java,Jsp,JScript,Html,Struts,Hibernate, Spring etc), computers in general,my projects ans many usefull books . It would be based on what I am currently doing, what I have discovered, what I have created, etc.. I hope you enjoy it. Please, leave some comment if you find any post useful, interesting, etc

You can also find a Course material for computer science,</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ajeet-allprograms.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://ajeet-allprograms.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ajeet Bhatnagar</name><uri>http://www.blogger.com/profile/00857712845493433405</uri><email>ajeet.bhatnagar@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;C0QCRX8yfSp7ImA9WhdVE0g.&quot;'><id>tag:blogger.com,1999:blog-6805928598626588182.post-1246377614855444845</id><published>2011-09-18T18:31:00.001+05:30</published><updated>2011-09-18T18:39:24.195+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-18T18:39:24.195+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Computer Science'/><title>Computer Science</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
You Can find hear very&amp;nbsp;useful&amp;nbsp;Video&amp;nbsp;course&amp;nbsp;from IIT&amp;nbsp;Lecturers.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-mLfnY3p3uoc/TnXrXlrlBjI/AAAAAAAAAS4/JZQ3RD3819w/s1600/logos.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="89" src="http://2.bp.blogspot.com/-mLfnY3p3uoc/TnXrXlrlBjI/AAAAAAAAAS4/JZQ3RD3819w/s640/logos.gif" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.&amp;nbsp;&lt;a href="http://ajeet-allprograms.blogspot.com/p/computer-science.html"&gt;Computer Science&amp;nbsp;Course&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Some other course&amp;nbsp;coming&amp;nbsp;soon. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-yUQUlmf-ufU/TnXtbsb3K6I/AAAAAAAAAS8/lkYnXCMYoxY/s1600/milestone2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="185" src="http://4.bp.blogspot.com/-yUQUlmf-ufU/TnXtbsb3K6I/AAAAAAAAAS8/lkYnXCMYoxY/s640/milestone2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6805928598626588182-1246377614855444845?l=ajeet-allprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajeet-allprograms.blogspot.com/feeds/1246377614855444845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajeet-allprograms.blogspot.com/2011/09/computer-science.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/1246377614855444845?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/1246377614855444845?v=2'/><link rel='alternate' type='text/html' href='http://ajeet-allprograms.blogspot.com/2011/09/computer-science.html' title='Computer Science'/><author><name>Ajeet Bhatnagar</name><uri>http://www.blogger.com/profile/00857712845493433405</uri><email>ajeet.bhatnagar@gmail.com</email></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-mLfnY3p3uoc/TnXrXlrlBjI/AAAAAAAAAS4/JZQ3RD3819w/s72-c/logos.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;AkYNSH89fCp7ImA9WhdVE0k.&quot;'><id>tag:blogger.com,1999:blog-6805928598626588182.post-8769649425011207051</id><published>2011-09-18T16:14:00.000+05:30</published><updated>2011-09-18T17:46:39.164+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-18T17:46:39.164+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title>I welcome you to the world of Java Technologies.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 class="entry-title" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; color: black; font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 21px; font-weight: bold; line-height: 1.3em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;






Online video tutorials portal for Java, J2EE, STRUTS, SPRING, HIBERNATE..&lt;/h2&gt;
&lt;div class="entry-content" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 12px; vertical-align: baseline;"&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 24px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
I welcome you to the world of Java Technologies.&amp;nbsp;&lt;a href="http://ajeet-allprograms.blogspot.com/"&gt;http://ajeet-allprograms.blogspot.com/&lt;/a&gt;&amp;nbsp;is there to help you learn the Java based technologies and help you grow in the career.&lt;/div&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 24px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
Watch the tutorials given below and do not forget to share the same with your friends.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Georgia, 'Bitstream Charter', serif; font-size: 16px; line-height: 24px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; list-style-image: initial; list-style-position: initial; list-style-type: decimal; margin-bottom: 24px; margin-left: 1.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;a href="http://ajeet-allprograms.blogspot.com/p/core-java-tutorial.html" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Core Java Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;a href="http://ajeet-allprograms.blogspot.com/p/jsps-and-servlets.html" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Jsps and Servlets Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;a href="http://java9s.com/struts-2-mvc-tutorial" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Struts 2 framework tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;a href="http://ajeet-allprograms.blogspot.com/p/spring-framework.html" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Spring Framework Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;a href="http://ajeet-allprograms.blogspot.com/p/hibernate.html" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066cc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Hibernate Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 24px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 24px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6805928598626588182-8769649425011207051?l=ajeet-allprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajeet-allprograms.blogspot.com/feeds/8769649425011207051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajeet-allprograms.blogspot.com/2011/09/online-video-tutorials-portal-for-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/8769649425011207051?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/8769649425011207051?v=2'/><link rel='alternate' type='text/html' href='http://ajeet-allprograms.blogspot.com/2011/09/online-video-tutorials-portal-for-java.html' title='I welcome you to the world of Java Technologies.'/><author><name>Ajeet Bhatnagar</name><uri>http://www.blogger.com/profile/00857712845493433405</uri><email>ajeet.bhatnagar@gmail.com</email></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CEAHRXcyfyp7ImA9WhdVE0k.&quot;'><id>tag:blogger.com,1999:blog-6805928598626588182.post-2132358705360517501</id><published>2010-01-14T15:05:00.001+05:30</published><updated>2011-09-18T16:15:34.997+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-18T16:15:34.997+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='c++ tutorial(1 day)'/><title>c++ Student information sysytem</title><content type='html'>&lt;span style="color: green;"&gt;DEVELOPMENT OF A &lt;strong class="highlight"&gt;C++&lt;/strong&gt;  &lt;strong class="highlight"&gt;PROGRAM&lt;/strong&gt; FOR A &lt;strong class="highlight"&gt;STUDENT&lt;/strong&gt; RECORD &lt;strong class="highlight"&gt;SYSTEM&lt;/strong&gt;.&lt;br /&gt;
You are to develop a &lt;strong class="highlight"&gt;student&lt;/strong&gt; record &lt;strong class="highlight"&gt;system&lt;/strong&gt;  that makes use of the &lt;strong class="highlight"&gt;C++&lt;/strong&gt; structure and  classes.&lt;br /&gt;
&lt;br /&gt;
The record &lt;strong class="highlight"&gt;system&lt;/strong&gt; is to be used  to hold information about your assignment results for year one of your  degree.This will allow you to keep track of your marks for each unit of  study,display the total for each unit as you progress,display the marks you need  to obtain to pass the unit,as well as your average mark for the year.&lt;br /&gt;
&lt;br /&gt;
The  units of study,the type of assessment, and its percentage of the overall unit  mark are given &lt;strong class="highlight"&gt;in&lt;/strong&gt; the table  below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UNIT TYPE OF ASSESSMENT AND&lt;br /&gt;
WEIGHTING&lt;br /&gt;
CG037 TEST1(10%)  EXAM(90%)&lt;br /&gt;
EN213 ASSIGNMENT1(35%)  &lt;br /&gt;
ASSIGNMENT2(45%)&lt;br /&gt;
ASSIGNMENT3(20%)&lt;br /&gt;
EN214 ASSIGNMENT1(10%)  &lt;br /&gt;
ASSIGNMENT2(15%)&lt;br /&gt;
EXAM(75%)&lt;br /&gt;
EN 215 ASSIGNMENT1(10%)  &lt;br /&gt;
ASSIGNMENT2(20%)&lt;br /&gt;
EXAM(70%)&lt;br /&gt;
&lt;br /&gt;
EN 219 ASSIGNMENT1(5%)  &lt;br /&gt;
ASSIGNMENT2(5%)&lt;br /&gt;
ASSIGNMENT3(15%)&lt;br /&gt;
EXAM(80%)&lt;br /&gt;
EN 216 ASSIGNMENT1(5%)  &lt;br /&gt;
ASSIGNMENT2(5%)&lt;br /&gt;
ASSIGNMENT3(10%)&lt;br /&gt;
ASSIGNMENT4(5%)&lt;br /&gt;
EXAM(75%)&lt;br /&gt;
EN  217 ASSIGNMENT1(20%)  &lt;br /&gt;
ASSIGNMENT2(10%)&lt;br /&gt;
ASSIGNMENT3(10%)&lt;br /&gt;
EXAM(60%)&lt;br /&gt;
&lt;br /&gt;
Your &lt;strong class="highlight"&gt;program&lt;/strong&gt; should use a base class for member functions  to:&lt;br /&gt;
-Enter Data into the database.&lt;br /&gt;
-Display a chosen unit  marks(i.e.,assignment,lab,exam)with required marks needed to obtain a pass(40%)  based on the marks obtained so far.&lt;br /&gt;
-Display all units with total marks to  date &lt;strong class="highlight"&gt;in&lt;/strong&gt; descending order,together with the  average overall mark for the year.&lt;br /&gt;
&lt;br /&gt;
An additional derived class should be  created to:&lt;br /&gt;
-Save data &lt;strong class="highlight"&gt;in&lt;/strong&gt; the database to a  file.&lt;br /&gt;
-Read data for the database from a file into the &lt;strong class="highlight"&gt;program&lt;/strong&gt;.&lt;br /&gt;
-Remove a particular data from the database  and replace it with new data.&lt;br /&gt;
For the display of marks needed to pass you  need to work out what would be required.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i have an idea of how  to do it. but im not sure if it will work.. Here is a sample code i have  done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codeblock"&gt; &lt;div class="spaced"&gt; &lt;div style="float: right; margin-right: 10px;"&gt;&lt;a class="thickbox" href="http://www.daniweb.com/forums/misc-explaincode.html?TB_iframe=true&amp;amp;height=400&amp;amp;width=680" jquery1263461722578="22" jquery1263461814187="3" target="_blank" title="Help with Code Tags"&gt;Help with Code  Tags&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;strong class="highlight"&gt;c++&lt;/strong&gt; Syntax&lt;/strong&gt; (&lt;a href="http://www.daniweb.com/forums/thread185556.html#" onclick="toggle('code2022029534'); return false;"&gt;Toggle Plain  Text&lt;/a&gt;) &lt;/div&gt;&lt;/div&gt;&lt;div class="ad_notxt"&gt; &lt;div id="code2022029534_1"&gt;&lt;pre class="code"&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="co2"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="co2"&gt;#include&lt;fstream.h&gt;&lt;/fstream.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="kw4"&gt;struct&lt;/span&gt; Course&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;char&lt;/span&gt; CourseName &lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;10&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;char&lt;/span&gt; Assignment &lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;20&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;double&lt;/span&gt; mark;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;int&lt;/span&gt; enterChoice&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;void&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; inputmarks&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;FILE&lt;/span&gt; * &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; updatemarks&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;FILE&lt;/span&gt; * &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; displaysubjectmarks&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;FILE&lt;/span&gt; * &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; displayall&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;FILE&lt;/span&gt; * &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;int&lt;/span&gt; main&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw4"&gt;FILE&lt;/span&gt; *cfPtr;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;int&lt;/span&gt; choice;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw1"&gt;if&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;cfPtr = &lt;span class="kw3"&gt;fopen&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"database.dat"&lt;/span&gt;, &lt;span class="st0"&gt;"r+"&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt; == &lt;span class="kw2"&gt;NULL&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;printf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;"File could not be opened. &lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw1"&gt;else&lt;/span&gt; &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw1"&gt;while&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt; choice = enterChoice&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt; != &lt;span class="nu0"&gt;5&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;switch&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;choice&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;case&lt;/span&gt; &lt;span class="nu0"&gt;1&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    inputmarks&lt;span class="br0"&gt;(&lt;/span&gt; cfPtr &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;    &lt;span class="kw2"&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;case&lt;/span&gt; &lt;span class="nu0"&gt;2&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    updatemarks&lt;span class="br0"&gt;(&lt;/span&gt; cfPtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    &lt;span class="kw2"&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;case&lt;/span&gt; &lt;span class="nu0"&gt;3&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;    displaysubjectmarks&lt;span class="br0"&gt;(&lt;/span&gt;cfPtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    &lt;span class="kw2"&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;case&lt;/span&gt; &lt;span class="nu0"&gt;4&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    displayall&lt;span class="br0"&gt;(&lt;/span&gt;cfPtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    &lt;span class="kw2"&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;fclose&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;cfPtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw1"&gt;return&lt;/span&gt; &lt;span class="nu0"&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; inputmarks&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="kw4"&gt;FILE&lt;/span&gt; *readPtr&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw4"&gt;FILE&lt;/span&gt; *writePtr;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;struct&lt;/span&gt; course NewCourse = &lt;span class="br0"&gt;{&lt;/span&gt; &lt;span class="nu0"&gt;0&lt;/span&gt;, &lt;span class="st0"&gt;""&lt;/span&gt;, &lt;span class="st0"&gt;""&lt;/span&gt;, &lt;span class="nu0"&gt;0.0&lt;/span&gt;&lt;span class="br0"&gt;}&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw1"&gt;if&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="br0"&gt;(&lt;/span&gt;writePtr = &lt;span class="kw3"&gt;fopen&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"database.dat"&lt;/span&gt;, &lt;span class="st0"&gt;"w"&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt; ==&lt;span class="kw2"&gt;NULL&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;printf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"File could not be opened. &lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw1"&gt;else&lt;/span&gt; &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;rewind&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;readPtr&lt;span class="br0"&gt;)&lt;/span&gt;; &lt;span class="kw3"&gt;printf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"&lt;span class="es0"&gt;\n&lt;/span&gt;Choose a subject:&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;     &lt;span class="st0"&gt;"1 - CG037&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"2 - EN213&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"3 - EN214&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;  &lt;span class="st0"&gt;"4 - EN215&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"5 - EN216&lt;span class="es0"&gt;\n&lt;/span&gt; "&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;fprintf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;writePtr, &lt;span class="st0"&gt;"%-6s%-16s%-11s%10s&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;   &lt;span class="st0"&gt;""&lt;/span&gt;, &lt;span class="st0"&gt;"Last Name"&lt;/span&gt;, &lt;span class="st0"&gt;"First Name"&lt;/span&gt;, &lt;span class="st0"&gt;"Balance"&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw1"&gt;while&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;!&lt;span class="kw3"&gt;feof&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;readPtr&lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt; &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw3"&gt;fread&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &amp;amp;NewCourse, &lt;span class="kw3"&gt;sizeof&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;struct&lt;/span&gt; course&lt;span class="br0"&gt;)&lt;/span&gt;, &lt;span class="nu0"&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    readPtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="kw1"&gt;if&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;course.&lt;span class="me1"&gt;name&lt;/span&gt; !=&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    &lt;span class="kw3"&gt;fprintf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;writePtr, &lt;span class="st0"&gt;"%-6d%-16s%-11s%10.2f&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    course.&lt;span class="me1"&gt;name&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    &lt;span class="kw1"&gt;for&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="co1"&gt;//for loop to write assignments to database)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;   &lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;    course.&lt;span class="me1"&gt;assignment&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;i&lt;span class="br0"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;     course.&lt;span class="me1"&gt;mark&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;i&lt;span class="br0"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;   &lt;span class="br0"&gt;}&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="kw3"&gt;fclose&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;writePtr&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; updatemarks&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="kw4"&gt;FILE&lt;/span&gt; *fPtr&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="co1"&gt;//update code&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; displaysubjectmarks&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="kw4"&gt;FILE&lt;/span&gt; *fPtr&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="co1"&gt;//code&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;void&lt;/span&gt; displayall&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;FILE&lt;/span&gt; *fPtr&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="co1"&gt;//Code&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="kw4"&gt;int&lt;/span&gt; enterChoice&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="kw4"&gt;void&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw4"&gt;int&lt;/span&gt; menuChoice;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw3"&gt;printf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"&lt;span class="es0"&gt;\n&lt;/span&gt;Enter your choice&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"1 - input marks&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt;  &lt;span class="st0"&gt;"2 - update marks&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"3 - display subject marks&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"4 - display all&lt;span class="es0"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;  &lt;span class="st0"&gt;"5 - end &lt;strong class="highlight"&gt;program&lt;/strong&gt;&lt;span class="es0"&gt;\n&lt;/span&gt;? "&lt;/span&gt; &lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt; &lt;span class="kw3"&gt;scanf&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt; &lt;span class="st0"&gt;"%d"&lt;/span&gt;, &amp;amp;menuChoice&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li2"&gt;&lt;div class="de2"&gt; &lt;span class="kw1"&gt;return&lt;/span&gt; menuChoice;&lt;/div&gt;&lt;/li&gt;
&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div id="code2022029534_2" style="display: none;"&gt;&lt;textarea class="code" jquery1263461722578="12" readonly="" style="height: 258px;" wrap="off"&gt;#include&amp;lt;stdio.h&amp;gt; #include&amp;lt;fstream.h&amp;gt;  struct Course{  char CourseName [10];  char Assignment [20];  double mark; };  int enterChoice(void); void inputmarks(FILE * ); void updatemarks(FILE * ); void displaysubjectmarks(FILE * ); void displayall(FILE * );   int main() {  FILE *cfPtr;  int choice;   if( (cfPtr = fopen( "database.dat", "r+") ) == NULL)   printf("File could not be opened. \n");  else {   while( ( choice = enterChoice() ) != 5) {    switch (choice) {    case 1:     inputmarks( cfPtr );     break;    case 2:     updatemarks( cfPtr);     break;    case 3:     displaysubjectmarks(cfPtr);     break;    case 4:     displayall(cfPtr);     break;                 }   }   fclose(cfPtr);  }  return 0; }  void inputmarks( FILE *readPtr) {  FILE *writePtr;  struct course NewCourse = { 0, "", "", 0.0};   if( (writePtr = fopen( "database.dat", "w") ) ==NULL)   printf( "File could not be opened. \n");  else {   rewind(readPtr); printf( "\nChoose a subject:\n"      "1 - CG037\n"   "2 - EN213\n"   "3 - EN214\n"   "4 - EN215\n"   "5 - EN216\n " );      fprintf(writePtr, "%-6s%-16s%-11s%10s\n",    "", "Last Name", "First Name", "Balance" );    while(!feof(readPtr) ) {    fread( &amp;amp;NewCourse, sizeof(struct course), 1,     readPtr);     if(course.name !=0)     fprintf(writePtr, "%-6d%-16s%-11s%10.2f\n",     course.name     for(//for loop to write assignments to database)    {     course.assignment[i]      course.mark[i]    });   }    fclose(writePtr);  } } void updatemarks( FILE *fPtr) {  //update code }  void displaysubjectmarks( FILE *fPtr) {   //code }  void displayall(FILE *fPtr) {   //Code }  int enterChoice(void) {  int menuChoice;   printf( "\nEnter your choice\n"   "1 - input marks\n"   "2 - update marks\n"   "3 - display subject marks\n"   "4 - display all\n"   "5 - end program\n? " );  scanf( "%d", &amp;amp;menuChoice);  return menuChoice; }&lt;/textarea&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
i dont know if i should use two structures one  for subject and one for assignment, each subject has more than two assignments.  Or i should just use arrays. The problem with using an array is that the  assignment number differ for each subjects, e.g CG037 has only one assignment  and exam whil EN213 has three assignments and no exam at all..&lt;br /&gt;
&lt;br /&gt;
I will  keep working on it and post more code later..&amp;nbsp;&lt;!-- google_ad_section_end --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6805928598626588182-2132358705360517501?l=ajeet-allprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajeet-allprograms.blogspot.com/feeds/2132358705360517501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajeet-allprograms.blogspot.com/2010/01/c-student-information-sysytem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/2132358705360517501?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/2132358705360517501?v=2'/><link rel='alternate' type='text/html' href='http://ajeet-allprograms.blogspot.com/2010/01/c-student-information-sysytem.html' title='c++ Student information sysytem'/><author><name>Ajeet Bhatnagar</name><uri>http://www.blogger.com/profile/00857712845493433405</uri><email>ajeet.bhatnagar@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkUCRX85fip7ImA9WxBQEUQ.&quot;'><id>tag:blogger.com,1999:blog-6805928598626588182.post-8016309181352211292</id><published>2010-01-11T10:47:00.000+05:30</published><updated>2010-01-11T11:41:04.126+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-11T11:41:04.126+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='c++ tutorial(1 day)'/><title>About..Dennis MacAlistair Ritchie and Bjarne Stroustrup</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="font-size: x-large;"&gt;Dennis M. Ritchie&lt;br /&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;a href="http://4.bp.blogspot.com/_Iud15B5WZqo/S0q3Knb9VGI/AAAAAAAAAHE/drIjvZypyAU/s1600-h/untitled.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://4.bp.blogspot.com/_Iud15B5WZqo/S0q3Knb9VGI/AAAAAAAAAHE/drIjvZypyAU/s200/untitled.bmp" /&gt;&lt;/a&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Creator of C Language&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size: x-small;"&gt;Courtesy: Lucent Technologies&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dennis MacAlistair Ritchie (username: dmr, born September 9, 1941) is an American computer scientist notable for his influence on C and other programming languages, and on operating systems such as Multics and Unix. He received the Turing Award in 1983 and the National Medal of Technology in 1998. Ritchie was the head of Lucent Technologies System Software Research Department when he retired in 2007.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Background&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Born in Bronxville, New York, Ritchie graduated from Harvard University with degrees in physics and applied mathematics. In 1967, he began working at the Bell Labs Computing Sciences Research Center.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;C and Unix&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Ritchie is best known as the creator of the C programming language and a key developer of the Unix operating system, and as co-author of the definitive book on C, The C Programming Language, commonly referred to as K&amp;amp;R (in reference to the authors Kernighan and Ritchie).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ritchie's invention of C and his role in the development of Unix alongside Ken Thompson have placed him as an important pioneer of modern computing. The C language is still widely used today in application and operating system development, and its influence is seen in most modern programming languages. Unix has also been influential, establishing concepts and principles that are now well-established precepts of computing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ritchie has said that creating the C language "looked like a good thing to do" and that anyone else in the same place at the same time would have done the same thing, though Bell Labs colleague Bjarne Stroustrup, developer of C++, said that "if Dennis had decided to spend that decade on esoteric math, Unix would have been stillborn."&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Following the success of Unix, Ritchie continued research into operating systems and programming languages with contributions to the Plan 9 and Inferno operating systems and the Limbo programming language.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;strong&gt;Awards&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Iud15B5WZqo/S0q6Xor7QaI/AAAAAAAAAHM/qAOkaZyqGmw/s1600-h/250px-Medal_lg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://2.bp.blogspot.com/_Iud15B5WZqo/S0q6Xor7QaI/AAAAAAAAAHM/qAOkaZyqGmw/s320/250px-Medal_lg.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Thompson (left) and Ritchie (center) receiving the National Medal of Technology from President Clinton . Turing Award&lt;br /&gt;
&lt;br /&gt;
In 1983, Ritchie and Ken Thompson jointly received the Turing Award for their development of generic operating systems theory and specifically for the implementation of the UNIX operating system. Ritchie's Turing Award lecture was titled "Reflections on Software Research".&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;strong&gt;National Medal of Technology&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
On April 27, 1999, Thompson and Ritchie jointly received the 1998 National Medal of Technology from President Bill Clinton for co-inventing the UNIX operating system and the C programming language which together have led to enormous advances in computer hardware, software, and networking systems and stimulated growth of an entire industry, thereby enhancing American leadership in the Information Age.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Nicknames&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Dennis Ritchie is often referred to as "dmr" (his Bell Labs email address) in technical discussion groups&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style="color: black; font-size: x-large;"&gt;Bjarne Stroustrup&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border="0" ps="true" src="http://2.bp.blogspot.com/_Iud15B5WZqo/S0q7DdFYsLI/AAAAAAAAAHU/pjbYowYnxBM/s320/BjarneStroustrup.jpg" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;Born December 30, 1950 (1950-12-30) (age 59)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: large;"&gt;Aarhus, Denmark&lt;br /&gt;
Occupation College of Engineering Chair in Computer Science Professor, Texas A&amp;amp;M University&lt;br /&gt;
Known for The creation of C++ &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Bjarne Stroustrup born December 30, 1950 in Århus, Denmark) is a computer scientist, most notable for the creation and the development of the widely used C++ programming language. He is currently Professor and holder of the College of Engineering Chair in Computer Science at the Texas A&amp;amp;M University. A rough English attempt at pronunciation of his name would be "B-yarn-uh Strof-stwoop". As said himself, most native English speakers get 'Bjarne' right, but he often has to say 'Stroo-strup' or 'Strow-strop' to be understood.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stroustrup began developing C++ in 1979 (then called "C with Classes"), and, in his own words, "invented C++, wrote its early definitions, and produced its first implementation... chose and formulated the design criteria for C++, designed all its major facilities, and was responsible for the processing of extension proposals in the C++ standards committee."Stroustrup also wrote what many consider to be the standard text for the language, The C++ Programming Language, which is now in its third edition. The text has been revised twice to reflect the evolution of the language and the work of the C++ standards committee.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;Education and academic work&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stroustrup has a master's degree in mathematics and computer science (1975) from the University of Aarhus, Denmark, and a Ph.D. in computer science (1979) from the University of Cambridge, England. He was the head of AT&amp;amp;T Lab's Large-scale Programming Research department, from its creation until late 2002. Stroustrup was elected member of the National Academy of Engineering in 2004. He is a Fellow of the ACM (1994) and an IEEE Fellow. He currently works at Texas A&amp;amp;M University as a Professor where he holds the College of Engineering Chair in Computer Science.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6805928598626588182-8016309181352211292?l=ajeet-allprograms.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajeet-allprograms.blogspot.com/feeds/8016309181352211292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ajeet-allprograms.blogspot.com/2010/01/setup-of-turbo-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/8016309181352211292?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6805928598626588182/posts/default/8016309181352211292?v=2'/><link rel='alternate' type='text/html' href='http://ajeet-allprograms.blogspot.com/2010/01/setup-of-turbo-c.html' title='About..Dennis MacAlistair Ritchie and Bjarne Stroustrup'/><author><name>Ajeet Bhatnagar</name><uri>http://www.blogger.com/profile/00857712845493433405</uri><email>ajeet.bhatnagar@gmail.com</email></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Iud15B5WZqo/S0q3Knb9VGI/AAAAAAAAAHE/drIjvZypyAU/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry></feed>