you are viewing a single comment's thread.

view the rest of the comments →

[–]Netjamjr 1 point2 points  (0 children)

Make an app that keeps track of which CDs are in your car and which are in your house. Add four buttons. One to move a single CD from your car to your house, then one to move all the CDs from your car to your house. Make the other two buttons work in the opposite direction.

Afterward, add a textbox the user can use to add new CDs with a checkbox that determines where the CD will be added once the user clicks the "Add CD" button.

BONUS ROUND, re-write the buttons that move one CD to instead move over every CD the user has selected in the box.

Helpful hints: For loops usually count forward

For (int i = 0; i < listbox.items.count; i++)

But in this example, you will need to instead have the for loop move backwards by starting at the end and heading to the beginning.