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 program using string function that determines if the input word is a palindrome. A palindrome is a word that produces the same word when it is reversed. Sample input/output dialogue: Enter a word: AMA Reversed: AMA “It is a palindrome” Enter a word: STI Reversed: ITS “It is not a palindrome”


Make a C++ program that will print the multiplication table using nested loop.


Make a C++ program that will print the multiplication table using nested loop.


Create a class by name Area and initialize the data members. Then, find areas of square [Area(a)], area of rectangle [Area(l, b)], area of triangle [Area(a, b, c)] using constructor overloading. Also define a destructor to destroy the object.


Develop a code for the multiple inheritance diagram given below

·         The experience details class consisting of data members such as name and total experience.

·         The salary details class consisting of data members such as salary.

·         The education details class consisting of data members such as degree.

·       The promotion class consisting of member function promote() to find the employee promotion for higher grade on satisfying the condition total experience to be greater than 10 and salary to be greater than Rs. 20,000 and the degree qualification to be “PG”, print "PROMOTED FOR HIGHER GRADE". otherwise the employee is not eligible for promotion, print "PROMOTION IS NOT ELIGIBLE".



Assume a disk with the following characteristics: Number of sectors per track = 20 Number of tracks per surface = 50 Number of surfaces = 2 (called a double-sided disk) Number of characters per sector = 1,024 Arm movement time = 0.4 msec to move 1 track in any direction Rotation speed = 2,400 rev/min


1. How many characters can be stored on this disk?


2. What are the best-case, worst-case, and average-case access times for this disk? (Assume that the average seek operation must move 20 tracks.)


You are designing a spherical tank, as shown in figure below, to hold water for a sonll village in

a developing country. The volume of liquid it can hold can be compuned as

V=pi*h2*

(3R-h)/3


where V is the volume of water in the tank in m3, b is the height of water in the tank in m, R is

the radius of tank in m. If R is 3m and V is 30 m.

Formulate the equation in terms of height (h), from above generalized equation, representing the

present situation

Use the correct built-in function in MATLAB to determine all possible values of height (h) that

will satisfy the formulated equation i.e. determine all possible roots of the formulated equation.

From those values height (h) which one is the correct and why?


According to a dietician, a person should consume exactly 200 gm of carbohydrates, at least 175

gm of proteins and at most 150 gm of fats in a meal. The dietician also recommends to have as

much amount of vitamins as possible. The three food items that the person eats has 80, 65 and 30

gm of carbohydrates per kilogram of food item. The same food items contain 10, 12, 23 gm of

proteins in each kilogram. Per kilogram of the same food items comprise of 32, 56 and 42 gm of

fats. Vitamins contained in per kilogram of the same food items are 70, 37 and 58 gm.

Determine how much kilogram of each food item the person should consume so as to have

maximum intake of vitamins by using appropriate built-in function present in MATLAB.


Write a program that reads in a line of text and replaces all four-letter words with the word “love”.  For example:

the input string:

I hate you, you dodo !

Should produce the output:

I love you, you love!


Of course, the output will not always make sense.


For example, the input string:

John will run home.

Should produce the output:

Love love run love.


If the four-letter word starts with a capital letter, it should be replaced by “Love”, not by “love”. You need not check capitalization, except for the first letter of a word. A word is any string consisting of the letters of the alphabet and delimited at each end by a blank, the end of a line, or any other character that is not a letter. Your program should repeat this action until the user says to quit.



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


LATEST TUTORIALS
APPROVED BY CLIENTS