Write a C++ program to create two pointers of integer type, now take values in these pointers and pass them to a function. Function will update both the values by adding “1” to them. Display the updated values in main.
Using a Decision Control Structure (if), create a flowchart and a java program that
reads a commodity code, quantity of the commodities bought and the unit price and
output the amount to be paid by the customer.
Q: Explain in your own words that how we evaluate postfix expressions using stack
Write a C++ program that converts from meters to feet using type
conversion from built in type to class type (Create Feet class).
1 feet = 0.3 meter
If meter value is less then 30 throw an exception.
Store each value in receptive files, Meters.txt and Feet.txt and display
each value as per user selection.
Determine what's wrong in this code and change it.
#include
using namespace std;
int main(){
cout<<"Hello there, please tell me your name?";
char name[50];
cin>>name;
cout<<" Thank you, "< cout<<"Enter 1 or 2\n";
int n;
cin>>n;
if(n==1){
cout<<"True\n";
}
else if(n==2){
cout<<"False\n";
}
else{
cout<<"Invalid\n";
}
cout<<"Enter your birth year:\n";
int year;
cin>>year;
cout<<"Your age is: "<<2021- year<}
All the banks operating in India are controlled by RBI. RBI has set a welldefined guideline (e.g. minimum interest rate, minimum balance allowed,
maximum withdrawal limit etc) which all banks must follow.
For example, suppose RBI has set minimum interest rate applicable to a
saving bank account to be 4% annually; however, banks are free to use 4%
interest rate or to set any rates above it.
Write a program to implement bank functionality in the above scenario.
Create few classes namely Customer, Account, RBI (Base Class) and two
derived classes (SBI, ICICI). Assume and implement required member
variables and functions in each class.
Create a menu-driven program. Use pure virtual function.
wap to overload the following operators for class distance which stores the distance in feet and inches binary+ to add an object to an integer where the integer should be added to the inches value
Using a while loop, and appropriate increment/decrement operators.Write a while loop that prints to console all values of the 9 times table from 108 to 9.