Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
The following function is supposed to return true if any element of the array x has the value 0 and false otherwise. It has an error. What is this error?
If X is a non-negative random variable with E(X) = ?, then Markov's inequality tells us that for every a, P(X ? a) ? ?/a. As we saw in class, this bound is sometimes very loose. In this problem we'l
What is cloud computing? How far back can you find the first usage of the term? Give examples of typical applications of cloud computing.
The original program is supposed to ask the user to enter 3 grades for 5 students, and then calculate the average for each student and for each exam.
Write a program that calculates a savings accounts yearly savings amount. The savings account pays an interest rate of 3% yearly.
Simulate tossing a coin 10,000 times and record how many tails and heads you get. Make two runs as with the dice. Again accumulate the number of heads and tails in an array. Your for loops would go
If A<=m B and B is a regular language, does that imply that A is a regular language? Why or why not?
Write a program that prompts for a pattern of 6 dice and then counts the number of throw necessary to get that pattern to appear.
Using slash notation, what is the network address of the first network?
Create a Visual Basic program that creates a bill for an automobile repair shop. The shop bills customers at the rate of $35 per hour for labor. Parts and supplies are subject to a 5% sales tax.
What values are assigned to x when k has values of 1,2,3,4, and 10?
Describe the types of information available to a program when using the KeyListener interface.
Write a few lines of code to create a timer in Java which fires an ActionEvent every 150 msec. Assume the existence of a TimerEventHandler class which needs to respond to timer events.
What interface does an application need to use if it wants to get updates on the current position of the mouse cursor as the mouse is being moved? How does the program get the x,y coordinates of the
What window events can a program handle? Explain the difference between the WindowListener interface and the WindowAdapter.
What is the paintComponent method? How is it used in Java graphics? How does a program intentionally cause the paintComponent method to execute?
Given a graphics object g, write a few lines of code to have that graphics object draw a magenta circle (not filled in) that has a diameter of 200 pixels.
Describe the graphical coordinate system in Java. Where is the origin? What units apply to the x,y coordinates?
How would you create a Monospaced font of point size 20 that is bold? Give the Java statement needed.
How do you specify that the color orange will be used as fill when using the Graphics class? Give the Java statement needed.
Your program will generate a 5-digit lottery number, and then it will prompt the user to enter a guess in the form of a 5-digit number. Your program should then determine how many numbers.
Prompt the user two STRING inputs of time instances in the format of: YYYY/MM/DD HH:NN:SS. Use string manipulations to figure out the units (year, minute, etc.). The output is the total elapsed time
Design and implement an application that computes and prints the mean and standard deviation of a list of integers x1 through xn. Read the value of n, as well as the integers, from the user.
Redraw the ERD for this new situation using two entity types, and the redraw it again using one entity type. Which of these two versions do you prefer and why?
Section Number is an integer (such as 1 or 2) that distringuishes one section from another for the same course but does not uniquely identify a section. How did you model SECTION? Why did you choose