Assume your team is part of a research project. Your team wants to create a simple software that compares two strings, but they're undecided about whetheror not to use pointers. Your group now has the duty of creating or converting your initial code into a pointer-based compare two strings program and determining whether or not pointers are useful in this program.
Example like this:
#include <iostream>
using namespace std;
string convert(string s)
{
for (int i=0; i<s.length() ;i++)
{
s[i]=toupper (s[i]);
}
return s;
}
int main()
{
string string01,string02;
cout<<"String 1 : ";
cin>>string01;
cout<<"String 2 : ";
cin>>string02;
if(convert(string01)==convert(string02)) {
cout<<"Two strings is equal";
}
else{
cout<<"Two strings is not equal";
}
}Implement a class that realizes linked lists consisting of nodes with integer values.a) bool isEmpty(); b) int length(); returns the number of nodes in the list, which is 0 for the empty list. c) void print(); print the content of all nodes. d) void addAsHead(int i); creates a new node with the integer and adds it to the beginning of the list. e) void addAsTail(int i); creates a new node with the integer and adds it to the end of the list. f) Node find(int i); returns the first node with val i. g) void reverse(); reverses the list. h) int popHead(); returns the value of the head of the list and removes the node, if the list is nonempty, otherwise returns NULL. i) void removeFirst(int i); removes the first node with val i. j) void removeAll(int i); removes all nodes with val i. k) void addAll(List l); appends the list l to the last element of the current list, if the current list is nonempty, or lets the head of the current list point to the first element of l if the current list is empty.
Write a program to enter a number that should be less than 100 and greater than 9.
Create a program that asks the user to input 5 numbers. The numbers should be stored in a list, after which, your program should determine the lowest number on the list using a loop then it will display the lowest number. Comment your code below. Sample Output: Enter 5 numbers: 6 3 2 1 4 Lowest Number is 1
.Write a class called LoanProcess with Loan_ No, Customer Name, LoanAmount, EMI_ Amount, Account_Balance as its members. Create a method calculate_EMI() for the LoanAmount, with the rate of interest as 13% for a total of 3 years and store it in the EMI_ Amount. The rest of the information to be passed through constructors. Write another function CheckBalance() which checks if the Account Balance is less than the EMI_AMount. If yes then throw a custom exception. Display "Not Sufficient Balance to repay Loan" in the finally. Give explanatory comments.
Write a program using standard wtring functions that accepts a price of an item and display its coded value. The base of key is:
X C 0 M P U T E R S
0 1 2 3 4 5 6 7 8 9
Sample Input/output Dialogue:
Enter Price: 489.50
Coded Value: PRS: UX
Write a Python program to count integer in a given mixed list.
Original list:
[1, 'abcd', 3, 1.2, 4, 'xyz', 5, 'pqr', 7, -5, -12.22]
Write a program in C++ to generate the following pyramid of numbers.
0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
5 4 3 2 1 0 1 2 3 4 5
6 5 4 3 2 1 0 1 2 3 4 5 6
Write a program in C++ to read a positive integer number n and to generate the numbers in the
following form.
For example,
Enter a number: 5
Output 5 4 3 2 1 0 1 2 3 4 5
Enter a number: 7
Output 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7
Overloaded insertion operator to display the Time in the form hr:min:sec. If hours, minutes
and/or seconds is a single digit, the time should be shown as 0x: where x is hours, minutes or
seconds. Example: 02:33:45, 13:05:66, 23:17:09