:.program.:
I would completely appreciate help with this. If you decide to help with one or both programs, thank you so much :)
Program 1:
Write a function that takes a 2-D array as input and marks that array as a checkerboard. Put an asterisk in the black squares and a blank in the white squares. Write a second function that prints the checkerboard on the screen.
Program 2:
Write a program that declares a bucket as an object. The program should perform the following operations:
1) Declare an object of type "bucket"
2) Use setGallonsSize() method to fill the bucket with 3.2 gallons of water
3) Use the getWeight() method to output the weight of the 3.2 gallons of water
Program 1:
Write a function that takes a 2-D array as input and marks that array as a checkerboard. Put an asterisk in the black squares and a blank in the white squares. Write a second function that prints the checkerboard on the screen.
Program 2:
Write a program that declares a bucket as an object. The program should perform the following operations:
1) Declare an object of type "bucket"
2) Use setGallonsSize() method to fill the bucket with 3.2 gallons of water
3) Use the getWeight() method to output the weight of the 3.2 gallons of water
