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.