Fermé

Write some Software

The keypad on your laboratory oven is used to enter the desired temperature and is arranged like the digits on a phone

1 2 3

4 5 6

7 8 9

0

Unfortunately the circuitry is damaged and the digits in the leftmost column no longer function. In other words 1, 4 and 7 do not work. If an experiment or procedure calls for a temperature that can't be entered, then you would like to substitute a temperature that can be entered.

Write a program that prompts the user for a desired temperature. The temperature must be between 0 and 999 degrees Fahrenheit. If the desired temperature does not contain 1, 4 or 7, then output the desired temperature. Otherwise, compute the next largest and the next smallest temperature that do not contain 1, 4 or 7 and output both.

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

The user should be allowed to enter as many temperatures as desired. Temperatures should be validated.

SAMPLE OUTPUT:

Enter desired temperature =>450

The next smallest temperature = 399

The next highest temperature = 500

Enter another temperature? (press y for yes) : y

Enter desired temperature =>350

350 is valid for oven

Enter another temperature? (press y for yes) : y

Enter desired temperature =>1023

Please re-enter temperature. (0-999)=>999

999 is valid for oven

Enter another temperature? (press y for yes) : y

Enter desired temperature =>970

The next smallest temperature = 969

The next highest temperature = 980

Enter another temperature? (press y for yes) : y

Enter desired temperature =>111

The next smallest temperature = 99

The next highest temperature = 200

Enter another temperature? (press y for yes) : y

Enter desired temperature =>375

The next smallest temperature = 369

The next highest temperature = 380

Enter another temperature? (press y for yes) : n

Compétences : PHP, Architecture Logicielle

Voir plus : software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, software write protect software, software write technical manual

Concernant l'employeur :
( 1 commentaire ) United States

N° du projet : #13087830

12 freelance ont fait une offre moyenne de 27 $ pour ce travail

deltatechnepal

Hello, We are a website design and development company. Our expertise include: - Open source Platform Development (Wordpress, Drupal, Joomla) - Ecommerce Development (Magento, Zencart, Prestashop, Woocommerce, Op Plus

25 $ USD en 1 jour
(9 Commentaires)
4.5
25 $ USD en 1 jour
(14 Commentaires)
4.5
usha12345

Hello, I read project description and i am ready to start this work now just i want to ask some questions. Please discuss more with me so i can ask you.I have 5+year of experience in PHP website development. L Plus

25 $ USD en 1 jour
(12 Commentaires)
4.5
wizard2015

Hi, I am experienced software developer and I am ready to complete this project. In which programming language and which OS? You can find more information about me and my professional experience on the my freelancer pr Plus

25 $ USD en 1 jour
(5 Commentaires)
4.2
edison4mobile

How are you? I am a Mobile App developer and have 5 years experience of program develop. I have rich develop experience and have developed many apps. If you choose me, i will do my best for you. I understand Plus

35 $ USD en 1 jour
(4 Commentaires)
3.6
nbprince

Hi, dear [url removed, login to view] for posting your project and your attention, I read your project carefully. I can carry out your task with the lowest budgets than anybody. I have the WP and HTML5/Mobile responsible samples Plus

25 $ USD en 1 jour
(9 Commentaires)
3.7
raihafeez006

Hi I am an experienced developer ,Have completed many projects like this. I will complete your project 100% money back guarantee

25 $ USD en 1 jour
(3 Commentaires)
2.5
Techguys2k19

We are having 3+ year experience PHP developers. We are the team of iOS,Android, PHP developers. We have done more than 50+ apps and website. We can perform this task in less time with less cost. Ping me for mo Plus

25 $ USD en 1 jour
(3 Commentaires)
2.1
50 $ USD en 1 jour
(2 Commentaires)
0.0
mferdiyanzah

Want to take first job

20 $ USD en 1 jour
(0 Commentaires)
0.0
danefuhr

I have written the app in HTML5, located here: [url removed, login to view] I can produce this in HTML5, Flash, Windows Executable or Android.

35 $ USD en 1 jour
(0 Commentaires)
0.0
HarryR448

You have outlined what you want and i can do it cheap. I will create a simple HTML page with necessary input boxes, a button to trigger the script and a text output of your temperature. The script will simply be st Plus

10 $ USD en 1 jour
(0 Commentaires)
0.0