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.
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
|