Program to compute with two numbers.

Assignment Help C/C++ Programming
Reference no: EM13938902

My program will do some computation with two numbers.

The two numbers used by this program are 22 and 16.

The Sum of 22 and 16 is 61
The Difference of 22 minus 16 is 11
The Product of 22 times 16 is 900
When 22 is divided by 16 you get 1 with remainder 11

If you have 22 nickels and 16 pennies you would have $2.05

Thank you for using this program.

I have the 1st two statements figured out, and had the arithmetic figured out based on results of 22 and 16, but turns out I interpreted it wrong and results should be what's posted above when the user changes the two numbers. The tutorial says not to use scanf or fflush. Should a put in code stating to Please enter a number? I am a little unsure of what to do about the float. I know to use the float and to put it as %.2f, but after that unsure. Any help would be appreciated. I will attach what I have. ( I am probably making this harder than it actually is). Oh, and should compile in C.

Attachment:- jk.zip

Reference no: EM13938902

Questions Cloud

Functions to compute the stress and strain in a steel rod : A function to output the stress and strain at different loads of P.
Abc corporation is considering an expansion project : ABC Corporation is considering an expansion project. The necessary equipment could be purchased for $29,388 and shipping and installation costs are another $717. The project will also require an initial $4,436 investment in net working capital. The c..
Find the npv and pi of a project that costs : Find the NPV and PI of a project that costs $1,500 and returns $800 in year one and $850 in year two. Assume the project's cost of capital is 8 percent.
What is your chosen firms competitive advantage : Write the essay on your chosen Multinational Enterprise. What is your chosen firm's competitive advantage? And is its competitive advantage sustainable in the long-term?
Program to compute with two numbers. : I have the 1st two statements figured out, and had the arithmetic figured out based on results of 22 and 16, but turns out I interpreted it wrong and results should be what's posted above when the user changes the two numbers. The tutorial says no..
Trade manual going to be between the us and canada : Trade Manual Research Paper. The trade manual is going to be between the US and Canada. The country is the US and its trading partner is Canada.
What is the total tax due : What is the total tax due for 2012, including self-employment tax, for Stuart, assuming that he earned $20,000 in wages, earned $24,000 in self-employment income from his first business,
Which four basic tissue types gives rise to most cancers : Cindy, an overweight high school student, is overheard telling her friend that she's going to research how she can transform some of her white fat to brown fat. What is her rationale here, assuming this is possible?
Analysis framework as organizing device to structure essay : You are only expected to use the prescribed four components of the star analysis framework as an organizing device to structure your essay.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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