arrow
arrow

Here you get the code sheets

Basics:

Sum_Of_Two_Numbers


                            
                                #include<iostream>
                                    using namespace std;
                                    int main()
                                    {
                                        int num_1=50;
                                        int num_2=100;
                                        int sum;
                                        sum=num_1+num_2;
                                        cout<<"The sum of these two numbers = "<<sum<<endl;
                                        return 0;
                                    }
                                    
                            
                        

To learn about the basics



Get Slides in which all basics cover thoroughly


------------------------------------------

Download PDF HERE

Sales_Prediction


                        
                            #include<iostream>
                                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 = "<<predict_division<<endl;
                                     
                                    return 0;
                                }
                        
                    

Sales_Tax


                        
                            #include<iostream>
                                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:"<<totalSaleTax<<endl;
                                    return 0;
                                    
                                }
                        
                    

Resturant_Bill


                        
                            #include<iostream>
                                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 = "<<mael_cost<<endl;
                                   cout<<"The amount of tax = "<<tax<<endl;
                                   cout<<"The amount of tip = "<<tip<<endl;
                                   total_tax=tax+tip;
                                   tax_rate=total_tax/100;
                                   tax_amount=mael_cost*tax_rate;
                                   total_bill=tax_amount+mael_cost;
                                   cout<<"The total amount of the bill = "<<total_bill<<"$"<<endl;
                                
                                    return 0;
                                }
                        
                    

Average_oF_Three_Values


                        
                            /*Program to display the Average of three variables*/
                            #include<iostream>
                            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 = "<<num1<<endl;
                                cout<<"Number 2 = "<<num2<<endl;
                                cout<<"Number 3 = "<<num3<<endl;
                                cout<<"The average of these three numbers = "<<average<<endl;
                                return 0;
                                
                            }
                        
                    

Annual_Pay


                        
                            /*Program to display the anual_pay of user income */
                            #include<iostream>
                            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 = "<<pay_Amount<<endl;
                                cout<<"The number of pay periods in a year = "<<pay_Periods<<endl;
                                annual_Pay=pay_Amount*pay_Periods;
                                cout<<"The employee\'s total annual pay, which will be calculated = "<<annual_Pay<<endl;
                                
                                return 0;
                            }
                        
                    

Ocean_Levels


                        
                            #include<iostream>
                                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 = "<<rise_perYear*5<<endl;
                                    cout<<"The number of millimeters higher than the current level that the ocean\'s level will be in 7 years = "<<rise_perYear*7<<endl;
                                    cout<<"The number of millimeters higher than the current level that the ocean\'s level will be in 10 years = "<<rise_perYear*10<<endl;
                                
                                    return 0;
                                }
                        
                    

Total_Purchase


                        
                            #include <iostream>
                                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 "<<endl;
                                    cout << "The amount of subtotal = " << subTotal << endl;
                                    cout << "The amount of sales_tax = " << salestax << endl;
                                    rate=(float)salestax/100;//To get the anse in float it must be store as float
                                    total_tax=rate*subTotal;
                                    total=total_tax+subTotal;
                                    cout<<"The total amount with tax = "<<total<<endl;
                                    return 0;
                                }
                        
                    

Cyborg Data Type Sizes


                        
                            #include <iostream>
                                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 <iostream>
                                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 <iostream>
                                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 <iostream>
                                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 <iostream>
                                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 <iostream>
                                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 <iostream>
                                using namespace std;
                                int main()
                                {
                                    cout << "   *   " << endl;
                                    cout << "  ***  " << endl;
                                    cout << " ***** " << endl;
                                    cout << "*******" << endl;
                                
                                    return 0;
                                }
                        
                    

Diamond


                        
                            #include <iostream>
                                using namespace std;
                                int main()
                                {
                                    cout << "   *   " << endl;
                                    cout << "  ***  " << endl;
                                    cout << " ***** " << endl;
                                    cout << "*******" << endl;
                                    cout << " ***** " << endl;
                                    cout << "  ***  " << endl;
                                    cout << "   *   " << endl;
                                
                                    return 0;
                                }
                        
                    

Stock Commission


                        
                            #include <iostream>
                                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 <iostream>
                                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.