Questions: 5 831

Answers by our Experts: 5 728

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

A . An airline intends to extend its air fleet by purchasing three types of aircrafts, denoted by I, II and III respectively. The available budget is 5000 units. The three types have the following features: 

l .costs 100 units, has a range of 6.000 km and the collision avoidance system range is 30 km; 

II. costs 60 units, has a range of 4.200 km and the collision avoidance system range is 48 km;

III. costs 50 units, has a range of 2.800 km and the collision avoidance system range is 32 km; 

Compute how many aircrafts from each type should be purchased such that 

-the budget is not exceeded 

-the mean flight range is maximized the mean of 

-the collision avoidance system range is at least 40 km. 

Q- Use an EA to solve A.

Crud with Python django and mysql connectivity



1. Create a Form with validation(Name, age, Phone no, Address, profile pic,)



2. List the Entered Details in View form



3. Edit the name and phone number in



4. Delete the list one by one

You are given N number of inputs.print the maximum of them each input

The user will input 5 grades. Determine individual subjects either passed or failed. Lastly, calculate the average grade and determine whether if passed or failed.











Sample output:



Student Name: Jessica


Math: 74



Science: 89.5



English: 74



Geography: 82



Filipino: 80



*Average Grades: 79.9




*If the average grade is >= 75 the output should be



PASSED!




*If the subject grade is below 74 the output should be



You need to re-take in Math Subject and English Subject




*If the average grade is <= 74 the output should be



YOU FAILED!

write a program to print the product of given two numbers.



Input the first line of input will contain and integer.



the second line of input will contain an integer.

Swap Competition




An English competition is being held where players have to play in groups of two. One of the players is given a word, and the second player has to choose a word such that, it is a rearrangement of the letters in the first player's word. They win if the above condition is satisfied. The number of groups is given by T.Write a programthat gives YES if they win and NO in the other case.




Note: All characters in the input will be in lower case.




Input




The first line of the input contains an integer T Each of the next T lines contains two words separated by space.




Output




The output should have the results of each of the T are given in the input.




groups that



All the results are separated by space.



Explanation




Given pairs




noon moon




part trap







Sample Input 1




2




noon moon part trap




Sample Output 1




NO YES




Sample Input 2




2




car rac




lock clock




Sample Output 2




YES, NO





A class called MyPoint, which models a 2D point with x and y coordinates. It contains:



 Two private instance variables x (int) and y (int).


 A constructor (__init__()) that constructs a point with the given x and y coordinates.


 Getter and setter for the instance variables x and y.


 Method setXY() to set both x and y.


 Method getXY() which returns the x and y in a 2-element list.


 A __str__ method that returns a string description of the instance in the format "(x, y)".


Method called distance(self, anotherpoint) that returns the distance from this point to the given MyPoint instance (called another), e.g.,



p1 = MyPoint(3, 4)


p2 = MyPoint(5, 6)


print(p1.distance(p2))



Method called distance_from_origin() method that returns the distance from this point to the origin (0,0), e.g.,



p1 = MyPoint(3, 4)


print(p1.distance_from_origin())


before the game start,they flip a coin to decide the starting player

the starting player choose a box & places the ball in it

if the ramesh starts he always places the ball in the box containing the biggest number

similarly suresh places the ball inthe box containing the smalllest number

after in each turn the player can move the ball one box to the left or one box to the right

ramesh plays such that he always moves the ball to the box containing a bigger number

suresh always moves the ball to the box containing a smaller number

ramesh plays in such a way that when the game ends,the number on the box which contains the ball is the biggest possible on the contry, suresh wants this number to be te smallest possible the result of the game is the number written on the box containing the ball after k turns write a program to determine the result of the game

i/p:2

4 3 0

4 1 9 5

4 3 1

4 1 9 5

o/P:

9

1



proper fractions

Given two fractional values A/C ,B/D where A,B are numbers and C,D are denominators you asked to add two fractional values, if the sum gives proper fraction as output print the proper fraction if it is improper ,convert it into a mixed fraction and print it if it is a whole number, print it

the 1st line of input contains two space separeted strings A/C, B/D

input:

1/2 1/4

o/p:

3/4

i/p:

1/2 3/4

o/p:

11/4(that means 1(1/4))

i/p:

1/3 2/3

o/p:

1


Dice Score:

two friends are playing a dice game, the game is played with five six-sided dice. scores for each type of throws are mentioned below.

three 1's = 1000 points

three 6's = 600

three 5's = 500

three 4's = 400

three 3's = 300

three 2's = 200

one 1 = 100

one 5 = 50

I/p: 2

1 1 1 1 1

6 6 6 1 5

O/p: 1200

750

I/p: 2

2 1 5 2 2

1 1 1 2 2

O/p: 350

1000


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS