PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49

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 the 3 articles in this topic
Showing 3 of 919 articles.
Currently 4 other people reading this forum.


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported

Login to reply

👍?
helpful
1:28pm Thu 4th Aug, ANONYMOUS

Hi guys, I just wanted some clarity around the first question in the refreshers task. If we wanted to do it in c, we would use the scanf() function right? And whatever the users enters, we go from there to list the minimum coins and denominations? Thank you


SVG not supported

Login to reply

👍?
helpful
5:40pm Thu 4th Aug, ANONYMOUS

I got user input from the arguments passed when invoking the program without using the scanf() function (like how rotate.c works). But using scanf() should be also a possible approach.


SVG not supported

Login to reply

👍?
helpful
5:35am Fri 5th Aug, Christopher M.

The focus of the question is really 'just' about Boolean conditions and loops.

To get the value of change to be given, as you suggest, we could use scanf() to read it from the keyboard, or get it from a command-line argument (in both cases needing to convert the value in the array of characters to an integer), OR you can simply initialise a variable in your code to a value: int change = 18;

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  1:17AM Sep 14 2022
Privacy policy