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

Consider an array of student marks for subject Data structure of 50 students in a class. Faculty had wrongly entered marks for a student (Roll no 36). So write a module in C language to delete the student mark and update the list. Also enter a mark at last of the array.

Given an integer

N as input, write a program to print a number diamond of 2*N -1 rows as shown below.Note: There is a space after each number.

Input

The first line of input is an integer

N.

In the given example, the number of rows in the diamond is

5.So, the output should be

    1 
   1 2 
  1 2 3 
 1 2 3 4 
1 2 3 4 5 
 1 2 3 4 
  1 2 3 
   1 2 
    1

4,So the output should be

   1 
  1 2 
 1 2 3 
1 2 3 4 
 1 2 3 
  1 2 
   1
Writes a class Triangle with the data member base , height , area and color . The base , height and area are double type and color is type c - string ( a c - string is defined as an array of type char ) . The member functions of the class is inputData for taking base , height and color values from the user and findArea member function to calculate the area of the rectangular using formula area = 1 / 2 * base * height . Create another class name Match Triangle that overloads operator for comparing class objects . Define appropriate constructors of the classes . Create two objects of in main ( ) , inputs the values and compare the objects . If the area and color of both objects are same then display a message in main Matching Triangle " otherwise display a message Non - Matching Triangle "

write a pseudocode and flowchart to input employee number, employee name, basic salary , allowance and deduction of the employee. find out net salary of employee . employee get a bonus salary which is 10 percent of net salary and 5 % of basic salary , company awards a festival advance which is price 10000 for this month festival advance included for the Gross salary but for the next month it is excluded. find out and output net salary , bonus salary , gross salary of the current month ans gross salary of the next month


write a program to initialize the value as 5.800000 & display the value on the monitor as 5.80000

Given two strings

inputString and subString as inputs, write a JS program to slice the inputString if it includes the subString. Slice the inputString starting from the subString to the end of the inputString.Input

  • The first line of input contains a string inputString
  • The second line of input contains a string subString

Output

  • The output should be a sliced string or inputString (if the inputString does not include the subString)

Sample Input 1

JavaScript

S

Sample Output 1

Script

Sample Input 2

Language

air

Sample Output 2

Language



write a program to initialize the value as 5.800000 & display the value on the monitor as 5.8000?

What is the output of the following C++ code?

x = 5; y = 30;

while (x <= y)

x = x * 2;

cout << x << " " << y << endl;


#include <iostream.h>

using namespace std;

 

int main( void )

 {

int y;

int x = 3;

 

int total = 0;

 

while ( x <= 10 ) {

 y = x * x * x;

 cout<<y<<endl;

 total += y;

 ++x;

 } // end while

 

 Cout<< "The total is: "<< total <<end;

 

 } // end main


Accept one number and find out if its positive or negative number using class


LATEST TUTORIALS
APPROVED BY CLIENTS