Welcome! Log In Create A New Profile

Advanced

2009 may june exam

Posted by MOKAUTU 
Announcements Last Post
Announcement : Programming Students at UNISA School of Computing 06/19/2019 02:01PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
2009 may june exam
April 23, 2010 01:12AM
To every thats been going thru the pass papers can u plz help me out with question 4c, 5b and 6b. lets share solutions Im willing to post my solution thus far
Re: 2009 may june exam
April 23, 2010 03:39PM
#include <iostream>
#include <string>
using namespace std;

string ChangeSentence(string senP)
{
string word = senP;
int position;
position = word.find("he"winking smiley;
word.replace(position, word.find("he"winking smiley, "theo"winking smiley;


return word;
}
int main( )
{
string sen;
cout <<"Type in a sentence : " << endl;
getline(cin, sen, '\n');
sen = ChangeSentence(sen);
cout <<" Changed sentence : " << endl;
cout << sen << endl;
system("pause"winking smiley;
return 0;
}
Re: 2009 may june exam
May 06, 2010 02:33PM
Section B


Question 1.

switch (customerType)
{
case 'S':
discount = amount * 10/100;
break;
case 'D':
discount = amount * 12/100;
break;
case 'P':
discount = amount * 15/100;
break;
case 'O':
if (amount >= 200)
discount = amount * 10/100;
else
discount = 0;
break;
}
finalAmount = amount - discount;
cout << " The final amount after discount is " << finalAmount << endl;
Anonymous User
Re: 2009 may june exam
May 07, 2010 12:21PM
At last am in,"Prince",i have been on da looking class 4 so long
Sorry, only registered users may post in this forum.

Click here to login