Implementation in CLIPS programming language for the following problem Acme Electronics makes a device called the Thing...

50.1K

Verified Solution

Question

Advance Math

Implementation in CLIPS programming language for thefollowing problem

Acme Electronics makes a device called the Thing 2000. Thisdevice is available in five different models distinguished by thechassis. Each chassis provides a number of bays for optional gizmosand is capable of generating a certain amount of power. Thefollowing table sumarizes the chassis attributes:

Chassis --------- Gizmo Bays provided --- Power Provided-----Price($)
C100--------------------------- 1---------------------------4------------------ 2000
C200------------------------- 2 --------------------------5------------------ 2500
C300--------------------------- 3---------------------------7------------------3000
C400---------------------------2----------------------------8------------------3000
C500-------------------------- 4 ---------------------------9------------------3500

Each gizmo that can be installed in the chassis requires acertain amount of power to operate. The following table summarizesthe gizmo attributes

Gizmo-------------------- Power Used--------------------Price($)

Zaptron ------------------------ 2------------------------------100
Yatmizer ----------------------- 6------------------------------800
Phenerator--------------------- 1------------------------------300
Malcifier----------------------- 3------------------------------200
Zeta-shield------------------- 4------------------------------150
Warnosynchronizer---------- 2-------------------------------50
Dynoseparator---------------- 3------------------------------400

Given as input facts representing the chassis and any gizmosthat have been selected, write a program that generates factsrepresenting the number of gizmos used, the total amount of powerrequired for the gizmo, and the total price of the chassis and allgizmos selected

Answer & Explanation Solved by verified expert
4.4 Ratings (846 Votes)
Answer Here is a menu driven program that inputs the chasis type and the gizmaos and then calculates the total power and price If an invalid configuration excessive power draw or insufficient gizmo bays is detected then an appropriate error message is displayed import javautil class Acme public static void mainString args Scanner sc new ScannerSystemin int cost 0 int powerAvailable 0 int gizmosAvailable 0 int gizmosUsed 0 int powerUsed 0 while true    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students