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

Give two integers M and N write a program to print the first perfect square in a given range
Give two polynomials A and B write a program that adds the given two polynomials A and B


The following are noted about the institution:

• The tertiary institution consists of the Head Office in Cape Town and one campus each in Durban, Johannesburg and Cape Town.

• Each campus consists of:

o Four lecturing halls;

o A library;

o Four computer/electronic device facilities; o IT Support office.

• All client computers run Windows 7 or latest operating system, Microsoft Office 2013 suite, Microsoft Project and Microsoft Visio 2013.

• The network is centrally managed at the Head Office and all campuses are linked to the Head Office.

• Each campus is Wi-Fi enabled providing wireless connection to staff and students.

Q.4.1 Design an implementable routing and bridging solution for the network. Your

solution must address the following design and operation aspect of all routers.

Q.4.1.1 Functionality of the network layer.

Q.4.1.2 Design and implementation of data plane.

Q.4.2 Draw a detail diagram showing the design and implementation of Q.4.1 above.


Study the adapter structure in the diagram below and then answer the questions that follow. Diagram: Q.3.1 Using suitable examples, briefly explain functions of the five components of this network adapter. (10) Q.3.2 Provide a detailed operation analysis of this network adapter. 


But how do I ask user to choose a number and previous prime before that and after is displayed. And how many integers are in there depending on user input number?


Write an algorithm that will input a grade of student and determine whether the grade is passed or failed. The passing grade is 75. Print the name, grade and remarks of student.
Write an algorithm that will display if the inputted age is qualified to vote or not. The qualifying age is 18 and above.

Write a program that inputs the length of two pieces of fabric in feet and inches ( as whole numbers) and prints the total

enter the feet: 3

enter the inches: 11

enter the feet: 2

enter the inches : 5


Average of Given Numbers

You are given space-separated integers as input. Write a program to print the average of the given numbers.

Input

The first line of input contains space-separated integers.

Output

The output should be a float value rounded up to two decimal places.

Explanation

In the example, input is 

1, 0, 2, 5, 9, 8. The sum of all numbers present in the list is 25, and their average is 25/6.

So, the output should be 

4.17.

Sample Input 1
1 0 2 5 9 8
Sample Output 1
4.17
Sample Input 2
1 2 3 4 5
Sample Output 2
3.0

input should be single line

Problem 6: Write a program that asks for the number of calories and fat grams in a food. The program should display the percentage of calories that come from fat. If the calories from fat are less than 30% of the total calories of the food, it should also display a message indicating that the food is low in fat.

One gram of fat has 9 calories, so

Calories from fat = fat grams * 9

The percentage of calories from fat can be calculated as Calories from fat x total calories


LATEST TUTORIALS
APPROVED BY CLIENTS