Other Programming & Computer Science Answers

Questions: 1 727

Answers by our Experts: 1 357

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

The BASIC programming language automatically assigns 11 element(s) to every _____-dimensional array

Three
two
one
Four
please help
Add the following 8-bit binary numbers
i. (01001110)2 + (00111100)2
ii. (10011101)2 + (10001111)2

Simplify the following Boolean function:
F = A’C + A’B + AB’C + BC, using K-map?
Consider the following implementation of a class Square:

public class Square
{
privateintsideLength;
privateint area; // Not a good idea

public Square(int length){
sideLength = length;
}
publicintgetArea(){
area = sideLength * sideLength;
return area;
}
}

Why is it not a good idea to introduce an instance variable for the area? Rewrite the class so that area is a local variable.
Develop a program that allows one to control the movement of a ball across the screen.
The ball can move on straight lines only, that is, up, down, left, or right. Pressing the
arrow keys on the keyboard changes the ball's location.
1. Develop a data representation for the current position of the ball. The position is
best described with a pair of positive integers.
2. Develop a data representation for velocity of the ball. You may assume that the
ball always moves exactly 10 pixels at a time but remember that velocity also
includes the direction of the movement.
3. Develop a data representation for the ball.
4. The function ball-image is written for you. It consumes (the representation of)
a ball and produces a rectangle of 300 x 300 pixels with a red dot (diameter 10
pixels) placed at the ball's position.
5. Design the function ball-next, which consumes (the representation of) a ball
and create a ball that represents where it will be after one "tick."
6. Design a function ball-change, which consumes a ball
Explain how an industry may benefit from the knowledge and use of linear programming
Suppose we have a problem that currently takes 100,000 hours of computer time using current technology to solve. Which of the following would give us the solution first:
(1) replace the algorithm used in the current solution by one that runs twice as fast and run it on the current technology, or
(2) wait 3 years, assuming Moore’s Law doubles the performance of a computer every 18 months, and find the solution using the current algorithm with the new technology?
Shopping Spree is a leading departmental store in Shanghai. The store has a number of regular customers who purchase bulk items. The store also conducts regular feedback sessions to analyze customer satisfaction levels. Chen, the Customer Analyst of Shopping Spree, has to make the ER diagram to represent the preceding situation, and then to map the ER diagram to the corresponding tables. Help Chen to do the same.
I need pseudocode for a program that continuously accepts data about text messages until a sentinel value is entered, and displays details only about customers who send more than 100 text messages.
1. Draw the overall use-case diagram considering the scnarios
2. Draw the Use case brief description - with ore and post conditions
3. Identify the major Business classes – it’s data members and methods
4. Identify the relationship between the classes and represent the classes using CRC
5. Draw the contents and transitions of the screens in UI
A merchant shipping company wishes to use a computer database to help with its operations. There are three distinct areas in which such assistance is desired.
First, it is required that details of the company fleet be recorded. The fleet comprises a number of types of ship: cargo vessels have a deadweight (cargo capacity), class of cargo carried (e.g. dry, container, grain) and number of onboard loading derricks; oil tankers also have a deadweight, and a class of petroleum for which they are equipped; and passenger vessels have a maximum passenger capacity for each of “first” and “tourist” classes, and a number of staterooms. All ships have a crew, which comprises, a master, a number of officers and seamen. They have length, beam, draught and displacement, and burn particular types of fuel. They also have a maximum speed and endurance. Each ship has a home port, which may or may not be the same as its port of registration.
Secondly, the officers and crew have to be paid! Their salary depends on their qualifications and current appointment – to which ship and in what capacity. There is also a “bounty” payment made in respect of each trip made, which depends on the length of the trip and on the individual’s length of service with the company. In addition, ship’s officers who are sailing in less than their customary capacity (e.g. a master sailing as a first mate) receive an extra payment.
Finally, the company is required by its insurers to maintain a record of the position of each vessel; its port and date of departure, destination and estimated date of arrival; number of officers, total number on board, and total value of cargo carried, if any. Ships currently in dock for repairs must also be included in this catalogue.

Required
(a) Construct an ER diagram from the description above.
LATEST TUTORIALS
APPROVED BY CLIENTS