#include
using namespace std;
int main()
{
long double sales=8.6E6;
float percentage=0.56;
long double predict_division=0;
predict_division=sales*percentage;
cout<<"The predicted sales percentage = "<
#include
using namespace std;
int main()
{
int purchase=95;
int stateTax=4;
int countryTax=2;
int totalTax=stateTax+countryTax;
int totalSaleTax=0;
totalSaleTax=(purchase*totalTax)/100;
totalSaleTax=totalSaleTax+purchase;
cout<<"The total sales tax is given as:"<
#include
using namespace std;
int main()
{
float tax=6.75;
int tip=20;
float mael_cost=88.67;
float total_tax=0;
float tax_rate;
float tax_amount;
float total_bill;
cout<<"The cost of meal is = "<
/*Program to display the Average of three variables*/
#include
using namespace std;
int main()
{
int num1=5;
float num2=8.9;
double num3=9.888;
double average=0;//Intiliaze to zero to overwrite the garbage value
average=(num1+num2+num3)/3;//Parantesis are used to discarge the priority order of division
cout<<"Number 1 = "<
Annual_Pay
/*Program to display the anual_pay of user income */
#include
using namespace std;
int main()
{
int pay_Amount=2000;
int pay_Periods=12;
int annual_Pay=0;//Intiliaze to zero to overwrite the garbage value
cout<<"The amount of pay the employee earns each pay period = "<
Ocean_Levels
#include
using namespace std;
int main()
{
float rise_perYear=1.5;
cout<<"The number of millimeters higher than the current level that the ocean\'s level will be in 5 years = "<
Total_Purchase
#include
using namespace std;
int main()
{
float Pricofitem1 = 15.95;
float Priceofitem2 = 24.95;
float Priceofitem3 = 6.95;
float Priceofitem4 = 12.95;
float Priceofitem5 = 3.95;
float subTotal = Pricofitem1 + Priceofitem2 + Priceofitem3 + Priceofitem4 + Priceofitem5;
int salestax = 7;
float total_tax;
float total;
double rate=0;
cout << "Price of item 1 = $15.95 " << endl
<< " Price of item 2 = $24.95 " << endl
<< " Price of item 3 = $6.95 " << endl
<< " Price of item 4 = $12.95 " << endl
<< " Price of item 5 = $3.95 "<
Cyborg Data Type Sizes
#include
using namespace std;
int main()
{
cout << "The size of memeory of int dataType = " << sizeof(int) << " Bytes" << endl;
cout << "The size of memeory of float dataType = " << sizeof(float) << " Bytes" << endl;
cout << "The size of memeory of double dataType = " << sizeof(double) << " Bytes" << endl;
cout << "The size of memeory of char dataType = " << sizeof(char) << " Bytes" << endl;
cout << "The size of memeory of bool dataType = " << sizeof(bool) << " Bytes" << endl;
cout << "The size of memeory of long int dataType = " << sizeof(long int) << " Bytes" << endl;
cout << "The size of memeory of long long int dataType = " << sizeof(long long int) << " Bytes" << endl;
cout << "The size of memeory of long double dataType = " << sizeof(long double) << " Bytes" << endl;
return 0;
}
Miles_Per_Gallion
#include
using namespace std;
int main()
{
int gallons_of_Gasoline = 15;
int car_travel_miles = 375;
float MPG;
MPG = (float)car_travel_miles / gallons_of_Gasoline;
cout << " The number of miles per gallon the car gets = " << MPG<<"m/g" << endl;
return 0;
}
Distance per Tank of Gas
#include
using namespace std;
int main()
{
int gallon_space = 20;
float mpg_town = 23.5;
float mpg_highway = 28.9;
float distance_town;
float distance_highway;
distance_town = gallon_space * mpg_town;
distance_highway = gallon_space * mpg_highway;
cout << "The distance the car can travel on one tank of gas when driven in town = " << distance_town <<"miles"<< endl;
cout << "The distance the car can travel on one tank of gas when driven on highway = " << distance_highway <<"miles"<< endl;
return 0;
}
Land Calculation
#include
using namespace std;
int main()
{
int one_acre = 43560;
long int tract = 391876;
float numberOfAcresInTract = 0;
numberOfAcresInTract = (float)tract / one_acre;
cout << "The number of acres in a tract of land with 391,876 square feet = " << numberOfAcresInTract << endl;
return 0;
}
Circuit Board Price
#include
using namespace std;
int main()
{
int profit_percent = 35;
float costs = 14.95;
float total = 0;
total = (float)35 / 100;
total = total * costs;
total = total + costs;
cout << "The total cost of the circuit_board = " << total << endl;
return 0;
}
Personal Information
#include
using namespace std;
int main()
{
cout << "Muhib Arshad" << endl;
cout << "Raheem_town street #01 canal_road Tehsil Kabirwala District khanewal Country Pakistan and Zip code is +92" << endl;
cout << "03006373841" << endl;
cout << "Software_Engeenering" << endl;
return 0;
}
Triangle Pattern
#include
using namespace std;
int main()
{
cout << " * " << endl;
cout << " *** " << endl;
cout << " ***** " << endl;
cout << "*******" << endl;
return 0;
}
Diamond
#include
using namespace std;
int main()
{
cout << " * " << endl;
cout << " *** " << endl;
cout << " ***** " << endl;
cout << "*******" << endl;
cout << " ***** " << endl;
cout << " *** " << endl;
cout << " * " << endl;
return 0;
}
Stock Commission
#include
using namespace std;
int main()
{
int shares = 750;
float stockprice = 35.00;
int comession = 2;
float amount_Of_comession;
float total_paid;
amount_Of_comession = (float)2 / 100;
amount_Of_comession = amount_Of_comession * stockprice;
total_paid = amount_Of_comession + stockprice;
cout << " The amount paid for the stock alone (without the commission) = " << stockprice << endl;
cout << " The amount of the commission = " << amount_Of_comession << endl;
cout << " The total amount paid (for the stock plus the commission) = " << total_paid << endl;
return 0;
}
Energy Drink Consumption
#include
using namespace std;
int main()
{
int customers = 16500;
int purchase_one_or_more_drinks_per_week_percentage = 15;
int who_prefer_citrus_flavored_energy_drinks = 58;
float total_customers_who_drink_more = 0;
float total_customers_who_like_citrus = 0;
total_customers_who_drink_more = (float)15 / 100;
total_customers_who_drink_more = total_customers_who_drink_more * customers;
total_customers_who_like_citrus = (float)58 / 100;
total_customers_who_like_citrus = total_customers_who_like_citrus * customers;
cout << " The approximate number of customers in the survey who purchase one or more energy drinks per week = " << total_customers_who_drink_more << endl;
cout << " The approximate number of customers in the survey who prefer citrus-flavored energy drinks= " << total_customers_who_like_citrus << endl;
return 0;
}
Whats make this website differents from others?
Amazing Feature That Increase your Productivity
If you don't find any problem,in this website and if you have a very difficult assignment
question that
is not present on internet ,then you dont bother yourself,we are here to solve every problem
of
your
life you just click on the Problem asking button and write your problem we slove the code of
your
problem and sent you on your email addres that you put in the sin up form.