Question
3.a.Imagine you have a box of asterisks (*). Write a psuedocode that will instruct a person to stack fifteen *s into the arrangement below. Write
3.a.Imagine you have a box of asterisks (*). Write a psuedocode that will instruct a person to stack fifteen *s into the arrangement below. Write the solution in a way that can be generalized easily to larger arrangements.
* ** *** **** *****
3.b Imagine you have a box of asterisks (*). Write a psuedocode that will instruct a person to stack nine *s into the arrangement below. Write the solution in a way that can be generalized easily to larger arrangements.
* *** *****
3.c. Its ok to make errors. In fact, the more errors you make, the quicker you will become an expert Java programmer. Each error can teach you an important lesson. So, lets make a few errors by experimenting with the HelloWorldClasswork1 program.
a) Try deleting the only semicolon. What happens when you compile? Fix the error.
b) Try deleting the left brace under the main method and compiling your program. What happens? Fix the error.
c) Delete the first left brace in the program. What happens when you compile? Fix the program.
d) Change main to Main. Does the program compile? What is the problem
3.d. Assume you are a bank manager and you want to teach the tellers in the bank how to count the paper currency in their teller drawers. Write pseudocode for a method of counting the money.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started