id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

gaurav.gupta@mq.edu.au

First of all, thanks to Nick for creating this site and opening it up to teachers like myself. It is much appreciated!

Next, if you feel these questions SIGNIFICANTLY helped you with your learning of programming, please email me with a brief statement of appreciation at gaurav.gupta@mq.edu.au which I may use for teaching grants.

In preferences (https://codingbat.com/pref), under "Teaching Share", put my email address (gaurav.gupta@mq.edu.au) so I can use your progress graphs to write further useful questions.

-----

It is imperative that you have attended and/or watched the relevant lectures before attempting these problems, otherwise, it's like trying to back a cake without any recipe.

-----

Use the feedback from the tests and trace through your code line-by-line to see the cause.

-----

I suggest splitting one complex statement into several once to make it easier to debug.

So,

instead of:

boolean alpha = ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'));

use:

boolean uppercase = (ch >= 'A' && ch <= 'Z');
boolean lowercase = (ch >= 'a' && ch <= 'z');
boolean alpha = uppercase || lowercase;

For any questions about these problems, contact me at my email address.

-----

I advise that you tackle the problem individually, but have a study group that you can go to, if you get stuck.

-----

You can visit the drop-in centre (https://students.mq.edu.au/study/faculties/science-and-engineering/drop-in-centre) to get help with any of these problems since they are not assessed.

The suggested order of tackling these problems is:

COMP1000/WCOM1000 Core:

1. variables
2. conditions
3. loops
4. arrays
5. strings - Very useful if you will also do COMP1010/WCOM1010. Lecture notes at https://softwaretechnologymq.github.io/Strings

COMP1000/WCOM1000 Optional:

1. bitwise
2. delegation

COMP1010/WCOM1010 Core:

1. recursion

Unfortunately, codingbat doesn't, yet, support classes (including ArrayLists), otherwise we would be able to have questions for nearly all COMP1010 topics.


Custom Pages


Authoring docs

Copyright Nick Parlante 2017 - privacy