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

what do you wish to calculate:

area perimeter

enter values ______ submit<----button


the page allows the user calculate area or perimeter of a parallelogram. First user will select an option, then enters necessary parameters separated by comma. write a JavaScript function called shapeFormulas(0 to calculate and display area or perimeter in an alert.

the function should display an error if user does not follow the required input format.

Area : base x height

perimeter : 2 x (side1+side2)


example one

user select area

input:5,10

output: the area is : 50


example two

user select perimeter

input:5,10

output:the perimeter is:30


example three

user select Area

input: 2 3

output: Invalid parameters


Jack and his three friends have decided to go for a trip by sharing the expenses of the

fuel equally. Implement a C# method CalculateCostPerPerson(double mileage, double amountPerLitre, int distanceOneWay) which returns the amount (in Rs) each of them need to put in for the complete (both to and fro) journey.

Mileage of the vehicle (km/litre of fuel) - 12

Amount per litre of fuel (Rs) - 65

Distance for one way (kms) - 96

expected output = 260





channel_user table

 channel_id user_id      subscribed_datetime

 100       1      2020-12-10 10:30:45

 100       7      2020-10-10 11:30:45


channel_user table stores the data of the channel_ids and their subscribers' user_ids.


user_likes table

user_id  video_id reaction_type reacted_at

1   10       LIKE      2020-12-10 10:30:45

7   10       DISLIKE 2020-10-10 11:30:45


video_genre table

video_id genre_id

10      201

10     202


Get all the distinct user_ids who liked at least one video uploaded by Android Authority Channel (channel__id = 364) but didn't like the video uploaded by Tech savvy channel with video_id = 1005.


Consider reaction_type LIKE as liked

Sort the output in the ascending order of user_id.

Expected Output Format

 user_id

 ...


Create a Student class with instance variables name, roll, mark and instance methods setStudentDetails(), displayStudent(). One object of the Student class represents a specific student. Create a Singly Linked List in such a way that every node of the Linked List contains 2 parts: stud and link, where, stud stores the reference to a Student object and link stores the reference of the next node. Hence, the Node class (user defined type) has the following structure.


The file named called EMPLOYEE.txt contains employee details such as employee number, name, designation and salary of employee. Write a program to create a file to store the details of employee (Use of structure and fwrite () & fread () functions).


Develop a C program for File Operations that stores n number of the Alphabets from A to Z in a file and display it.


Runtime Input :

11

80


Output :

P

Q

R

S

T

U

V

W

X

Y

Z


Declare the structure EB, consisting of member variables are cust_id, st_reading, end_reading and tot_usage. Calculate the usage of electric energy and display the details of electricity bill of a customer.


Runtime Input :

150

2100

2200

100


Output :

150

2100

2200

100


In online journal system, the user has to give detail information about their abstract of the manual script before upload of source document. The abstract submitted by the author should not more than 300 words. The journal system uses program to count the number of vowels, consonants, digits and symbols in a given paragraph. Write a C program to count the number of vowels, consonants, digits and symbols using pointers.


Runtime Input :

1=>see-programming


Output :

No. of vowels: 5

No. of consonants: 9

No. of digits: 1

No. of symbols: 3


Create a class called Transmitter. It has three unsigned int private data members: pay_load,

parity and data_packet; It has one function called parity_bit(). It calculates parity bit by XORing


all pay_load bits and assign the value to parity. By using function get pay_load(), pay_load is got.

data_packet is calculated by multiplying parity_bit with 32768 and add the product with (pay_load

– 32768). Create another class called Receiver. It has unsigned int private data members Rx_Pkt

, Rx_Data and E_Flag. Rx_Data is got from Rx_Data as given below. First E_Flag is calculated

from Rx_Pkt by XORing all bits. If E_Flag is zero, then Rx_Data = Rx_Pkt – 32768, Else a

message should warn about corrupted packet. Derive a class called Tranceiver from the above two

classes and check the functionalities. Use any other functions if needed.


Create a class named EB_amount. It has the data members units_used and bill. Use member

function to set unit_used. Upto 200 units 3 rupees per unit, 201 to 500, 4 rupees per and above 500

5.5 rupees per unit are allotted by EB. Calculate the bill amount and display the amount. Create

another class Salary with basic, DA and HRA. Set basic by a member function. 104 percent of basic

is assigned as DA and 10 percent is allotted as HRA. Display the total salary. Derive a class Budget

contains income, tuition_fee, house_rent, saving, grocery, eb_bill as data members. Set the values

and get the values of income and eb_bill from parent classes. Display the budget details.


LATEST TUTORIALS
APPROVED BY CLIENTS