In this blog we will provide info about tech,beauty,health and very other topic trending topic will also discuss

Breaking

Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Saturday, March 28, 2020

March 28, 2020

How to make Hangman Game using C++

#include<iostream> // Library
#include<time.h> // for time
#include <stdlib.h> // for rand, srand
using namespace std; 

void hangman(); // function prototype
int charcount(const char* x); // function prototype
void game(const char* y); // function prototype

int charcount(const char* x) // counting characters in a country's name
{
    int count = 0;
    while (*x != '\0')
    {
        x++;
        count++;
    }
    return count;
}
void game(const char* y) // This is the main game and print function where everything happens
{
    int size = charcount(y); // getting number of characters in a country's name
    char temparr[10];// creating a temporary character array of size 10
    int loopcount = 0; // loopcheck is used to check if the word that user entered matches any letter of the country name and counts it
    int wrngcount = 0; // it counts when the word user entered does not match any character

    for (int i = 0; i < size; i++) // fills the tempstr with dashes and prints it separately
    {
        temparr[i] = '_';
        cout << "_ ";
    }
    for (int loop = 0; loop < 8;)// this loop runs if user makes 8 mistakes during game
    {
        int wrngcheck = 0; // this is a check variable to check for right and wrong answers
        char guess; // this is an input character variable that user will enter 

        cout << "\nGuess any Letter of the Country's Name: ";
        cin >> guess; // taking input from user 
        for (int i = 0; i < size; i++)// this is the loop that compares the input letter with the characters of the country name
        {
            if (guess == y[i] && temparr[i] == '_') // if statment to check variable and vheck tempstr if any value is already in there
            {
                temparr[i] = guess;       // writing the tempstr character string
                loopcount++; // the loopcount counts the time this loop has run
                wrngcheck = 1;// if any letter matches the check is turned true(value set to 1) 
            }
            else;
        } // letter check loop ends here

        if (wrngcheck == 0) // 
        {
            wrngcount++; //if letter doesnt match, it increses the wrong count
            loop++;// and it also increases the loop
        }
        else;
        system("CLS"); // clearing screen
        for (int i = 0; i < size; i++)
        {
            cout << temparr[i] << " "; // printing the temporary character string with the modified values in it
        }
        if (wrngcount == 8) // hangman displaying code from here below. it shows the character based on the value of wrong choices counter 
        {
           cout << endl << endl<< endl
                << "     ('')   " << endl
                << "     _||_/  " << endl
                << "    / ||    " << endl
                << "    _/  L_  " << endl
                << "==============" << endl << endl
                << "NO MORE CHANCES! YOU ARE DEAD!" << endl;
        }
        else if (wrngcount == 7)
        {
            cout << endl << endl<< endl
                << "     ('') " << endl
                << "     _||_/" << endl
                << "    / ||  " << endl
                << "    _/    " << endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 1 Chance Left! Try Again\n";
        }
        else if (wrngcount == 6)
        {
            cout << endl << endl<< endl
                << "     ('') " << endl
                << "     _||_/" << endl
                << "    / ||  " << endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 2 Chance Left! Try Again\n";
        }
        else if (wrngcount == 5)
        {
            cout << endl << endl<< endl
                << "     ('') " << endl
                << "     _||_/" << endl
                << "    /     " << endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 3 Chance Left! Try Again\n";
        }
        else if (wrngcount == 4)
        {
            cout << endl << endl<< endl
                << "     ('')     " << endl
                << "     _||      " << endl
                << "    /         " << endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 4 Chance Left! Try Again\n";
        }
        else if (wrngcount == 3)
        {
            cout << endl << endl<< endl
                << "     ('') " << endl
                << "      ||  " << endl<< endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 5 Chance Left! Try Again\n";
        }
        else if (wrngcount == 2)
        {
            cout << endl << endl<< endl<< "     ('') " << endl<< endl<< endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong!! 6 Chance Left! Try Again\n";
        }
        else if (wrngcount == 1)
        {
            cout << endl << endl<< endl<< "     ('   " << endl<< endl<< endl<< endl<< endl<< "==============" << endl << endl;
            cout << "\n\nWrong! 7 Chance Left! Try Again\n";
        }
        else
        {
            cout << "\n\n8 Chances Left!";
        } // hangman cartoon printing stops here
        if (loopcount == size || loop == 8) // if game correct choices reach country name's character limit or game wrong choices reach limit 8. loop will teerminate 
        {
            if (loopcount == size)// checking if user entered all correct characters before limit reached and print win messege
                cout << "\n\nYOU WIN";
            else // otherwise it will print the lost messege and shows the correct answer
            {
                cout << "\n\nYOU LOSE";
                cout << "\n\nCorrect Answer is " << y;
            }
            cout << "\n\n***GAMEOVER***"; // printing game over and breaking loop if either of the above condition is satisfied
            break;
        }
    }
    int select = 0; // declaring another variable for user choice and using it to call the game again if user wants to play again otherwise it exits the game
    cout << "\n\nDo You want to play again!(0 for no): ";
    cin >> select;
    if (select == 0)
        cout << "\n\nEXITING GAME\n\n";
    else {
        system("CLS"); // clears the screen before game restarts
        hangman();
    }
}

void hangman()
{
    const char* china = "china"; // declaring five countries as shown below
    const char* pak = "pakistan";
    const char* turk = "turkey";
    const char* india = "india";
    const char* japan = "japan";
    srand((unsigned int) time(0)); // calling random funtion to choose any number between 1 and 5
    int n = rand() % 5 + 1;

    if (n == 1) // assigning numbers to countries calling the game function by passing country names pointer to the game function
        game(pak);
    else if (n == 2)
        game(japan);
    else if (n == 3)
        game(turk);
    else if (n == 4)
        game(china);
    else if (n == 5)
        game(india);
    else;
    cout << "\n";
}

int main()
{
    cout << "***WELCOME TO HANG THE MAN GAME***\n\n"; // displaying main screen and rules
    cout << "Rules\n\n1.Use lower case letters only\n2.You have only 8 wrong choice limit\n3.One letter once used cannot be used later as you will end up using your Wrong choices\n\n";
    hangman(); // calling the main function

Wednesday, October 23, 2019

October 23, 2019

what is global marketing

    GLOBAL MARKETING
                
 growing number of U.S. corporations ha transverse geographical boundaries and become Transvaal geographical boundary and become true.
multinational in nature. For most other dome companies, the question is no longer, Should we go int factional? Instead, the questions relate to when, how, and where companies should enter the international marketplace. The 15 years have seen the reality of a truly world market unfold in today's world, the global economy is becoming almost total integrated, versus 25 percent integrated in 1980 and 50 percent integrated in the early 90s. Primary reasons for previously sane rated, individual markets evolving to a network of interpret. dent economies include
1. The growing influence and economic development of lesser developed countries. In years to come, the real battleground for the two trade powers. the United States and Japan, will take place in the developing world. Containing 80 percent of the world's population and with growth rates nearly double those of industrial nations, these countries have emerged as the “fourth engine in the world economy” (following the United States, Japan,and Europe).
 2. The integration of world financial markets. For example, changes in currency exchange rates between the yen and the dollar greatly influence issues relating to import and export activities for all countries.
3. Increased efficient in transportation and telecommunication and data communication networks. To illustrate, consider the cases of Eastern Europe, China, and Russia. In these countries, technological advances have allowed the emergence of stock exchanges on which brokers throughout the world can trade.
 4. The opening of new markets. For example, recent political events in Vietnam have led to the opening of a market that for decades (since the Che the Vietnam War) was closed to U.S. companies.


Multinational firms invest in foreign countries for the same basic reasons they invest in their own country. These reasons vary from firm to firm but falll under the categories of achieving offense or defense goals. Offense goals recto (1) increase long-term growth and profit prospects; (2) maximize total vales revenue; (3) take advantage of economies of scale; and (4) improve era market position. As many American markets reach saturation, American firms look to foreign markets as outlets for surplus production capacity cures of new customers, increased profit margins, and improved returns investment. For example, the ability to expand the number of locations of McDonald's restaurants in the United States is becoming severely limited. Yet, on any given day, only 0.5 percent of the world's population visits McDonald's. This fact illustrates the vast potential markets still open to the company Indeed, in the recent past, of the 50 most profitable McDonald's outlets, 25 were located in Hmong Kong. For Pepsi Co, the results are similar. Its restaurant division operates 7,400 Kentucky Fried Chicken, Pizza Hut, and Taco Bell outlets abroad, deriving over $5.6 billion in sales from these foreign locations.


Multinational firms also invest in other countries to achieve defense goals. Chief among these goals are the desire to (1) compete with foreign companies on their own turf instead of in the United States; (2) have access to technological innovations that are developed in other countries; (3) take advantage of significant differences in operating costs between countries; (4) preempt competitors' global moves; and (5) not be locked out of future markets by arriving too late.
Such well-known companies as Zenith, Pillsbury, A&P, Shell Oil, CBS Records, and Firestone Tire & Rubber are now owned by non-U.S. interests. Since 1980, the share of the U.S. high-tech market held by foreign products has grown from less than 8 percent to close to 25 percent. In such diverse industries as power tools, tractors, television, and banking, U.S. companies have lost the dominant position they once held. By investing solely in domestic operations or not being willing to adapt products to foreign markets, U.S. companies are more susceptible to foreign incursions. For example, there has been a great uproar over Japan's practice of not opening up its domestic automobile market to U.S. companies. However, as of 1996, a great majority of the American cars shipped to Japan still had the steering wheel located on the left side of the vehicle--the opposite of where it should be for the Japanese market.
In many ways. marketing globally is the same as marketing at home. Regardless of which part of the world the firm sells in, the marketing program must still be built around a sound product or service that is properly priced, promoted, and distributed to a carefully analyzed target market. In other words, the marketing manager has the same controllable decision variables in both domestic and non domestic markets.
read more in this blog:
October 23, 2019

UP COMING GOOGLE PROJECTS



I didnt think we could fall in love broken from the start into our paste we had closed hearts Whats up guys? Hope you are all doing well today. We will be talking about 10 ambitious Google alphabet projects. You may not have heard about Google went through a massive Reorganization in October of 2015 when alphabet became its parent company Projects that [we arent] [a] part of Google core businesses such as Google search engines and Android were spun out into separate alphabet companies with their own C.E.Os All of these moonshot projects cover everything from making smarter homes to creating robots that can work alongside humans But even Google proper which now falls on the alphabet still has oversight over some of these futuristic projects Here are 10 most ambitious.










MOONSHOT PROJECTS:
 Moonshot projects on the alphabet and what they hope to accomplish First is delivery drones project wing is alphabets desire to replace your mailman with flying drones a Patent filed in October of 2014 gave us better insight as to how the project would work The drone will lower a package using a winch to tiny robots on the ground These robots will then wheel the packages to a safe holding location Alphabet plans and releasing the Drone delivery service to the public in 2017 Project wing is run by Google x the company under Alphabet.Next up is smart contact lenses Alphabet is pursuing smart contact lenses that are [solar-Powered] and Collect biological data about the wearer Sensors embedded in the contacts could collect information like body temperature and blood alcohol content The tech giant [also] announced in 2014 that it was receiving contact lenses that would use tiny glucose sensors to measure sugar levels in your cheers The project is run by Alphabets verify company which was originally named "Google life sciences"Next up; internet beaming, hot-air balloons project loon is Alphabets desire to bring internet to two-thirds of the worlds population using internet beaming,

 Hot-air balloons:
The project has been in the web since 2011 about two years before it was unveiled to the public The solar-Powered balloons fly at a high altitude to provide broadband to areas without internet access you[can] read the specifics about how the project works here project loon is one under Google Next on; our list cancer detecting pill the tech giant is designing tiny magnet particles that can look into signs of cancer and other diseases in the human body [the][project] however is at least another four years away from being ready for the [final] time the project is being run by Google X research lab Next on; our list is internet beaming drones Alphabet has two approaches to beaming the [internet] around the world Hot air balloons and drones the tech giant bought titan aerospace which makes the solar-Powered drones that are built to fly non-stop for years the Titan aerospace, So lara 50 has a wingspan of150 feet and is equipped with[3,000] solar cells which can provide seven kilowatts of electricity to stay airborne for five years?They can also take aerial photography the drone project is run as a part of [project] titan under Google Next up; robots Google turn Alphabet acquired a ton of robotic companies in 2013One that stands out is Boston Dynamics Boston Dynamics creates a number of robots Inspired by animals to aid in military use the one pictured here is called the cheetah robot the fast legged robot in the world.The cheetah Robot can get to a speed of 29 miles per hour crushing a 13.1 mile per hour speed record set by MIT in1989 you can see a list of.
 its robotic projects:
 here all robot projects are run as a part of replicant which is controlled by Google Next on our list is longer lasting batteries Creating longer-lasting batteries may not seem like an ambitious project, but its actually a pretty difficult one There is a lot of demand [for] batteries that last longer when it comes to creating popular consumer items like smart phones. The [Alphabet] CEO larry page told analysts in 2013 that battery life and mobile devices is a huge issue with real potential to invent new and better experiences a small group of just four members is currently working on that issue under Google Next up a giant genomic [storing] services Google will store your genome in the cloud for $25 and the storage system could have a major impact on the scientific community the hope is to collect millions of genomes to aid in scientific research as MIT review reports of the system could aid in Collecting cancer Genome clouds that would allow scientists to Share information and one virtual experiments the project is run Under Google X[next] up [goods] project to cure death the tech giant has taken on the ambitious project of extending the average Life span.The research being done has been kept fairly hush But we know researchers are looking at things like genes that correlate to longer Lifespans in certain people.The project is run by Calico a company under Alphabet that stands for California Life Company and Next on our list is artificial intelligence Deep mind. Which is the Company AI research firm falls under Google as a traditional product Google has made massive strides with refining its AI in January Google [AI] beats a human at a complex game of go for the very first time Google AI was also capable of learning to play and win Atari 2600 games without any prior instruction in 2015More recently a company AI system was able [to] successfully navigate a maze on a computer game. The same way [a] human would So, thats it for this video guys I hope you found this video useful we will be coming up [with] more interesting Topics like these so stay tuned and until next time have a great day.
READ MORE


Friday, October 4, 2019

October 04, 2019

How to control remotely one computer from another?


How to control remotely one computer from another?


We will discuss a simple and useful tricks for every person that "How to remotely control one computer from another " after reading this article you will be able to use one computer from another and can use all the features and functions of other computer which you want to access. This trick is quiet helpful for those peoples who are Freelancer because in Freelancing sometimes you need to connect two computers or Laptop with each others and solve the problems and earn money from them.
So Let's Start

Requirements:
(1) Both the Computers must be connected to the internet.
(2) Team viewer must be install in both computers or laptops.
(3) You must use this trick legally.
Download Team viewer:
Team Viewer
Click the link given below.

You can also download this software online from google by type “Download Team viewer” on search bar and click the team viewer website.

Procedure:

(1) First of all install and launch team viewer.
(2) Then asked the password and I’d from other Computer person’s which you want to control.

(3) Type the I’d as shown.

(4) Then it ask the password as shown.
(5) Type the password in the dialog box and press enter.
(6) Now it shows the desktop of the other Computer or laptop and you can easily use it.
(7) Even you can Play games in other computer.

Advantages:

(1) Using this trick you can work online as a Freelancer and earn some extra money at home.
(2) You can remotely control other computer without touching it.
(3) It is simple and reliable way of working more than one computer or laptop at a time.

Disadvantage:

(1Your data are at risk.
(2) The person who is working on your computer can steal your data.
Also check this

Thursday, August 29, 2019

August 29, 2019

Power of media in modern world

         Power of Media in Modern World

In 21st century, media has become very powerful. it is the medium through which we get lot of power that can change a truth into a lie and lie into a truth just by a few impression lines making it look the same. as Mal com said, " The media is the most powerful entity on earth . they have the power to make the innocent guilty and to make the guilty innocent, and that power. because they control the mind of the masses" Our people need to be educated to the highest standard in this new information age, and surly this included a clear awareness of how the media influence, shapes,and defined their lives. film and television, newspaper, books and radio together have an influence over individual that was uni managed a hundred year ago. this power confer great responsibility on all who work in media...(as well as) each of us who,individual,listened and read watch...it is not the case that we have no power over what we take from the media. power of media cam be judged through its important role as source of information education and entertainment.it accommodate the world into a single village which is saturated of media information. it is a mirror of society.they help us to know a current affair on the spot. they put their lives in danger during a terrorist attack or a natural disaster, just to inform us to about it. it is a partly because of them that there is awareness spreading in the society. this is how, many country are able to contribute to the effected areas. who are the people who tell us about the crimes and corruptions. it is the media who tell us it is the media who shape our lives.

The media reaches over a million people a day. due to its tremendous audiences and the impact it has the media has been able to change public opinion.American policy,and even American history. the media powerful influence can be seen through its portrayal of major event like Vietnam war. the Spanish-America war, Watergate and several other when the media Begin and it had a political agenda. it was a outlet through which the common people would critics the government news paper, the new you weekly journal.Danger was jailed by the government, but found not guilty by the jury. this was the first time anyone has policy protested against the government, fought persecution in the court, and won.thus, this case set the procedure for the first amendment. the media include newspaper ,magazines, radio, and films, CD, Internet, etc .the media communication information to a large, sometime global, audience, near-constant  ex positive to media is a fundamental part of contemporary life but it the TV that draw our attention the most as one of the primary socializing agent of today society. media is one aspect in life we depend on and as well become more and more dependent on it we become to shape our opinion on it media affect how we learn about our world and how we relate to the world of polices because of the media_politics connection. we based most of our knowledge on government news account not experiences . we are dependent on the media for what and how we are relate to thee world poultices because of the media and politics connection.we read or watch political debates followed by instant analysis and commentary by "experts". politicians rely on media to communicate their message. media is part of our routine relation with family and friends. they define our interaction with other people on a daily life basis as a diversion, source of conflict, or a UN flying force. media have as impact on society not only through the context of the message but also through the process. communication remain gods great gift to human without which we can't be truly human reflecting god image (canaberal 1933,44) freedom of speech is a right of individual as their own free will. because of their free will, individual have express their thoughts, desire and aspiration through the mass media. communication freely with other affirms the dignity and worth with each and other society. freedom of expression is essential in the attainment and advancement of knowledge.communication bring four major ideas and information . people today are better informed and more enlightened thanks to thriving press freedom and expanding mass media here and in many parts of world all the point of view represent in the "MARKET-PLACE OF IDEAS" and society benefits from database about their worth"MONKEY SEE,MONKEY DO" has become a well-know saying in today society. AS benigno says, "it confuse even as it is supposed to enlightens it gossips more than it reform.it assails the sense even as it is supposed to refine them it entertains more than it enlightens"

the media has become morally and creatively bankrupt media shows no value and moral ethics and the content is filled with no other topic but violence and sex.consequently, media mirror society by reflecting it as a society with low moral,with crime sex and pornography. it contributes to the national breakdown and the degradation of society. it has corrupted and exploited the freedom of the press.Edward Bernay even refer to it as an: "invisible government which is the true ruling power of our country" according to him, "media tend to create rather than reflect the values of a society" media is fourth power of our society. a person who possess the information process the world. different types of media is created and wined by a small group of people gives us a possibility to perceive the world around us . it has Benn said: "information technology allow events in our part of the world to be instantly beamed into our living rooms"so media has a great power and by focusing on the real challenges facing humanity.

August 29, 2019

Make money online

Make Money Online:

Today I will tell you a platform through which you can earn good online.

First you have to click on the link to give it.

After that the page will be open in front of you.

Next you will have the earn and advertise option you have to click on earn button then register yourself by completing  your information.



After that the window will open in front of you.

In this you will see options like pad-aids, BAP and many more.

Your job in this is to raise your BAP.

The more BAPS there are, the higher the earning.

If you want to invest, you have to go into paid ad.

Go to Bulk Aid in Pad Aid to read the Aid.

And then select the method of invest like Perfect Money, Bitcoin or any other.

Important Note:

Investing will greatly increase your earnings.

One of the important things about this website is that you can withdraw your investment at any time.

This website has been providing customer support for the last seven years۔

How to earn:

You have to visit this site daily.

You will see the top Paid ads on a daily basis.

Viewing these ads will earn you an income.

You have to visit this site daily.

You will see the top Paid Ads ads on a daily basis.

Viewing these ads will earn you an income.

In addition you will have to increase the BAP.

They will earn you more.

How To Watch ADS:

First You have to click on Paid Ads.

Then click on ads given in the bottom of the page.
Now complete the captcha and confirm.

The timer will start for 15 seconds.
 You will see next ad and close window options.

Playing Games:

You can increase your BAPS by playing games this will increase your earning.


Like TicTacToe, Coin Flip and many more.
The Earned Balance are shown at the top of the page.

How to withdraw money:

You can withdraw money using Perfect Money, bitcoin, Payza and many more.


Translation In Urdu:


آج میں آپ کو ایک ایسا پلیٹ فارم بتاؤں گا جس کے ذریعے آپ اچھی آن لاین ارننگ کر سکیں گے۔

سب سے پہلے آپ کو اس دیے گے لنک پر کلک کرنا ہو گا۔

اس کے بعد آپ کے سامنے یہ پیج اوپن ہو جاۓ گا۔

اس کے بعد آپ کے سامنے ساین اپ کا اوپشن ہو گا۔

یاد رہے آپ کو پہلے ارن والے اوپشن کو سلیکٹ کرنا ہو گا۔

اس کے بعد آپ کے سامنے یہ والی ونڈو اوپن ہو جاۓ گی۔

اس میں آپ کو پیڈ ایڈ،بیپ اور بھی بہت سارے اوپشن نظر آییں گے۔

اس میں آپ کا کام اپنے بیپ بڑھانے میں ہو گا۔

جتنے زیادہ بیپ ہوں گے اتنی ہی زیادہ ارننگ ہو گی۔

آپ اگر انویسٹ کرنا چاہتے ہیں تو آپ کو پیڈ ایڈ میں جانا پڑھے گا۔

پیڈ ایڈ میں بلک ایڈ میں جا کہ ایڈ خریدنے پڑھیں گے۔

انویسٹمنٹ کرنے سے آپ کی ارننگ بہت زیادہ ہو جاۓ گی۔

آپ کو روزانہ اس سایٹ کو وزٹ کرنا   پڑھے گا۔

آپ کو ٹاپ پے پیڈ ایڈ نظر آییں گے روزانہ کے حساب سے۔

ان ایڈ کو دیکھنے سے آپ کو ارننگ ملے گی۔

اس کے علاوہ آپ کو پیپ بھی زیادہ کرنے پڑہیں گے۔

ان سے آپ کی ارننگ اور زیادہ ہو گی۔

:پیسے نکالنے


پیسے نکالنے کے لیے آپ پرفیکٹ منی،بیٹکواین، پیزا وغیرہ سے آسانی سے نکال سکتے ہیں۔

اس ویبسایٹ کی ایک اہم بات یہ ہے کہ آپ اپنی ایویسٹمنٹ کبھی بھی واپس لے سکتے ہیں۔

یہ ویب سایٹ پچھلے سات سال سے اپنے کسٹمر کو پے کر رہی ہے۔

ارننگ کرنے کا طریقہ

آپ کو روزانہ اس سائٹ پر جانا پڑتا ہے۔

آپ کو روزانہ کی بنیاد پر سب سے زیادہ معاوضہ دینے والے اشتہارات نظر آئیں گے۔

ان اشتہاروں کو دیکھنے سے آپ کو آمدنی ہوگی۔

آپ کو روزانہ اس سائٹ پر جانا پڑتا ہے۔

آپ کو روزانہ کی بنیاد پر ٹاپ بامعاوضہ اشتہارات نظر آئیں گے۔

ان اشتہاروں کو دیکھنے سے آپ کو آمدنی ہوگی۔

اس کے علاوہ آپ کو بی اے پی میں بھی اضافہ کرنا پڑے گا۔

وہ آپ کو زیادہ کمائیں گے۔