Homework Answers

Math 50414 50414
Physics 44332 44332
Chemistry 40988 40988
Economics 30643 30643

Questions: 207 418

Answers by our Experts: 207 418

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

Following is the first four records in a file “data.txt”. 

71723 Ram     Sen     70 72 75 

91924 Raghubir Yadav   82 73 80

53425 Ram     Chauhan 93 81 86

44917 Ratan    Yadav   95 79 91

Each record contains ID(5 chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and a newline character.  

Write a shell program info.sh to achieve the following

If the program is run without any argument (sh info.sh), it will display the first name, second name and average score of each student in the file. 

If the program is run with numeric argument (sh info.sh 44917), it will assume it as ID of student and will output ID, first name, second name and the average score of that student. If ID does not match, the program should display “record not found”.

If the program is run with non-numeric

If the number of arguments is greater than one, the program should display an error message.


Two coins are tossed. Let H be the number of tails that occur.Determine the values of the random variable H.

Table 1: Driving styles associated with acceleration values


Driving style Economic (1) Normal (2) Aggressive (3)

Acceleration magnitude [m/s2 ] 0.7-2.3 2.31-3.30 3.31-8.5 



Create variable ds mapping to store corresponding classification values of 1,2 or 3, which represent different driving style as shown in Table 1. You need to evaluate only the magnitude the of the acceleration/deceleration.


ABC is a triangle and P, Q are the midpoints of AB, AC respectively. If AB = 2x




and AC = 2y, express the vectors (i) BC, (ii) PQ, (iii) PC, (iv) BQ in terms of x




and y. What can you deduce about the directed line-segments BC and PQ?





Create a class called Rational for performing arithmetic with fractions. Write a driver program to test your class.



Use integer variables to represent the private data of the class—the numerator and the denominator. Provide a constructor function that enables an object of this class to be initialized when it is declared. The constructor should contain default values in case no initializers are provided and should store the fraction in reduced form



Provide public member functions for each of the



following:



a) Addition of two Rational numbers. The result should be stored in reduced form.



b) Subtraction of two Rational numbers. The result should be stored in reduced form.



c) Multiplication of two Rational numbers. The result should be stored in reduced form.



d) Division of two Rational numbers. The result should be stored in reduced form.



e) Printing Rational numbers in the form a/b where a is the numerator and b is the denominator. in java

Given: x = 1 – cost and y = t – sint. Find y’.


Given: x = tan4t and y = sec4t. Find y’.


In a transistor, beta=45, the voltage across 5k? resistance which is connected in the collector circuit is 5volts. Find the base current.


Question 20 (10 points)

Write the Java code required to solve the following problem. A complete program is

required and must follow all programming conventions (indenting, variable names,

comments, etc...).

You are to create a program which will place 8 queens on a chess board.

1 - Create a blank chessboard (8 x8 2D array of integers, all O's)

2 - Using a loop, ask the user for 8 locations on the board, replace the O with a 1 at.

this location.

3 - Display the final board.

You do not need to include any error checking or checking for duplicate locations.


Let the proposition p be T and proposition q be F. Find the truth value of the following



a. p^›q

LATEST TUTORIALS
APPROVED BY CLIENTS