Addition of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., “1203009954” and
“109876201453”) from the user and add these two numbers and store answer in a third char array
digit by digit (“111079211407”).
function prototyoe:char* additionOfBigInteger(char * Num1, char* Num2)
Subtraction of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”
“109876201453”) from the user and subtract these two numbers and store answer in a third char
array digit by digit (“-108673191499”).
function prototyoe:char* subtractionOfBigInteger(char * Num1, char* Num2)
Multiplication of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”
“109876201453”) from the user and multiply these two numbers and store answer in a third char array digit by digit (“132182164055668263162”).
function prototyoe:char* multiplicationOfBigInteger(char * Num1, char* Num2)
can i get code for this
input:
4
2
3
5
7
output:2
with following steps:
Read the Input into a variable.
Now using the loop iterate in range 1 to input.
Again read the second input into the variable.
Now take the count to assign the value 0 to it.
Using loop condition iterate from range 1 to second input.
using the if condition checks the condition that the second input is divisible by number then increment the count.
If the count is equal to 2
print the number and break from the loop.
Design and develop a program that will accept Name and Total Units enrolled
to compute and display the tuition fees, miscellaneous fees and the total assessment of
a student.
To compute for Tuition Fees, multiply Total Units Enrolled and Payment per
Unit which is set to 250.
To compute for Miscellaneous Fees, add library fee, laboratory fee,
accreditation fee, student welfare fund, institutional development fund,
outreach and management fee which are set to 750.00, 1000.00, 250.00, 150.00,
200.00, 100.00 and 500.00 respectively.
To compute for the Total Assessment, add Tuition Fees and Miscellaneous
Fees.
Write a program that will get the average of all integers from 1 to 20 using do-while loop
Create a C program that the user can make a selection.
Sample Output :
E or e for Even
O or o for Odd
X or x for Exit
A Character that is not on the selection print Error!
Print 1 to 10 and multiply it to 1 to 20 even numbers using while loop in c.
Sample Output :
1 * 2 = 2
2 * 4 = 8
3 * 6 = 18
4 * 8 = 32
5 * 10 = 50
6 * 12 = 72
7 * 14 = 98
8 * 16 = 128
9 * 18 = 162
10 * 20 = 200
Write a generic C++ recursive function PrintPattern2 to print diamond pattern using recursion. No loops allowed whatsoever, and you can write other helping (recursive) functions. For example, calling your function with these argument PrintPattern2(5,1,5) should print following pattern.
Your function prototype must be as follows:
void PrintPattern2(int, int ,int);
Write a program that takes a 2D pointer array and calculate sum of even and odd using recursive
function.
int sum(int **array, int row, int column, int &evenSum, int &oddSum)
Given a string, write a recursive function to find its first uppercase letter. Your function should
return the letter.
Function Prototype: char findUppercase(char* str);
How to execute this using vector
#include <iostream>
int main() {
int size, index, largest, smallest;
std::cout << "How many intergers you want to input? ";
std::cin >> size;
int myarray[size];
std::cout << "Input the elements of the array: ";
for (index = 0; index < size; index++)
std::cin >> myarray[index];
largest = myarray[0];
smallest = myarray[0];
for (index = 0; index < size; index++) {
// largest
if (myarray[index] > largest)
largest = myarray[index];
// smallest
if (myarray[index] < smallest)
smallest = myarray[index];
}
std::cout << "The largest element in the array is: " << largest << ".\n";
std::cout << "The smallest element in the array is: " << smallest << ".\n";
return 0;
}