Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ visual studio text. file content cold sneezing cold coughing cold achy flu fever flu sneezing flu coughing flu achy leukemia fever leukemia chills leukemia

C++ visual studio

text. file content

cold sneezing cold coughing cold achy flu fever flu sneezing flu coughing flu achy leukemia fever leukemia chills leukemia fatigue leukemia nosebleeds leukemia sweating alzheimer forgetfulness alzheimer confusion celiac diarrhea celiac vomiting celiac fatigue celiac constipation dehydration nausea dehydration dizziness eczema blister

image text in transcribed

Diagnostic Assist v2.1 Your job is to write a program that would allow us to 1- Display Disease Count 2- Symptom Count by Disease 3- Diagnose 0- Exit What do you want to do: 1 diagnose diseases based on a given symptom. [60] Feature #1 : Display # of Diseases This will display the number of diseases in the system There are7 diseases in the database. NOT the symptoms! 1 Display Disease Count 2- Symptom Count by Disease 3- Diagnose 0- Exit What do you want to do: 2 Notice that diseases are in order in the file- you can take advantage of this. Go through each disease in the system and whenever you see that the current record's disease name is different than the previous record's disease name, then increment a counter. At the end of the loop, counter will holds the number of diseases in the system, right?- There are 3 symptoms for cold There are 4 symptoms for flu There are 5 symptoms for leukemia There are 2 symptoms for alzheimer [60] Feature 2: # of Symptoms per Disease Report There are4symptoms for celiac There are 2 symptoms for dehydration This will display how many symptoms are in the system There are 1 symptoms for eczemea for each disease. 1- Display Disease Count 2- Symptom Count by Disease 3- Diagnose 0- Exit What do you want to do: 3 [100] Feature 3: Diagnose This will ask user for a symptom and display all diseases that have that symptom Here are the requirements What is You may You may have celiac symptom? fatigue leukemia [20] File lO: Make sure to properly read the data from diagnostic.txt at the very beginning of the program. 1-Display Disease Count 2- Symptom Count by Disease 3- Diagnose 0- Exit What do you want to do: 3 [20] Class: Make sure to use a class. The class will need 2 fields. [20] Function: Make sure that each feature is in its own function. Loading the data should also have in its own function. What is You may You may have leukemia symptom? fever flu [20 Indentation and Comments: Make sure that your program is indented and commented properly 1- Display Disease Count 2- Symptom Count by Disease 3- Diagnose 0- Exit What do you want to do: Penalties: -100] if you are using global variables -100] if your program does not compile or crashes

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Verification of the identity of the employees must be made daily.

Answered: 1 week ago