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

you cannot use built-in functions or NumPy or Pandas!

1. Write a function which finds all Pythagorean triplets of triangles whose sides are no greater than a natural number N.

2. Given a list of integers, write a function that finds the smallest and the largest value of this list. Given a list of numbers, write a function which finds their standard deviation


 Integer Pairing

by CodeChum Admin

Now this one's a tad bit tricky, but you can definitely do it!


Instructions:

  1. Input five integers in one line, with each integer separated by a space.
  2. Add the 1st and 2nd integers together, store the sum inside a variable.
  3. Add the 3rd and 4th integers together, store the sum inside a variable.
  4. Multiply the two sums with each other and raise the product to the power of the 5th integer
  5. Print out the result.

Input

A line containing five integers separated by a space.

1·2·3·4·5

Output

A line containing an integer.

4084101

Input Combination

by CodeChum Admin

We've tried adding together integers, now how about strings?


Instructions:

  1. Input two strings in one line, separated by a space.
  2. Concatenate the two strings and print out the result.

Input

A line containing two strings separated by a space.

hello·world

Output

A line containing the concatenated string with no spaces.

helloworld




Question No.1 Implement this program by using User-defined functions and Structures.


Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions:



1. A function to read the students’ data into the array.

2. A function to assign the relevant grade to each student.

3. A function to find the highest test score.

4. A function to print the names of the students having the highest test score.


even or odd . write a program to check if the given number is even or odd


Mr. Narayan understands that among the 10 items, the items that are referred by odd index are not available in market. Help Mr. Narayan to convert the price of all odd index item to zero (0).


Design, write and compile a C++ program to display the following output using setw(), setprecision(), setiosflags():

 

Radians

  Degrees

1

57.2958

10

572.9580

20

1145.9200

30

1718.87000

40

2291.83000

 

 

 

 

 

 

 

(b) What is the minimum number of cout statements that could be used to print the above output?

(c) Explain your choice of coding style with your chosen number of cout statements. 

 


Convert the mathematical expression to visual basic formula


W= Pr²÷√q²+s²

You task is to write a program that will continuously add friend data to a list named friends until the user enters "No". The program must display the contents of friend list.


friend's data to be collected:

Last name

First name

Birthdate

Gender

Contact No.



Validation:

Name must not be empty.

Must check the validity of the birth date.

Gender either F or M only.

Contact No. must be exactly 11 digits.


Display "Invalid Input" and ask the user to input another value.

Input

Friend's data

Tortor
Rhea
12/25/1990
F
09172345678
Yes
Nayang
Iya
11/11/1995
F
09172415679
No

Output

Name: Rhea Tortor
Birthdate: December 25, 1990
Gender: Female
Contact No.: 09172345678

Name: Iya Nayang
Birthdate: November 11, 1995
Gender: Female
Contact No.: 09172415679





CAT-6 twisted pair cable is a commonly used computer networks cable that provides a frequency bandwidth of up to 250 MHz. It is suitable for most varieties of Ethernet over twisted pair up to 1000 BASE-T (Gigabit Ethernet). Determine whether a signal-to-noise ratio (SNR) of 20 dB is adequate to transmit 0.9 Gbps on this cable?


LATEST TUTORIALS
APPROVED BY CLIENTS