Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Question Link: https://ibb.co/nPcFz0r

A machine purchased for RM28,000 is depreciated at a rate of RM4,000 a year for 7 years.

Write and run a C++ program that computes and displays a depreciation table for 7 years.


Consider the relation schema R=(A, B, C, D) with functional dependency F as follows

A BC

B D

D B


Show a decomposition of R into R1 and R2 so that each relation of the decomposition is

in BCNF and also dependency preservation is achieved.


One large chemical company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9 percent of $5000, or a total of $650. Develop a C++ program inputs each salesperson's gross sales for last week and calculates and displays that salesperson's earnings. Process one salesperson's figures at a time


A machine purchased for RM28,000 is depreciated at a rate of RM4,000 a year for 7 years.

Write and run a C++ program that computes and displays a depreciation table for 7 years.


One large chemical company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9 percent of $5000, or a total of $650. Develop a java program inputs each salesperson's gross sales for last week and calculates and displays that salesperson's earnings. Process one salesperson's figures at a time


Write a program that prompts the user to input the x-y coordinate of a point in a Cartesian plane.

The program should then output a message indicating whether the point is the origin, is located on the x-axis or y-axis, or appears in particular quadrant (1st quadrant, 2nd quadrant, 3rd quadrant or 4th quadrant). For example:

a. (0, 0) is the origin

b. (4, 0) is on the x-axis

c. (0, -3) is on the y-axis

d. (-2, 3) is in the 2nd quadrant

Print the output for 7 different inputs; the origin, x-axis, y-axis, 1st quadrant, 2nd quadrant, 3rd quadrant or 4th quadrant.


UML AND C++


Given the class diagram below, create a simple Television remote controlled

application. Classes and functions shown in the diagram must be complete and

properly declared.


Television.            Remote C

+Channel:integer.  +RChannel:integer

+Volume:integer.   +RVolume: integer

+Status:integer.    +RStatus: integer

+DisplayVolume(). +DecreaseVolume()

+DisplayChannel(). +IncreaseVolume()

              |     +SetChannel()

              |    +TurnOn()

               |    +TurnOff()

----- | ---------------------------------

| |

CableTV. RegularTV

+MaxChannel:integer + MaxChannel:Integer

+SetiStatus() +SetiStatus()


Use the following program description:

 The program has 2 TV objects. One as Cable TV and the other is Regular TV

 Ask the user to enter the type of Television. This will automatically turn on the

Television.

 The change of channel and volume shall only be done when the tv is on (Status

=1).

 Changes in channels and volume must be handled by an object of RemoteC.

 The initial channel for Cable TV is 10 while Regular TV is 2. Initial volume regardless

of the type of Television is 10. Display these values once the TV is turned on.

 Ask the user for an action (change volume or change channel).

 The maximum channel for Cable TV is 50 while Regular TV is 10. Maximum

Volume is 100. Action is invalid if the changes exceeds to its maximum value.

 Continue to ask user for an action until the user enters ‘0’ (zero) to turn off the TV


UML AND C++


Given the class diagram below, create a simple Television remote controlled

application. Classes and functions shown in the diagram must be complete and

properly declared.


Use the following program description:

 The program has 2 TV objects. One as Cable TV and the other is Regular TV

 Ask the user to enter the type of Television. This will automatically turn on the

Television.

 The change of channel and volume shall only be done when the tv is on (Status

=1).

 Changes in channels and volume must be handled by an object of RemoteC.

 The initial channel for Cable TV is 10 while Regular TV is 2. Initial volume regardless

of the type of Television is 10. Display these values once the TV is turned on.

 Ask the user for an action (change volume or change channel).

 The maximum channel for Cable TV is 50 while Regular TV is 10. Maximum

Volume is 100. Action is invalid if the changes exceeds to its maximum value.

 Continue to ask user for an action until the user enters ‘0’ (zero) to turn off the TV


From of C++ classes and object, one of the company which is Company ABC, an airline company is closely monitoring the distance between airplanes as they take-off in the same airport. You are asked to create a system that would calculate the distance between two planes A and B given the following plane attributes: Take-off Time, Speed (mi/hr), direction (north, east, west, south). Also, given the time where the navigation officer would like to check the distance.


DISPLAY:

AIR TIME OF PLANE A AND B -TIME ON AIR TO TAKE OFF

DISTANCE OF PLANE A AND B FROM THE AIRPORT

DISTANCE BETWEEN PLANE A AND B



LATEST TUTORIALS
APPROVED BY CLIENTS