100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
COS1511 Assignment 2 (COMPLETE ANSWERS) 2024 (735127) - DUE 13 May 2024 €2,62
In winkelwagen

Tentamen (uitwerkingen)

COS1511 Assignment 2 (COMPLETE ANSWERS) 2024 (735127) - DUE 13 May 2024

 3 keer verkocht
  • Vak
  • Instelling
  • Boek

COS1511 Assignment 2 (COMPLETE ANSWERS) 2024 (735127) - DUE 13 May 2024 ;100 % TRUSTED workings, explanations and solutions. For assistance call or W.h.a.t.s.a.p.p us on ...(.+.2.5.4.7.7.9.5.4.0.1.3.2)........... Assignment 2: 2024 SUBMISSION: Electronically via myUnisa Please note that we a...

[Meer zien]

Voorbeeld 3 van de 24  pagina's

  • 22 april 2024
  • 24
  • 2023/2024
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
avatar-seller
COS1511
ASSIGNMENT 2 2024

, COS1511/102/0/2024




ASSIGNMENT 2 2024

Introduction to Programming I
COS1511

Year:2024


School of Computing


This tutorial letter contains important information
about your module.




BARCODE




Open Rubric

, COS1511/102/0/2024

Assignment 2: 2024 SUBMISSION:


Electronically via myUnisa


Please note that we automatically give five days extension for this assignment. It will be to
your own advantage to check after a few days whether the assignment has been registered on
the system. If you have not completed the assignment by the extension date, submit whatever
you have completed – you will get marks for everything that you have done.

DUE DATE 13 May 2024

UNIQUE NUMBER 735127
EXTENSION There is no extension for this assignment



TUTORIAL MATTER Study Guide, Lessons 17 – 23

CONTRIBUTION WEIGHT TO
YEAR MARK
QUESTIONS Practical exercises



If myUnisa is off-line when you want to submit the assignment, you need not contact us,
because we will be aware of it. Simply submit it as soon as myUnisa is available again.
Question 1
Write function headers for the functions described below:

(i) The function check has two parameters. The first parameter should be an integer number and the
second parameter a floating point number. The function returns no value.

(ii) The function mult has two floating point numbers as parameters and returns the result of
multiplying them.

(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its
calling function.

(iv) The function countChar returns the number of occurrences of a character in a string, both provided as
parameters.


Question 2

Find the error(s) in each of the following program segments and explain how the error(s) can be
corrected:

(i) int function1()
{

cout << "Inside function function1 " <<

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, creditcard of je Stuvia-tegoed en je bent klaar. Geen abonnement nodig.

Direct to-the-point

Direct to-the-point

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper LIBRARYpro. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €2,62. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 68175 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Begin nu gratis
€2,62  3x  verkocht
  • (0)
In winkelwagen
Toegevoegd