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

write a program to print numbers from 1 to n in each row forming a rectangular pattern of m rows and n columns using numbers


instead of printing 1x - 1 we need x - 1 how ?


(SIR/MADAM please answer to this question because i'm not getting the desire output)

Nth number sum:

given a list of M numbers and a positive integer N, print the sum of numbers whose position in the list is divisible by N .consider that the position of numbers range from 1 to N

INPUT:

the first line contains two space-separated integers N, M

the second line contain M space-separated integers.

output:

print a single integer representing the required sum

explanation:

Sample Output1

Given N=1 , M=7

and the number list = [4,8,6,6,7,9,3]

As every position is divisible by 1,

4+8+6+6+7+9+3=43

so the output should be 43

sample Output2

Given N=4 , M=13

and the number list = [7,3,10,4,5,8,4,9,6,9,10,1,4]

the position 4 , 8 and 12 divisible by N,

the output should be 4+9+1=14

so the output should be 14


Task 1


Consider a class Computer having Two fields (i.e. companyName, price) and A single

function named show()

A class named Desktop inherits Computer class and adds fields representing color,

monitor size, and processor type and Override function named show() to display values

of its all attributes

A class named Laptop inherits Computer class and adds fields representing color, size,

weight, and processor type and Override function named show() to display values of its

all attributes

In Main() instantiate objects of derived classes to access respective show() functions to

see the polymorphic behavior.


Given a string, write a code to count all palindrome sub string in a given string. Length of palindrome sub string is greater than or equal to 2.

You are assigned to develop a project(complete codes) in which project



manager wants following functionality.



1. Create Student Folder in C drive using Directory class.

write a program that input a series of 500 numbers in ID array later find and display the minimum values and maximum values and average of all numbers


Override toString() in the Student and Employee classes. For example, if a Student object is created like this:

Student student = new Student("Maria",18,"BSIT",1);

then the Student class’ toString() method will return this string:

Maria 18 BSIT 1




Create a program of temperature conversion using basic program

Write a program that asks the users to enter five characters. Then the program should display the following menu



a. Sort in Ascending order



b. Sort in Descending order



The program should perform sorting of these five characters in ascending or descending order as per the user requirement




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS