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

Display students details in the following format using manipulats

Rollno Name Marks average

------  ---   ----   -------

1        Ram  490    98.17

2        Kala  450     96.23


Matrix Rotations

You are given a square matrix A of dimensions NxN. You need to apply the below given 3 operations on the matrix A.


Rotation: It is represented as R S where S is an integer in {90, 180, 270, 360, 450, ...} which denotes the number of degrees to rotate. You need to rotate the matrix A by angle S in the clockwise direction. The angle of rotation(S) will always be in multiples of 90 degrees.


Update: It is represented as U X Y Z. In initial matrix A (as given in input), you need to update the element at row index X and column index Y with value Z.

After the update, all the previous rotation operations have to be applied to the updated initial matrix.


Querying: It is represented as Q K L. You need to print the value at row index K and column index L of the matrix A.


Write a C program to compute the Maclaurin Series expansion of 𝑓(𝑥) = cos 𝑥.

You need to add the terms in the Maclaurin series until the percent relative error falls below a certain pre-specified relative error (%).

Inputs to your program will be x (in radians)) and the pre-specified relative error (%).

Your program should print the number of terms, cos x value obtained along with the true, absolute, and relative approximate errors (%).

Your program needs to get the true value of 𝑓(𝑥) = cos 𝑥 using the built-in cos 𝑥 function in C\C++.


Sample output:

Enter your approx. relative error bound:

0.001

Enter your angle in radians:

1.04719

N.terms Exact   aproximate value     absolute error  relative error

1     0.500007     0.451697     0.048310   9.661871

2     0.500007    0.501803     0.001796    0.359220

......................



Write an inline function sum() with four parameters that calculates the

arguments

provided and returns their sum.

Parameters: Four variables of type long.

Returns: The sum of type long.

Use the default argument 0 to declare the last two parameter.


In the space below write a C++ program that computes the total amount of money you are depositing in your bank account. Your program does this by asking you to first enter the type of cash bills being deposited and how many of each type, also the types of coins being deposited and the number of each coin type


Devise an Algorithm and Flowchart for the problems below using Microsoft Word;

1.      Find and output the Sum of all even numbers up to N.

2.      Find and output the area and perimeter of a square.



Describe in detail Variables in SQL?


Task 1: Single Row Function

1.    Write an SQL statement that will display the Employee ID, Last name, First name and Job ID of all employees that belong to a department with Department ID 20 and whose Job ID has a substring “rep”.


2.   Write an SQL statement that will display the Employee ID, Last name, First name, Job ID and salary of “GrantDouglas”.


3.    Write an SQL statement that will display the Employee ID, Last name, First name and Job ID of all employees that belong to a department with Department ID 20 and whose remainder of their salary from 3000 is greater thn 500.


4.    Write an SQL statement that will display the Employee ID, Last name, First name and Job ID of all employees working in the company for more than 15 years.




You need to find which digit occurs most number of times across the four given input numbers.

input1, input2, input3 and input4 are the four given input numbers.

The program is expected to find and print the most frequent digit.

Example1 –

If input1=123, input2=234, input3=345, input4=673

We see that across these four numbers,

1, 5, 6 and 7 occur once,

2 and 4 occur twice, and

3 occurs four times.

Therefore, 3 is the most frequent digit and so the program must print 3

NOTE: If more than a digit occurs the same number of most times, then the smallest of those digits should be the result. Below example illustrates this.

Example2 –

If input1=123, input2=456, input3=345, input4=5043

We see that

0, 1, 2 and 6 occur once, and

3, 4 and 5 occur thrice.

As there are three digits (3, 4 and 5) that occur most number of times, the result will be the smallest (min) digit out of these three. Hence, the result should be 3


Write a C++ code to overload the function sqr() . In the first call of the function sqr(), an integer 15 is passed. The compiler executes the integer version of the function and returns result 225. In the second call a float value 2.5 is passed to function sqr(). The compiler executes the float value of the function and returns the result 6.25. The selection of which function to execute is decided at the run time by the compiler according to the datatype of variable passed.


LATEST TUTORIALS
APPROVED BY CLIENTS