A program that converts knuts to sickles and galleons

Assignment Help Computer Engineering
Reference no: EM132194691

Question :

Write a C program that converts knuts to sickles and galleons (the currency of the HarryPotter novels).The user will enter the total number of knuts. There are 29 knuts in one sickle and 17 sickles in one galleon.

Hint: Divide the amount by the number of knuts in one galleon to determine the number of galleons, and then reduce the amount by the total value of the galleons (You can also use a remainder operator). Repeat for sickles. Be sure to use integer values throughout, no floating-point numbers.

If the amount entered is less than zero or greater than one billion (1000000000), output an error message and abort the program.

Reference no: EM132194691

Questions Cloud

Calculate the value of e using a function : Write a C++ program that will calculate the value of "e" (Euler's number, e = 2.71828...) using a function you create named "find_e".
Write a program that displays a single character : Write a program that displays a single character in all possible combinations of foreground and background colors (16 16 256). The colors are numbered
Do you believe that the federal reserve should be controlled : Do you believe that the Federal Reserve should be controlled by Congress? Please Explain.
Describe the effect on gdp-unemployment : Describe the effect on GDP, unemployment, and inflation of each of the following: (a) war, (b) elimination of environmental regulations, and (c) cuts in welfare
A program that converts knuts to sickles and galleons : Write a C program that converts knuts to sickles and galleons (the currency of the HarryPotter novels).The user will enter the total number of knuts.
Accurate measure of the standard of living : Is gross domestic product an accurate measure of the standard of living? Why or why not?
Create a 2-dimensional array of 10 by 5 elements : Create a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49.
Medical marijuana laws : In recent years, about twenty states have passed so-called medical marijuana laws. Typically, these laws permit individuals to lawfully purchase marijuana
Legalization of presently illegal substances : Of what significance is the elasticity of demand for drugs in the debate about legalization of presently illegal substances?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a php page that shows at least three guitars

Create a PHP page that shows at least 3 guitars. Each guitar image should have its width set as well as it height to be all the same.

  Create one more method to use the arrays class sort method

Create one more method to use the Arrays class sort method to sort the contents of the array and write the contents of the array to a file.

  Write explanation of wan connection

Explanation of security procedures. Explanation of WAN connection

  What business to consumer and consumer to business items

Marketing and the owner of the CyberCafe would like to have items both in our shop and in Internet ecommerce site. What Business to Consumer and Consumer to Business items would your team recommend. What are the possibilities for fulfilment?

  How many bits should immediate field of i-type instruction

By how many bits should the immediate field of an I-type instruction be reduced to match the length on an R-type instruction for the follow modifications to the MIPS architecture?

  Design microcontroller-based string matching detector

Draw a block diagram how you would design this microcontroller-based string matching detector. Which peripherals would you be using? What considerations would you take into account?

  What is the average time to read a single sector

Suppose we have a magnetic disk with the following parameters-Average seek time=8 ms and Rotation rate=7200 RPM.What is the average time to read a single sector

  Explain the functions of devices used for data

Explain the functions of devices used for data and signal transform, i.e. how the analog voice is converted to the digital or analog signals.

  How to implement the requirements for a particular operation

Operations management involves various activities, such as process design, selection, management of information technology, work systems, planning.

  How to maintain different document object models

Both the Netscape/Mozilla and IE browsers maintain different document object models. Given the current era of open source, what do you think is the wisdom of maintaining two models.

  How to expand class linkedlisttype

Expand class linkedListType. Write down a function that returns the info of the kth element of the linked list. If no such factor exists, output an appropriate message.

  Demonstrate a significant application of technical elements

Your final project in this class is required to be more extensive than the weekly lab projects. Your project should demonstrate a significant application of technical elements and also demonstrate originality and creativity.

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