Why would something like this not work for a simple

Assignment Help Business Economics
Reference no: EM132160487

Why would something like this not work for a simple yes/no to continue? This is only a portion of the code, but doing this it just keeps looping asking for yes or no over and over no matter what the user inputs. I'm trying to get it to just ask the user to choose yes or no again if they don't press 'y' or 'n'.

   do

   {

      printf("Do you want to enter a middle initial(s)? (y or n): ");

      scanf("%s", &prompt);

   } while (prompt != 'y' || prompt != 'Y' || prompt != 'n' || prompt != 'N');

   if (prompt == 'y' || prompt == 'Y')

   {

      printf("Please enter the contact's middle initial(s): ");

Reference no: EM132160487

Questions Cloud

How would a typical us marriage be different : Consider the institution of bride wealth. How would a typical U.S. marriage be different if bride wealth were observed?
Dealing with server core angst : The owner of Tech Publishing was at the sales office last week and out of curiosity wanted to sign in to the server there.
Determine the size of the payments : The manager of a small cleaning company applies for a $25,000 loan at an interest rate of 10% per year. He will repay the loan over 6 years with annual payments
How were the people affected by nafta : How were the people affected by NAFTA? How do you think all this has influenced the 21st century?
Why would something like this not work for a simple : Why would something like this not work for a simple yes/no to continue? This is only a portion of the code, but doing this it just keeps looping asking for yes
How much is their monthly loan payment : Amanda and Blake have found a house, which owing to a depressed real estate market costs only $201,500. They will put $22,000 down and finance the remainder.
Discuss possible ways to terraform mars : This type of planet engineering is called terraforming, because its objective is to make a planet more Earth-like and easier for humans to live on.
What is the principal of universal service : What is the principal of universal service? How is it paid for?
How were men and women treated differently : What were some of the attempts to blend the ancient cultures and the newer European religions and cultures?

Reviews

Write a Review

Business Economics Questions & Answers

  Equilibrium output-price level-consumption and investment

Consider a closed economy. Assume that goods prices are fixed in the short-run and that firms produce whatever they need to meet demand. Assume that money demand is negatively related to the nominal interest rate and positively related to the level o..

  When confronted with natural monopoly that restricts output

When confronted with a natural monopoly that restricts output and charges monopoly prices, the two methods that governments have for promoting better outcomes are:

  Issuing debt instruments-fixed-payment loan or coupon bond

A firm plan to borrow $900 via issuing debt instruments. The firm can issue a simple loan, a fixed-payment loan or a coupon bond. If the interest rate is fixed at 8%, the face value of the coupon bond is $1000 and the fixed-payment loan has 5 payment..

  Why would social security be considered off budget

Social Security payments and tax revenues may be considered “on-budget”—i.e., as part of the U.S. general budget no different than defense spending supported by income and other taxes including Social Security taxes—or “off- budget” spending supporte..

  Risk assessment is an imperfect tool

How do you respond to criticism on the part of the regulated community that risk assessment is an imperfect tool that can lead to overregulation? (In regards to greenhouse gases)

  What are some causes of asymmetric information

What are some causes of asymmetric information to arise between two institutions?

  Should florida courts have jurisdiction over columbia

Ocean World, a foreign corporation, operates Ocean World Adventure Park in the Dominican Republic (DR). It contracted to buy 12 dolphins from Japan for delivery in the DR. The DR denied a permit to import the dolphins. Ocean World sued various defend..

  What would be the potential leadership problems

What would be the potential leadership problems a Chinese manager at Lenovo might encounter as he or she moves into a senior management position at the firm’s new New York offices, where he or she will work with former IBM employees?

  Minimum average cost is referred to as the capacity of firm

The point of minimum average cost is referred to as the capacity of the firm. Yet we draw the average cost curve extending both to the left and to the right of this point. The firm can operate below capacity, but how can a firm operate above capacity..

  Intro in unmanned arial systems and operations

Submit an essay, in your own words, explaining the difference between operating under Part 107 and operating with a Part 107 waiver. Do not discuss model aircraft and RC flying but instead, focus upon the commercial application of a sUAS operation..

  What is the problem-solving schematic

Why is ethics an integral part of engineering? What is the engineering advantage? What is the problem-solving schematic? What is the problem-solving schematic?

  Changing demographics in your given community

Communicate how the potential payer mix relates economically to changing demographics in your given community. What potential solutions would you suggest to your director that might overcome the demographic shift? Analyze economic theories that are g..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd