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

Your task is to create a class name polygon that contains 2 data members i.e. length of type float and width (a pointer of type float). Create a single object named “one” in the main and assign values to the data member of the polygon object. Then create another object named “two” that is a copy of the “one”. Create a shallow copy constructor that copies only the pointer data member of the class polygon and then demonstrate that both objects share a common memory i.e. modifying one object in fact modifies the other. Create a display function that will show the values of the polygon object.

an online bank wants you to create a program that shows prospective customers how their deposits with grow. Your program should read the intial balance and the annual interest rate. interest is compounded monthly .display the balances after the first three months



write the flowchart and c++ program in which the user enters their salary and their age. if the person is over 75, increase their salary by 10% of their salary. Otherwise, increase their salary by 5% of their salary. Display the new salary in either case. Using selection. 


You

are required to design a software for a company to manage its employees. Given the following requirements:


 There are different departments in the company, each department has a name which is unique. Within the department

there are faculty members each having a name, cnic, qualification and salary.

Each department also has staff belonging to it, information to be kept about is their name, cnic, hours worked and hourlyrate


 


  •  Please decide which classes would be
  • needed and what would be the relationship between those classes.
  •  Write the interface of the classes

At the school library, there is a need for a new library management system. One of the basic requirements of the system is to keep track of which books are in the library and which ones have been issued / checked-out by students.


Using the above management system, you are required to help the school answer the below questions:

1.   Which three books have been issued the greatest number of times?

2.   Which books do not have any more copies left in the library (all copies have been issued)?

3.   Find out if a particular book is available in the library based on the book id.

4.   Out of the entire set of books in the library, list the books that have never been checked out by students?

5.   Print a list of all the books and available copies.


Write a program that will accept the currency value and the name of the country and will display the equivalent in U.S. dollar, based on the given list:


COUNTRY CURRENCY U.S. DOLLAR EQUIVALENT British Pound 0.6 U.S. dollar Canadian Dollar 1.3 U.S. dollar Japanese Yen 140 U.S. dollar German Mark 1.7 U.S. dollar Philippines Peso 53 U.S. dollar


Write a program that takes data, a word at a time and reverses the words of the line. Sample input/output dialogue: Input string value: birds and bees


Reversed: bees and birds


Write a program that takes nouns and forms their plurals on the basis of these rules:a.If a noun ends in “y”, remove the”y” and add “ies”


b. If a noun ends in “s”, “ch” or “sh”, add “es” c. In all other cases, just add “s” 


Write a program that takes nouns and forms their plurals on the basis of

these rules:a.If a noun ends in “y”, remove the”y” and add “ies”


b. If a noun ends in “s”, “ch” or “sh”, add “es”

c. In all other cases, just add “s”



Write a program to create a base class: “Question3”, with protected data member: x (int) 

and with pure virtual function: “Task ()” [Returns no value and takes no argument]. Create a 

derived class of “Question3” such as “Sub1” (Derive features in public mode). In sub1, there 

is a member function in public section: get_data1 () to take input for x, and define Task () in 

this class to display the factorial of x. [Implement the above program by creating pointer to 

base in main () function and call the necessary functions].


LATEST TUTORIALS
APPROVED BY CLIENTS