100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COS1512 ASSIGNMENT 3 2024 SOLUTIONS

Rating
-
Sold
1
Pages
32
Grade
A+
Uploaded on
07-08-2024
Written in
2024/2025

This document contains the solutions for COS1512 assignment 3, all outputs are available as illustrated, there are comments on the codes to let you know what the the code does, for separate compilation, there's a heading that illustrates which files the code is for. The data documents are included as screenshots Good luck

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
August 7, 2024
Number of pages
32
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COS151
2
ASSIGNMENT 3
SOLUTIONS

, 2024
QUESTION 1
#include <iostream>

#include <string>

using namespace std;

class Student

{

private:

int quiz1;

int quiz2;

int midtermExam;

int finalExam;

string name;

public:



Student();

void setQuiz1(int q);

void setQuiz2(int q);

void setMidTerm(int m);

void setFinalExam(int f);

void setName(string n);

int getQuiz1()const;

int getQuiz2()const;

int getMidTerm()const;

int getFinalExam()const;

string getName()const;

float getAverage()const;



};

Student::Student()

{

quiz1=0;

quiz2=0;

midtermExam=0;

finalExam=0;

name="";

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ThinkLab University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
171
Member since
2 year
Number of followers
118
Documents
107
Last sold
1 month ago
ThinkLab Tutorials

A group of tutors that upload notes, exam elaborations, exam packs, assignment solutions and free packs. Unlock the door to academic excellence with our top-notch document uploads! It's meticulously prepared with foolproof solutions that guarantee your success. Trust in our reliable resources and conquer any challenge that comes your way. Don't settle for anything less than perfection in your studies. Our reliable document boasts 100% correct solutions, meticulously reviewed for your success. Say goodbye to uncertainty and hello to unwavering confidence! Giving the best services as the modules we are uploading are considered. If you have any questions, you're welcome to message us directly.

Read more Read less
3,9

19 reviews

5
7
4
5
3
6
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions