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

print "happy" if each of them takes the same number "not happy" otherwise


Write a C++ program to overload the + and – operators to find the sum and difference of two instances of Time class having members as hour, minute and second. (Use member function for one and friend function for other)


Write a java program using arrays that accepts the width and length of a rectangle and computes both its area and perimeter.




Write a Java method to find the smallest number among three numbers.

Test Data:

Input the first number: 25

Input the Second number: 37

Input the third number: 29 


Write a Java method to compute the future investment value at a given interest rate for a specified number of years.

Sample data (Monthly compounded) and Output:

Input the investment amount: 1000

Input the rate of interest: 10

Input number of years: 5 


Math Quiz

Riya took part in a maths quiz competition. To win the prize money she has to solve a tricky question at the end.For a given list of integers, write a program where all the integers in a given index range to be added.

She will be given M multiple ranges, where she should print the sum of numbers for each corresponding range.


Note: The limits in the range are both inclusive.


Input

The first line f input is space-separated integers.

The second line of input is a positive integer M denoting the number of index ranges.

The next M lines contain two space-separated integers of the range.


Output

The output should be M lines.

Each line contains an integer that represents the sum for the corresponding ranges.


Sample Input1

1 3 4 5 6

5

3 5

Sample Output1

12


[Please test the sample test cases and send the screenshots].



Lowest and Highest score

The teacher gave out the scores of the science quiz conducted last week and asked the ones with the lowest and highest scores to group up. Print the names of the students with minimum and maximum scores, respectively.


Note: In case of a tie, choose the name which comes first in the (dictionary order).


Sample Input1

2

shakti 24

disha 26

Sample Output1

shakti disha


Sample Input2

3

ajay 23

bijay 24

sanjay 23

Sample Output2

ajay bijay


A program stores test scores in two int variables named myScore and expectedScore. Write the C++ code to compare the two scores and then display one of the following messages: “I met my expectations”, “I scored higher than expected”, or “I scored lower than expected”.


Make use of either a While Loop, For Loop or a Do While Loop to allow the program to repeat until a sentinel value or counter is used to break out of the loop


Students in the BIT level 300 class optained various grades in a Mid sem exam. A computer program is needed to find the highest and lowest class score. Write down the input and output to solve the above problem


Seoul Garden Sdn Bhd serves a wide range of seafood selections such as tasty crabs, fresh prawns, chicken fillets & many more for steamboat and grill. This buffet restaurant serves up 150+ choices of fresh seafood, fruits, and cold & hot beverages.


Age 6-12 years old, the price is RM 11 while age 13 and above years old, the price was RM 25.

Seoul Garden Sdn Bhd also gives an appreciation for the member cardholder with 6% off from the total price. The above price excludes government tax of RM 5.60.


Write an application that accepts the customer’s age and member status (member or non-member) by using a JOptionPane procedure and prints out the total price.



LATEST TUTORIALS
APPROVED BY CLIENTS