C++ Answers

Questions answered by Experts: 9 913

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

Write a program to remove the duplicate elements from a sorted linked list.
Write a program to implement the Doubly linked list. Perform the following operations on
the doubly linked list:
 Creating an empty doubly linked list
 Adding the new element at the beginning of the linked list.
 Deletion of a node after a particular location.
 Counting the no of nodes.
 Displaying the linked list.

Design an algorithm which gets a natural value N as it's input and calculate the numbers equal or less than N. Then write it in a standard output.


WAP in C++ to find multiplication of two complex numbers using constructor overloading. The first constructor which takes no argument is used to create objects which are not initialized, second which takes one argument is used to initialize real and imag parts to ‘equal values and third which takes two argument is used to initialized real and imag to two different values.


QUESTION 7

(20 marks)

A savings and loan association has decided to undertake the development of an in-house computer system to 

replace the processing it currently purchases from a time-sharing bureau. The internal auditors have suggested 

that the system development process be planned in accordance with the Systems Development Life Cycle. The 

following items have been identified as major systems development activities that will have to be undertaken

I.System test

II.Initial investigation

III.Install hardware and software

IV.Implementation planning 

V.Conversion

VI.System survey

VII.Technical specifications

VIII.Systems modification 

IX.User procedures and training

X.Programming

Required:

a)Arrange the above ten items in the sequence in which they should logically occur. (10 marks)

b)Discuss the conceptual systems design process in the SDLC and the activities in this phase. 



#include <iostream>

using namespace std;

class A {

  protected:

    char i;

  public:

    A(char a): i(a) {}

    void display(char x){

      cout << x << " ";

    }

// create abstract function fun()

    ______________________;       

};

class B: ________ {             

  public:

    B(int a = 0): A(a) {}

    void fun(){ display(i+1); }

};

class C: ________ {             

  public:

    C(int a = 0): A(a) {}

    void fun(){ display(i+2); }

};

class D: ________ {           


Show that n = O(nlogn).


Declare a double array of length 13 dArray.

• Input the values of dArray from user.

• Display the values of even indexes using pointer arithmetic only.


Declare an array ‘list’ of length 15.

• Input the values from user.

• Pass that array to a function sorting.

• Your function should only accept a pointer as an argument.

• Sort the values of the array in ascending order using any of the sorting techniques.


Write a function to calculate the Cube × Cube of a number C. Your function should take an

integer pointer to C. Display the original value of C and its Cube × Cube cube in the main

function.


LATEST TUTORIALS
APPROVED BY CLIENTS