Calculate resistance value

Assignment Help Programming Languages
Reference no: EM13328096

Develop a PROLOG program that prompts the user for the colors of Band 1, Band 2, Band 3, and Band 4 and then displays the resistance in Kilo-ohms.

Develop a PROLOG program that prompts the user for the colors of Band 1, Band 2, Band 3, and Band 4 and then displays the resistance in Kilo-ohms. Assume that band 4 can only be Gold or Silver.

a) Present a main menu to the user about the following options:
a) Calculate resistance value
b) Help
c) Exit

The "help" option presents some information about the program and how to use it, and re-displays the main menu options. The "Exit" option terminates the program. The "Calculate resistance value" leads the user to a secondary menu as shown in Step 2.

b) The secondary menu prompts the user to select the band colors. For example:
a) Black
b) Brown
c) Red
d) Orange
e) Yellow
f) Green

Please select the color for band 1: 5
Please select the color for band 2: 0
Please select the color for band 3: 3
Please select the color for band 4: 11

The resistance value is: 50 ± 5 k?

Then the program should print back the main menu (Step 1).

c) If the user enters an invalid value, print an error message, and prompt the user for another value.

Reference no: EM13328096

Questions Cloud

Explain moles of methyl benzoate are isolated : The student starts with 0.97 moles of benzoic acid and 7.8 moles of methanol. At the end of the experiment 0.9 moles of methyl benzoate are isolated
Find the change in potential energy stored in jonathan body : Jonathan is riding a bicycle and encounters a hill of height h. At the base of the hill, he is traveling at a speed vi. What is the change in potential energy stored in Jonathan's body
Phosphorous pentachloride forms from phosphorus trichloride : Phosphorous pentachloride forms from phosphorus trichloride and chlorine: PCl3(g)+Cl2(g)->PCl5(g) given: ?Ssys=-170.2J/K, ?Ssurr=295.0J/K, ?Stotal=124.8J/K, reaction is spontaneous under standard-state conditions at 25
Find the final equilibruim temperature : a copper puece of mass 140g and of temperature 240 degree is placed into 360g of water at temperature 25 degree. Find the final equilibruim temperature
Calculate resistance value : Develop a PROLOG program that prompts the user for the colors of Band 1, Band 2, Band 3, and Band 4 and then displays the resistance in Kilo-ohms.
Explain two methods of positive identification are required : The possible compounds are listed below. Two methods of positive identification are required for each compound. Benzoic acid benzoin 1,4-dibromobenzene flourene o-Toluic Acid 4-aminoacetophenone
Find how far from the base of the building the hammer lands : A hammer slides down a roof of angle theta (respect to ground). It slides along the roof distance D. Find how far from the base of the building the hammer lands
How much will have saved if waited until age 35 to start : You are 25 years old and decide to start saving for your retirement. You plan to save $5000 at the end of each year (so the first deposit will be one year from now), and will make the last deposit when you retire at age 65.
Obtain the inductance of the solenoid : A 304 turn solenoid has a radius of 5.00 cm and a length of 20.0 cm, Find the inductance of the solenoid

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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