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 & Filtering

Instructions: You should submit your answer to this question as a Python code

with .py extension to the corresponding question in Google Classroom.

Attention: Make sure to write your name, surname, and student ID number.

Question:

 (Physics: find runway length) Given an airplane's acceleration a and take-of

 speed v, you can compute the minimum runway length needed for an airplane te

 take off using the following formula:

                  length

                        2a

  Write a program that prompts the user to enter v in meters/second (m/s) and th

 acceleration a in meters/second squared (m/s), and displays the minimum runway

 length. Here is a sample run:

 Enter speed and acceleration: 60, 3.5 Enter

 The minimum runway length for this airplane is 514.286 meters


Instructions: You should submit your answer to this question as a Python code

with .py extension to the corresponding question in Google Classroom.

Attention: Make sure to write your name, surname, and student ID number.

Question:

 (Physics: find runway length) Given an airplane's acceleration a and take-of

 speed v, you can compute the minimum runway length needed for an airplane te

 take off using the following formula:

                  length

                        2a

  Write a program that prompts the user to enter v in meters/second (m/s) and th

 acceleration a in meters/second squared (m/s), and displays the minimum runway

 length. Here is a sample run:

 Enter speed and acceleration: 60, 3.5 Enter

 The minimum runway length for this airplane is 514.286 meters


Instructions: You should submit your answer to this question as a Python code

with .py extension to the corresponding question in Google Classroom.

Attention: Make sure to write your name, surname, and student ID number.

Question:

 (Geometry: area of a pentagon) Write a program that prompts the user to enter the

 length from the center of a pentagon to a vertex and computes the area of the pen-

 tagon, as shown in the following figure.

                                 3V3

     The formula for computing the area of a pentagon is Area where s is

     the length of a side. The side can be computed using the formula s = 2r sin ,

     where r is the length from the center of a pentagon to a vertex. Here is a sample

     run:

     Enter the length from the center to a vertex: 5.5 ter

     The area of the pentagon is 108.61


Write a program in python to print respective month of a year.

Using the above code add a method that takes in three arrays, one for student names, one for final test marks and a last one for assignment mark. The method should then calculate the students qualifying mark (a student needs 50 or more to qualify) using the following weights: 40% of the test and 60% of the assignment, finally print out whether the person qualified or not


. The company want each department to have its own

subnet. In total, Prime Innovative Technologies CC have 240 employees. Each employee owns a

computer. The anticipated growth of the company is to have 2400 employees by the year 2025.

All the employees must be able to communicate with each other within the company. The

company’s HQ connects to the company’s ISP.

One of the branches is recommended to make use of a switched local network that have to

connect the departments. Within this branch, you are therefore required to make use of VLANs.

As an expert in network administration, you have been hired by this company to design,

configure and administer their needs.


4. You are given an IP address block of 172.27.0.0 /19. You are therefore required to utilise this

IP address block to create all the needed subnets as per requirements. Make sure to

document your subnets properly.




### Functional Interfaces and Lambda Expressions

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

1. In the class LambdaExercise, create following static variables

1. countries of type List<String>

2. countryCapitals of type Map<String, String>

In a static block, initialize countries and countryCapitals with soe values

Define following static methods and provide the implementation as given below

- sortCountriesBylength

- Sort the List using Comparator, in descending order of number of characters in the country name.

If the number of characters are same for a country, it should be sorted alphabetically

(Use Comparator's static/default methods)

- removeCountry(String name)

- remove the countries whose name is greater than 6 characters

Execute the methods and display the results in main method



Stream operation


Define a POJO class Country with countryId and CountryName as member variables


- Define a POJO class Player with playerName, matchesPlayed, runs, highestScore, Country as member variables




- Create a class StreamOperationsExercise as below


- Create a List of Players, as a static variable, with some player objects



Define following static methods and provide the implementation using Java 8 streams API as given below




- displayPlayersForCountry(String country)


Display the name of players whose highest score is more than 100 and belong to a particular country



- getPlayerNames


Return a LinkedList containing names of all Players, whose have scored more than 5000 runs, sorted in descending order of names




- getAverageRunsByCountry(String country)


Return the average runs scored by players from a particular Country



- getPlayerNamesSorted


Return a list with names of Players sorted as per country and then by matchesPlayed(descending)



Execute the above methods in the main method.










































Input + Addition




by CodeChum Admin





Hopefully you haven't forgotten about your previous lesson, because you're going to need it for this one.







Instructions:





Input two integers (one per line) and make sure to store them in variables.




Add the two integers and print out their sum!

Define a class named Movie. Include private fields for the title, year, and name of the director.

Include three public functions with the prototypes

void Movie::setTitle(string);

void Movie::setYear(int);

void Movie::setDirector(string);


LATEST TUTORIALS
APPROVED BY CLIENTS