Recent content by jnbankwa

  1. J

    Solve Function & Array Exercise for Students

    I've done it and i will have a new one this afternoon and I will post it of the forum if I stuck
  2. J

    Solve Function & Array Exercise for Students

    please tell me what wrong ? // ExtendedtestA.cpp : Defines the entry point for the application. // Author: // ID: // Version: // Date: 6 Jun 2011 // Description: #include "stdafx.h" #include "gwin.h" using namespace std; const int NUMSTUDENTS = 11;int ID [NUMSTUDENTS] = {10001, 10011, 10012...
  3. J

    Solve Function & Array Exercise for Students

    that my main problem and i cannot solve it
  4. J

    Solve Function & Array Exercise for Students

    // ExtendedtestA.cpp : Defines the entry point for the application. // Author: // ID: // Version: // Date: 6 Jun 2011 // Description: #include "stdafx.h" #include "gwin.h" using namespace std; const int NUMSTUDENTS = 11; /*int ID [NUMSTUDENTS] = {10001, 10011, 10012, 1004, 1005, 1006, 1007...
  5. J

    Solve Function & Array Exercise for Students

    Gwin.clear(); marks marks[NUMSTUDENTS]; Gwin.setPenColour(BLACK); char ave[80]; sprintf(ave, "Average is %d %f", listing[n].Score.WhoMarked/11, Marks); Gwin.writeText(10, y, ave); Gwin.writeInt(0,0,"Marker marked giving an average of "); Gwin.writeInt(10,0,"Marker marked...
  6. J

    Solve Function & Array Exercise for Students

    it still not working GWindow Gwin; ifstream file("marks.txt"); // Clear the Gwin window double ID=0; int y=20; int i=0; double Score=-1; int Whomarked; char most; Gwin.clear(); marks marks[NUMSTUDENTS]; Gwin.setPenColour(BLACK); char ave[80]; sprintf(ave, "Average is %d %f"...
  7. J

    Solve Function & Array Exercise for Students

    the new program is below but the same problem // ExtendedtestA.cpp : Defines the entry point for the application. // Author: // ID: // Version: // Date: 6 Jun 2011 // Description: #include "stdafx.h" #include "gwin.h" using namespace std; const int NUMSTUDENTS = 11; /*int ID [NUMSTUDENTS] =...
  8. J

    Solve Function & Array Exercise for Students

    If you want to use a textbook example and convert it to Gwin, the rule is: if the textbook says cout<<X; you look at the TYPE of the variable X, and replace this line by a call to Gwin.writeInt(X); or Gwin.writeDouble(X); or Gwin.writeText(X); depending on what the type was int or...
  9. J

    Solve Function & Array Exercise for Students

    // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include <iostream> #include "gwin.h" #pragma once #include "resource.h"
  10. J

    Solve Function & Array Exercise for Students

    Dear from the exercises written in 3 part I have done until the last part which I have to display in one line a Marker 1 Marked ( Mark) giving an average of ( average) and in the second line the same Market 2 Marked ( mark) giving an average of ( average) ...
  11. J

    Solve Function & Array Exercise for Students

    I need to display in Gwin.writeText(10,10,"Marker 1 Marked giving an average of "); Gwin.writeText(10,30,"Market 2 Marked giving an average of "); Marker 1 Marked giving an average of...
  12. J

    Solve Function & Array Exercise for Students

    these codes has been written myself but is not working properly
  13. J

    Solve Function & Array Exercise for Students

    Dear please read this exercise and the codes and tells me what wrong with you codes Part 1 You are provided with a skeleton program, where the data is stored in arrays. Your task is to add the code that will do the following: Examine the data in the arrays. The data shows the results from...
Back
Top