Introduction to Programming 2

In order to clear up some confusion around question 3 of Assignment 2, please change it as follows: Include a function to normalize the Fraction class so that, after normalization, the denominator is positive and the numerator and denominator are as small as possible. For example, after normalization 4/-8 would be presented the same as -1/2. Any sign is therefore carried by the numerator; keeby

Question from a student: I have a question about the 2nd question of assignment 02. How do you want me to implement the add, sub, mul, and div member functions? Must a.add(b) affect the nominator / denominator values of object a, or must it return a third object of type Fraction containing the result? Iâ€™ve also noticed that the formula for â€œProduct of two fractionsâ€ is incorrect. Mby

I have a question about the 2nd question of assignment 02. How do you want me to implement the add, sub, mul, and div member functions? Must a.add(b) affect the nominator / denominator values of object a, or must it return a third object of type Fraction containing the result? Iâ€™ve also noticed that the formula for â€œProduct of two fractionsâ€ is incorrect. Must I use correct one of (by

If you struggle to install the software or get it working, you may also contact the technical assistants at 012 429 8860/8861/8862/8863/8864/8865/8866/8867by

Dear Nomsa Please contact mr Elisha Ochola at ocholeo@unisa.ac.za to enquire about tutors in Johannesburg or anywhere else in SA. It is an excellent idea to join a study group or tutor classes. You should also write as many programs as possible (use the exercises at the end of each chapter for ideas). Pby

Dear E=MC2 The input is NOT the program code. You have to submit the input, the program code and the output. An example: you have to write a program to process a file containing students' marks in order to calculate an average mark for each student. In this case the input is the file containing the test marks, and the output would be the average mark for each student. Therefore youby

Dear Meshack Please phone me at 012 429 6857 to make an appointment to discuss these issues. Mrs MA Schoemanby

ALL COS112V students: PLEASE TAKE NOTE: Although you have received an sms from the University, announcing an extension for assignment 1, we strongly advise you to keep to the assignment due dates as given in the study programme, in order to enable you to work through all the material in time for the examination in May. Therefore, please try your best to keep to the due date for assignment 1 onby

Please note that section 6.4 in the 6th edition corresponds more or less to section 10.4 in the 7th edition. Mrs MA Schoeman Module leader for COS112Vby

A question from one of the students: The question ask that the constructor initialises the member variables with 9999 for highTemp and -9999 for lowTemp. To determine the highest and lowest temperature for the summary object it makes logically more sense if the member variables was initialised other way around (-9999 for highTemp and 9999 for lowTemp). Is this an error in the question? Can weby

A workshop will be offered for COS112V on the following dates: Pretoria: 26 and 27 May (the same workshop on both days - see Tut103 for which day to attend) Durban: 2 June Tutorial letter 103 contains the invitation, further detail, and the workshop material. This is available for download on both MyUnisa and osprey. You should also receive a paper copy within the next few weeks. Howeveby

Please note that question 3 (a) refers to the Review Questions on p 240 and question 3 (b) refers to the Problem Set on p 240. You do not have to do any of the Programming Exercises on p245.by

Dear Meshack The previous contributors gave very valid advice: practice, practice and do your programs with pen and paper before typing it in. Programming modules are really hard work and take a lot of dedication. Ideally you should spend some time programming every day, and plan to dedicate at least four hours per week (preferably more) to COS112 every week. Good luck! Mrs Schoemanby

Which version of Vista do you use?by

Dear Students, The year 2006 is probably one of the most challenging years in UnisaÃ¢â‚¬â„¢s existence. The realities of merging Technicon SA, Unisa and Vudec into the comprehensive mega-institution, the new Unisa with its more than 220 000 students, hit the administration and all their systems, including Registration, Production, Scheduling and Assignments, this year. The ripple effect of thby

Dear Students, The year 2006 is probably one of the most challenging years in UnisaÃ¢â‚¬â„¢s existence. The realities of merging Technicon SA, Unisa and Vudec into the comprehensive mega-institution, the new Unisa with its more than 220 000 students, hit the administration and all their systems, including Registration, Production, Scheduling and Assignments, this year. The ripple effect of thiby

Dear Students, The year 2006 is probably one of the most challenging years in UnisaÃ¢â‚¬â„¢s existence. The realities of merging Technicon SA, Unisa and Vudec into the comprehensive mega-institution, the new Unisa with its more than 220 000 students, hit the administration and all their systems, including Registration, Production, Scheduling and Assignments, this year. The ripple effect of thiby

Dear Students, The year 2006 is probably one of the most challenging years in UnisaÃ¢â‚¬â„¢s existence. The realities of merging Technicon SA, Unisa and Vudec into the comprehensive mega-institution, the new Unisa with its more than 220 000 students, hit the administration and all their systems, including Registration, Production, Scheduling and Assignments, this year. The ripple effect of thiby

To rectify this problem, first read in all the data and store it in an array, before you open the Ezwin window and start displaying.by

Error in example of output for Assignment 1. On page 10 of Tutorial letter 101 (COS112-V), the following possible output for the program you have to submit are given: The example is as follows.. Input date 1 (mm dd yyyy): 02 20 2000 Input date 2 (mm dd yyyy): 04 13 2002 The difference is: 786 days. Press any key to continue . . . Please note that the difference is actually 783 daysby

Tutorial letter 102 (Invitation to the COS112-V workshop) is available for downloading. This tutorial letter contains an invitation to a workshop with the following particulars: Pretoria (Students whose surnames start with the letters A to L, and T to Z) 16 May 2006 8h30 to 14h00 Microcomputer laboratory, 3rd floor, Theo van Wijk building Pretoria (Students whose surnames start with the lby

Dear Students To solve the "UNDEFINED `Fdollar-monstartup`" error, first try the following: On the Project menu, choose Project options, then on the Compiler tab, click on Code profiling and turn "Generate profiling info for analysis" off by clicking on the down arrow on the right and choosing "No". This option is also available under the general compiler settby