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

How it is easy to implement and add interchangeable components using interface? Explain with example


Create a class Point, which defines a point on the coordinate plane. Implement a count of the number of created instances of type Point


  1. Write a class named Pet, which should have the following fields:
  • name, The name field holds the name of a pet
  • The animal field holds the type of animal that a pet is Example values are”Dog”,”Cat”, and “Bird”.
  • The age field holds the pet’s age.

           The Pet class should also have the following methods:

  • The setName method stores a value in the name field.
  • The setAnimal method stores a value in the animal field
  • The setAge method stores a value in the age field.
  • The getName method returns value of the name field
  • The getAnimal method returns the value of the animal field
  • The getAge method returns the value of the age field
  • implement a toString() method to display the pet name, type and age

2. Write a test class to test your Pet class. Make sure you have three different types of pets. (three Pet objects)


How it is easy to implement and add interchangeable components using interface? Explain with example



In a coal-fired power plant, operating on Carnot Cycle, it is possible to set any value for the

temperature of boiler in which heat is added to water at high temperature (T) and any value for

the temperature of condenser in which heat is rejected from steam at low temperature (TO), from

the following temperature list

T - [500 320 1000 775 385 670 845 1245 410 300 627 514)ⓇK

Being an operator of power plant you have to select T and Te from the above temperature list so

that power plant operates at its highest efficiency

Write a generalized MATLAB program to select two temperature values Th, and Te for above

condition, without using min and max built-in function

Print the maximum efficiency of cycle and the temperatures at which it occurs.


The type of computing based on pay per used model is known as?

Select one:

a. Utility computing

b. Super computing

c. Mini computing

d. Mini computing


Implement a C++ program to define function named as ext, to extract the digits that located at even and odd position of five digit number and show the result.


Runtime Input :

00156


Output :

016

05


Which of the following offer applications that are cost-effective and does not require any maintenance on the end-user side?

Select one:

a. PaaS

b. SaaS

c. IaaS

d. HaaS


When discussing on-premise, which of these is a wrong statement?

Select one:

a. An on-Premise IT resource does not need a network

b. An on-premise IT resource can access and interact with a cloud-based IT resource.

c. An on-premise IT resource can be moved to a cloud, thereby changing it to a cloud-based IT resource.

d. Redundant deployments of an IT resource can exist in both on-premise and cloud-based environments.


Write a program in python 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- (or y-) axis, or appears in a particular quadrant.

Samples of expected output:

Enter x and y coordinates: 0 0

(0, 0) is the origin


Enter x and y coordinates: 4 0

(4, 0) is on the x-axis


Enter x and y coordinates: 0 -3

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


Enter x and y coordinates: -2 3

(-2, 3) is in the second quadrant


Enter x and y coordinates: 1 -4

(-2, 3) is in the fourth quadrant


LATEST TUTORIALS
APPROVED BY CLIENTS