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

  Economics assignment

This document contains various important questions and their appropriate answers in the subject field of Economics.

  Demand and supply curves

Economics is the study of the principles governing the allocation of scarce means among competing ends when the objective of the allocation is to maximize the attainment of the ends.

  Long-run perfectly competitive equilibrium for the firm

Evaluate Government intervene and correct this situation?(a) Explain the concept of a concentration ratio. A rise in the price of magarine Explain the impact of external costs and external benefits on resource allocation long-run perfectly c..

  Supply and demand diagrams

Explain each of the following using supply and demand diagrams,  With the use of a graph, explain how these two programs affect cigarette consumption and the price of cigarettes.

  Case study: fisher-price toys

The case study of the Fisher-Price Toys, Inc., a popular case in basic economics and management from the prestigious Harvard Business School.

  Draw the production possibility curve

Draw the production possibility curve and a. Define consumer surplus and producer surplus.

  Tax revenue

The Australian government administers two programs that affect the market for cigarettes

  Maximize total welfare

How many tickets to sell to maximize total welfare.

  Difference between the cv and the ev

The change in consumer surplus (?CS) is not "theoretically" justifiable like the CV and EV but it continues to be the most widely used measure of consumer welfare change. Explain how this can be reconciled

  Depict von neumann-morgenstern utility index u in a diagram

Depict the von Neumann-Morgenstern utility index u in a diagram

  What is the market solution

What is the market solution (market price and quantity) and What is the total surplus of the society under the market solution

  Calculate gross national product and net national product

Calculate gross national product and net national product

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