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

(Abstract class, Interface, Method Overriding)Write a java program with proper

illustration to implement the following instructions:

a) Create an interface named Animals which declare a void method callSound() and a

int method run().

b) Create an abstract class Feline that implements Animals, then override the

callSound() method and print “roar”.

c) Create an abstract class Canine that implements Animals, then override the

callSound() method and print “how1”.

d) Create a class Lion that extends Feline, then override the callSound() method and

refer immediate parent class callSound() method , also override the run() method and

return 40.



discuss by giving an example of a situation in which a virtual LAN might be a useful tool in both the business environment and in an educational environment.


Given polynomial, write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0 format.


input : 5

0 2

1 3

2 1

4 7


expected output : 7x^4 + 6x^3 + x^2 + 3x + 2
 your output: 7x^4 + 6x^3 + 1x^2 + 3 + 2


please explain this


Write a C Program Management System to Rent a cycle on hourly basis


Per hour charges. Rs. 90 /hour




10 cycles


25 clients


90 per hr charges


Reports


Monthly bill of all cyclists


Every client don't take cycle on rent at daily basis but Can take regular and more than one hour daily


Secret Message - 2

Given a string, write a program to print a secret message that replaces characters with numbers 'a' with 1, 'b' with 2, ..., 'z' with 26 where characters are separated by '-'.

a b c d e f g h i j k l m n o p q r s t u v w x y z

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


Input

Input will be a string in single line containing spaces and letters both uppercase and lowercase.

Output

Output should be a single line containing secret message. All characters in output should be in lower case.

Explanation

For example, if input is "python", "p" should replaced with "16", similarly"y" with "25","t" with "20","h" with "8","o" with "15","n" with "14". So output be "16-25-20-8-15-14".

Sample Input 1

python


Sample Output 1

16-25-20-8-15-14

Sample Input 2

python learning


Sample Output 2

16-25-20-8-15-14 12-5-1-18-14-9-14-7

Exercise 1: Largest contiguous partial sum

(a) Write a function that will find the largest contiguous partial sum, LagestSum, within an array of real numbers. That is,

we want to sum up any number of neighboring elements from the array, starting from anywhere, find the largest possible

sum.

-3 4 2 1 -4 6 -10 0 -4 3

then the function should report return 9, because 4+2+1+(-4)+6= 9 is the largest sum of contiguous elements from

that array of numbers. The function must also provide the starting and the ending indices of the summed elements back

to its caller(indices 1 and 5 for the example above).

(b) Write a driver program that tests the function LargesttSum written in (a).


. The prize scheme software must have the following fea￾tures:

1. Registration Module

1. It Includes biodata entry.

2. First Name

3. Last Name

4. CNIC

5. Contact

6. Address

7. Challan No.

8. Challan No. is auto generated (i.e., use ++ operator) and it must be unique.

2. Monthly Installment Entry

In this module the clerk would enter the information. The record must be entered with CNIC 

(the clerk would enter the CNIC number and amount received). Every registered member must

pay the installment.

3. Lucky draw Module

This module should do a lucky draw. One member should be selected for the prize(free car) 

and the member should be selected from those members who are registered and paid the 

monthly installment ,members based on unique Challa No. the details of the winner must be 

shown.


Game Plan Fitness club requires a system that will help their members keep up to date with their BMI after each training session. The system will allow users to enter their weight and height and then calculate each member’s BMI, the system must determine their health status based on the BMI. Use the formula BMI=wieght/(height)^2 , assuming that height is entered in meters and weight is entered in kilograms. Create a function that calculate the BMI, and use a post test loop with weight of -1 to terminate the loop. 



BMI Health status

Less than 18.4. Underweight

Between 18.5 and 24.9. Healthy weight Between 25.0 and 29.9. Overweight Greater than 30.0 Obesity 


1 A function prototype must always be placed before the main function whenever a value returning function and void function is defined after the main function

  2 Defined variables are known as arguments or actual values in a function definition and parameter list in the calling function. 

 3 It is not mandatory for a function procedure to always have a return statement in C++   

4 A post-test loop will execute the statements inside the loop atleast once before the condition is tested. 

 5 A for loop cannot be used inside a pre-test loop 


True or false statemets


1A function call can be in a if-statement, display statement or assignment statement  

2 A function procedure is said to be value returning and a sub procedure is a void function that does not return a value at the end of the execution.

  3 double CalcPercentage(double, double); is an example of a function prototype  

 4 A reference parameter is the address of the variable in the computer’s memory 

 5 A void function can have value and reference parameters 


LATEST TUTORIALS
APPROVED BY CLIENTS