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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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