Desired baking temperature and is arranged

Assignment Help Basic Computer Science
Reference no: EM131349662

The keypad on your oven is used to enter the desired baking temperature and is arranged like the digits on a phone. Unfortunately, the digits 1, 4, and 7 do not work.

1

2

3

4

5

6

7

8

9

 

0

 

When a recipe calls for a temperature that can't be entered (due to keys not working), you want to substitute a temperature that can be entered.

Write a program that takes a desired temperature as an input from the user. The temperature must be between 0 and 999 degrees.

If the desired temperature does not contain 1, 4, or 7, then display the desired temperature. If it contains 1, 4, or 7, compute and display the next largest temperature that doesn't contain 1, 4, or 7.

For example, if the desired temperature is 450, then the program should output 500. Similarly, if the desired temperature is 375, then the program should output 380.

In your program, include and use a function named "containsDigit" declared as below. If the entered number contains a digit, the function should return true. Otherwise, the function should return false.

Reference no: EM131349662

Questions Cloud

Explain five other it resources within an organization : From the e-Activity, determine five other IT resources within an organization that could be modeled in quantifiable terms that show value (i.e., software). Propose a model for one of the resources.
Calculate the temperature distribution : Calculate (using one, two and four elements) the temperature distribution and the heat dissipation capacity of a fin of length 4 cm and cross-sectional dimensions of 6 mm × 4 mm with a heat transfer coefficient of 0.1 W/m2°C and a thermal conducti..
Describe the pathophysiology and nursing management : NRS-410V: Examine the laboratory blood test results and arterial blood gases provided in "Discussion Question Resource: Laboratory Blood Test Results." What laboratory values are considered abnormal? Explain each abnormality and discuss the probab..
Examine enterprise manual process and propose two bpm models : Examine one enterprise manual process and propose two BPM models that would replace the process. Determine the IT resources that you would employ to automate the process.
Desired baking temperature and is arranged : The keypad on your oven is used to enter the desired baking temperature and is arranged like the digits on a phone. Unfortunately, the digits 1, 4, and 7 do not work.
Explain the impact of culture on business practices : BUS 311 Cross Cultural Management Assignment. Explain the impact of culture on business practices in an international organization and evaluate the challenges of doing business in another culture
Asciidoctor with the asciidoctor gradle plugin : Converting an AsciiDoc to PDF and HTML5 using Asciidoctor with the Asciidoctor Gradle plugin. SO I changed the CSS in the code it only updated in the pdf not the HTML5 looking for some help from the experts out there to see if you can help me get ..
What do you want to get out of course : What are some of the types of projects that you are interested in and what do you want to get out of this course? What are some risks of the project development process you might encounter and what can you do to mitigate or avoid the problems?
What are some other alternatives for resolving the problem : NRS-437V:ACME Medical Center has been damaged seriously by a recent hurricane. A helicopter that is trying to rescue people stranded by the hurricane has crashed, hitting the wing of the building where the pediatric unit was located. In the midst ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the output of this c code

What is the output of this C code?

  A network administrator for the xacme technology

You have been recently hired as a network administrator for the xAcme Technology Trade School. The company is realizing that the local systems administrators need help implementing certain technologies at each of the remote locations, as well as f..

  How to configure an http server so as to eliminate 404

Decide if such a feature is part of the protocol or part of an implementation, or is technically even permitted by the protocol. (Documentation for the apache HTTP server can be found at www.apache.org.)

  What really determines the bandwidth of a cabling

What really determines the bandwidth of a cabling type is how fast a transmitting device, such as a NIC, can generate ______________ signals on the medium?

  Considering variants of the motherboard

When considering variants of the motherboard including: Full ATX, Micro-ATX, is the difference between these boards just the size of the desktop casing or do they have a difference in power and perhaps expansion slot?

  Write a stringclass optimized for strings

Is it possible to design a string that combines the advantages of a string optimized for very short strings with the advantages of a perfectly general string?

  Using the expand, guess, and verify method find closed

Using the expand, guess, and verify method find closed form solutions for the following recurrence relations.

  Perform the transformation to the next lower level

Suppose you were given a task at one of the transformation levels shown in Figure 1.6, and required to tranform it to the level just below. At which level would it be most difficult to perform the transformation to the next lower level? Why?

  Describe the enterprise, in terms of its operations

Illustrate how its e-commerce or ERP implementation integrated with related ICT (information and communication technologies- data mining, business intelligences, data ware house, databases, internet, RFID, VAN, EDI) ?

  Describe three ways that a default value can be assigned

Explain why primary keys may never be null, but alternate keys can be null.

  Explain why soap is said to provide more flexibility

Explain why SOAP is said to provide more flexibility than previous RPC (remote procedure call) models

  Describe the details of the working of any practical idps

Describe the details of the working of any practical IDPS (e.g. Snort, Tripwire). Include actual commands and screenshots. Include references and proper citations.

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