Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
1 this chapter contains several recommendations regarding variables and constants that make programs easier to read and
1 how do you get the first character of a string the last character how do you remove the first character the last
the cashregister class has an unfortunate limitation it is closely tied to the coin system in the united states and
write a program that translates a number into the closest letter grade for example the number 28 which might have been
change the implementation of the gettax method in the taxreturn class by setting a variable rate1limit depending on the
the original us income tax of 1913 was quite simple the tax wasbull 1 percent on the first 50000bull 2 percent on the
a year with 366 days is called a leap year a year is a leap year if it is divisible by 4 for example 1980 however since
1 what is an infinite loop on your computer how can you terminate a program that executes an infinite loop2 give three
write a program that reads in the hourly wage of an employee then ask how many hours the employee worked in the past
write a program that draws a circle with radius 100 and center 200 200 ask the user to specify the x- and y-coordinates
implement a combination lock class a combination lock has a dial with 26 positions labeled a z the dial needs to be
get the instructions for last years form 1040 from httpwwwirsustreasgov find the tax brackets that were used last year
1 implement a loop that prompts a user to enter a number between 1 and 10 giving three tries to get it right2 sometimes
credit card number check the last digit of a credit card number is the check digit which protects against transcription
1 what are nested loops give an example where a nested loop is typically used2 explain the differences between these
1 how would you use a random number generator to simulate the drawing of a playing card2 what is an off-by-one error
write a program that reads a sequence of integers into an array and that computes the alternating sum of all elements
write a program that produces random permutations of the numbers 1 to 10 to generate a random permutation you need to
1 define the terms regression testing and test suite2 what is the debugging phenomenon known as cycling what can you do
implement a class cloud that contains an array list of point2ddouble objects support methodsdraw each point as a tiny
implement the following algorithm to construct magic n-by-n2 squares it works only if n is odd place a 1 in the middle
in this assignment you will model the game of bulgarian solitaire the game starts with 45 cards they need not be
write a program that generates a sequence of 20 random die tosses and that prints the die values marking only the
consider the following problem descriptionemployees receive their biweekly paychecks they are paid their hourly rates
suppose a vending machine contains products and users insert coins into the vending machine to purchase products draw a