The program is displaying wrong output correct it

Assignment Help Computer Engineering
Reference no: EM132107942

Programming Language : C++

Problem - The program is displaying wrong output when entering a number

If number is 0-9 it displays " 0 is less than 10" ------ [ this one works correctly]

if number is 11 it displays "4213412 is greater than 10"

if number is 10 it displays " 3794234123 is equal to 10"

// compare iInput to integer 10
if (iInput < 10) // if input is less than 10
wsprintf(wcOutput, TEXT("%i is less than 10"), iInput);
if (iInput > 10) // if input is greater than 10
wsprintf(wcOutput, TEXT("%i is greater than 10", iInput));
else // if input is equal to 10
wsprintf(wcOutput, TEXT("%i is equal to 10", iInput));

Reference no: EM132107942

Questions Cloud

Based human resource information system : The U.S.-based human resource information system (HRIS) currently houses approximately 20,000 employee records and tracks both bi-monthly
Define the different branding strategies : ?Identify/define the different branding strategies. Give an example of each.
Write a public static method named static long fibfast : Effecfively, we are creating a loop in which a and b represent two consecutive fibonacci numbers.
Create a patron class for the library : Create a Patron class for the library. The class will have a user's name, library card number, and library fees.
The program is displaying wrong output correct it : Problem - The program is displaying wrong output when entering a number
Write a public static method named static long tribonacci : Write a public static method named static long tribonacci that returns the nth "tribonacci number" when initialially called with tribonacci.
Authoritarian budget processes and participatory budget : What is the difference between authoritarian budget processes and participatory budget processes?
Calculate the cost installing a fence around a rectangular : Create an application that can be used to calculate the cost installing a fence around a rectangular area.
What is the value of the stock : The risk-free rate of interest is 7 percent, the market return is 13 percent, and the stock's beta is 1. What is the value of the stock?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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