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

Find area and perimeter of square


Algorithm:


get the value of side

multiply side by side to calculate area

multiply side by 4 to calculate perimeter

print area

print perimeter


'''


side = eval(input("Enter the value of the side "))


area = side * side

perimeter = 4 * side


print ("The side of the square is",side)

print ("The area is",area)

print ("The perimeter is",perimeter)




Assignment 1

1. If Satellite with a radius of 5.3m transmitted a message at the frequency of 1.3 MHz to

earth station. Determine;

i. The wavelength, and time, in hour of the transmission

ii. The centrifugal force of the satellite

iii. The attenuation of the transmission

2. The wavelength of a signal transmitted at 1000MS-1 is 700M. Determine the period of

the transmission

3. Analyze the conditions that can lead to satellite path diversity

4. Explain handoff and discuss three types of satellite handoff



Workers of Maunlad Corp. have 40 regular working hours per week and are paid with an hourly rate based

on their years of service in the company.

Years of service Hourly Rate

1 90

2 – 3 130

4 – 5 160

6 and above 200


However, if a worker rendered more than 40 hours in a week, the excess hours are paid 75% more. Design a program that allows the user to input the worker’s years of service and the number of hours rendered by a worker in 1 week then display the salary.


Write a program that asks the user to enter two numbers, obtains the two numbers from the user, and prints out the sum, product, difference, quotient, and remainder of the two numbers.


Write a program c++ that has a class MathUtils which has method that perform various mathematical functions using recursion.



class MathUtils


{


public:


int factorial ( int n)


{


//to be implemented


}


int power ( int base, int exp)


{


// to be implemented


}


void triple (int[] a)


{


//to be implemented


}


}



a. The factorial method returns the factorial of the number given. Implement factorial using recursion.


b. The power method raises base to the power exp. Implement power using recursion.


c. The triple method triples every element in the given array. Implement triple using recursion, adding a helper method if necessary.



Note:


No global decelerations


Test run in main

Write a menu driven program that achieves the following:


a. Takes student’s information from the user and adds such a student into Mark Sheet.


b. Takes a student number from the user and update such a student’s information.


c. Takes a student number from the user and delete such a student from Mark Sheet.


d. Generate or re-generate individual student report files.


e. Write a short report on the approach you used to solve the problem in hand.

Consider class Certification with data members Id (int), name (String) , hours(int), level (String), costPerHr (double). Provide a sub class ProfessionalCertification that extends Certification. This class no additional data member. It overrides calculateFee method so that total cost is returned as product of hours and cost per hour plus 15% tax of total hours cost. o Also ProfessionalCertification implements Extendible Interface. You will also have to provide implementation of method extend(int duration). For this you need to add duration to the training hours of the certification. Write main class that includes calculateFee() and extend(int duration) method.


Write a code to find the frequency of prime numbers from a queue


Qno1: Write a program that helps to find factorial,

percentage, average, Min Number, Max Number, and sort

the array in ascending and descending order. User select

the option what operation he/she wants to perform and

then enter data according to requirement.

Perform all things by using functions.


When buying a Tesla Model 3, you have a choice between three versions/trims: 1) Standard Range Plus, 2) Long Range, and 3) Performance. All trims have the same base features, but the 2nd trim includes additional features, and the 3rd trim adds features on top of those from #2. In other words, the feature list is incremental.

Write a program that asks the user to choose which Model 3 they want to buy. You will then output the feature list based on the user's selection. So that you understand which feature list belongs to each, my example below is for the most expensive trim (Performance), which includes everything. I used an empty line to separate the features for each trim. Be sure to reject invalid menu choices.


LATEST TUTORIALS
APPROVED BY CLIENTS