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

  Management trevor toy auto mechanics solutions

Assessing the value of customer relationship management trevor toy auto mechanics solutions

  Explaining negative reactions to pop-up and pop-behind

Many people have strong negative reactions to pop-up, pop-behind, interstitial, and rich media ads. Assume you are the director of an advertising agency that specializes in creating and placing these ads.

  Minimum number of swaps

In order to form an alternating sequence, a boy and a girl could swap their positions. Given the original sequence in which the boys and girls were standing, find the minimum number of swaps required to form an alternating sequence.

  Virtual and physical addresses

The page table shown in Figure 9.32 is for a system with 16-bit virtual and physical addresses and with 4,096-byte pages. The reference bit is set to 1 when the page has been referenced. Periodically, a thread zeroes out all values of the reference b..

  Determine the diameter of the pipe

he fluid level in the open tank is 150 ft below that in the closed tank. Determine the diameter of the pipe. Neglect minor losses.

  Design a step by step algorithm

Design a step by step algorithm, keeping in mind the limitations of assembly language, to determine the physical address of the 3rd byte of the data segment variable LIST in the following code example.

  Telecommunications-networking operation

The textbook describes a mode of network operation called "infrastructure mode." However, that is not the only possible mode for networks. What is infrastructure mode, and what are the other possibilities? What are their advantages and disadvantag..

  Different types of computer systems

Finally, review different types of computer systems. Make recommendations on the types (you do not need to include brands or specifications) of computers that will help the employees and suppliers better use the system

  Ordinary carbon-composition resistor

Do you think an ordinary carbon-composition resistor would always show a pure resistance on the Smith chart (or with a network analyzer) at microwave frequencies? Why or why not?

  Compare and contrast a split db with a non split db.

Compare and contrast a split DB with a non split DB.

  Why do you think grandfather clocks are typically about 6 ft

Why do you think grandfather clocks are typically about 6 ft high?

  Reasons why the company needs a security plan

Prepare a 15-slide presentation with speaker notes for Senior Management that will provide an outline for a Security Guidance plan encompassing best practices from key areas that were covered in this course.

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