Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

etbook Solutionse + sp20-seattle/hw/s20ifcs/w/ Part 2: Expert system One of the earliest forms of artificial intelligence (AI) were expert systems. An expert system is a

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
etbook Solutionse + sp20-seattle/hw/s20ifcs/w/ Part 2: Expert system One of the earliest forms of artificial intelligence (AI) were expert systems. An expert system is a system designed to make decisions or arrive at diagnoses based on information it is given. The decisions it makes are based on a sequence of conditionals nose in A fever diagnosis system For this exercise, you will create an expert system to diagnose the cause of a fever. You will use the input function to interview a patient about their symptoms. Look at the image below to see how the symptoms are associated with various possible causes. Your program should ask the pertinent questions and direct the diagnosis as indicated by the chart Note that there are many cases of nested conditionals and there are some cases where more than one condition can lead to the same diagnosis. Try to write your program to be as concise as possible, and avoid duplicating code as much as you can ommit Yes Are you coughing? ck on the lon 1. This Are you short of breath or wheezing or coughing up phlegm? Yes Possibilities include pneumonia or infection of airways e Log the Do you have a headache? Do you have a headache? Possibilities include viral infection 6:39 PM A 2002 & * * Backspace 7 00 ich Textbook Solutions x + 55001sp20-seattle/h/s20ifcs/w/ Do you have a headache? tlenose Log to the Find the priate labor p file to submit you're gnment's Do you have a headache? Possibilities include viral infection Do you have aching bones or aching Possibilities include viral infection joints? Are are experiencing any of the following: pain when bending your head forward, nausea or vomiting, bright light hurting your eyes, drowsiness or confusion? Do you have a rash? Insufficient information to list possibilities, Yes No Possibilities include menigitis. Do you have a sore throat? Yes Possibilities include a throat infection. No A 6:40 PM Q 1212020 Otee9 DOLL Textbook Solutions the x + 15p20-seattle/h/s201fcs/w/ Are you vomiting or had diarrhea? No Do you have back pain just above the waist with chills and fever? Possibilities include kidney infection No Possibilities include digestive tract infection Do you have pain urinating or are urinating more often? Possibilities include a urinary tract infection No Have you spent the day in the sun or in hot condtions? Possibilities sunstroke or heat exhaustion NO Insufficient information to list possibilities. Imagewercise from Pro Design by James Coheon and Jack Davidson Functions O Die B . 9 0 6:40 PM 1222002 DELL Backspace Search Textbook Solutions Che X + du/c5001sp20-seattle/h/s20fcs/ 3/ Functions Portions of this exercise may help to further understand the motivation to define functions. Are there places w you would be forced to type the same code more than once? Use functions to minimize repeated code. Call the function in the place where the code needs to execute. Style Guide Please familiarize yourself with the PEP Python Style guide. These are excellent tips for writing clear Python and you should follow this style. Before you submit your assignment, go through the checklist below and make sure your code conforms to the st guide No unused variables or commented-out code is left in the class Your code is appropriately commented All numbers have been replaced with constants (ie. no "magic numbers"). Proper capitalization of any names used: Snake_case for ordinary variables and functions, CapWords for names, and ALL CAPS for constants . Use white space to separate different sections of your code (follow the PEP8 linter's guidance) Using the Pycodestyle (PEP8) linter In addition to the checklist above, use the Pycodestyle linter in your editor to make sure you're catching small st issues of spacing and consistency. The graders will use the Pycodestyle linter as a guide for enforcing PEP8 style which should simplify the process for them and you. It's easy to track down issues with the linter and you should make sure that the internetis.com letely error and warning before hittins oie R 9 DOLL @

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions