Create the class SavingsAccount. Use the static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance, indicating the amount the saver [More]
Java Software Solutions – Foundation of Program Design Java Programming Challenge 3-7: Calculating Sine, Cosine, and Tan using Math and Random classes Write an app that generates a random integer in the range of 20 [More]
C# Programming Challenge: Grid Boxes With Numbers Create grid boxes with numbers inside them, using System.Drawing (C# Graphics Class, C# Font Class, C# Color Class, C# Pen Class and more) and WinForms. Learning to code? [More]
C# Programming Challenge: Searching and Sorting Part 3 (C# linear & binary search, C# bubble and selection sort) We continue with coding C# bubble sort and C# selection sort methods. Create a class named “SearchCount”. [More]
C# How to Program Programming Challenge 8.34: Polling Program (using C# Arrays, Loops, 2D arrays, If statements) Write a simple polling program that allows users to rate five social-consciousness issues from 1 (least important) to [More]
Implement the Shape hierarchy. Each TwoDimensionalShape should contain read-only abstract property Area to calculate the area of the two-dimensional shape. Each ThreeDimensionalShape should have read-only abstract properties Area and Volume to calculate the surface area [More]
Java Software Solutions: Foundation of Program Design Using Classes and Objects Programming Challenge 4.2 – Creating Dog Class (Java Classes, Objects, Methods) Design and implement a class called Dog that contains instance data that represents [More]
Write an inheritance hierarchy for classes Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Make the hierarchy as deep (i.e., as many levels) as possible. Specify the instance [More]
Using C# recursion, write C# recursive method Power(base, exponent) that, when called, returns ‘base exponent’ For example, Power(3, 4) = 3 * 3 *3*3. Assume that exponent is an integer greater than or equal to [More]
Design and implement an application that prints verses of the “Twelve Days of Christmas” song. Use a switch statement in the loop to control which line gets printed. Use a separate switch statement to put [More]
We are going to edit the app to create a multi-file program using C++ functions. Multi-File Program If you decide on the multi-file program approach, follow the directions in your compiler manuals to create a [More]
C# How to Program: Creating Bar Chart Using C# Nested Loops and C# If Statements – PART 2 of 2 Write a program that uses array and that allows any number of values between 0 [More]