It's UWAweek 19

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 23 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful
7:38pm Sun 6th Aug, Jie W.

Hi Sir Experienced weird result for the lab 1 first task (coin change).

Run the program in my laptop, enter 75 as purchase value in cents. The result as follow:

The change is 25 cents. 1 x 20c. 3414288 x 10c. 1 x 5c. 1873589824 x 2c. 1 x 1c. which is not what i expected.

Run the program via online C language tool. The result as follow:

The change is 25 cents. 1 x 20c. 1 x 5c. which is what i expected.

why is that happened? my laptop is Macbook air M2 chip. did download the xcode by following the instruction.



This article has 2 attachments:

 

 

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy