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

Write a C++ code for the following pattern display using ios classes. The precision is set according to the value of variable x. (use setprecision(), setwidth(), setfill() ios flags and functions).


Develop a C++ program to get the temperature and print the following status according to the given temperature by using else if ladder statement. [Note: Use call by value]


1. T<=0 "Its very very cold"

2. 0 < T <=10 "Its cold"

3. 10 < T < =20 "Its cool out"

4. 20 < T < =30 "Its warm"

5. T>30 "Its hot


Do a C++ code to create the following output using only two or more parallel arrays:

Create two parallel arrays, one for actors or actresses and one for their phone numbers with the following data:

 

Actors: Angelina Jolie, Brad Pitt, Margot Robbie, George Clooney, Jennifer Lopez, Jennifer Lawrence

Info: 949-232-1124, 949-865-3492, 864-235-7569", 939-453-2288, 987-209-2132, 543-239-8745

 

Prompt the user for a number from 1 to 6 and based on the number, display the actor’s name and related phone number. If the number is not between 1 to 6, an error message as you see below should be displayed.

 

You should prompt the user if he or she likes to continue and upon Y or y you clear the screen and repeat until the response is N or n 


Design a pay roll system to find the employee total salary using single inheritance. The base class employee consisting of data members such as emp_number and emp_name. The derived class salary consisting of data members such as Basic_pay, HRA, DA, PF, Net_pay.(Reusability using inheritance)


Develop a code for the hybrid Inheritance diagram given below

·         The employee details class consisting of data members such as name and emp_id.

·         The normal pay class consisting of data members such as basic salary.

·         The additional pay class consisting of data members such as hours, rupees and additional pay.

·         The net pay class consisting of member function cal() to find the employee total salary = additional pay + basic salary. 

(  Reusability using inheritance )


Creates two friendly classes, the class ABC with attribute A and class XYZ with attribute age to find maximum age among two men. Assign values for the data members using parameterized constructor, then to find maximum age among two men using friend function and display the age of men. Finally free the resources of data objects using destructor member function.( Initialize the class members using constructors and destroy the objects by using destructor)


Declare the class Date, consisting of data members are day, month and year. The member functions are set date() to assign the value for data members, Month() to find the string for the month data member and show() to display the date.(Implement the concept of class and objects)


Define a Class to get length and breadth of a rectangle. Get length and breadth from the user, calculate and display its area.


make a Student class with 4 data members (name, roll no, GPA, credit hours) and 2 constructors (one user input, one file input) and a destructor.

 



a. Write a Java program to compute the area of a polygon.

Area of a polygon = (n*s^2)/(4*tan(π/n))

where n is n-sided polygon and s is the length of a side

Input Data:

Input the number of sides on the polygon: 7

Input the length of one of the sides: 6

b. Explain each of the following Java programming terms

i. extended [1]

ii. protected [1]

iii. instanceOf [1]

iv. abstract [1]

v. Write a Java program to print the contents of a two-dimensional Boolean array where t will represent true and f will represent false.


LATEST TUTORIALS
APPROVED BY CLIENTS