Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When you are done, downicad as pdf and upload to Blackboand 4 . You are in a team writing a part of a program that

When you are done, downicad as pdf and upload to Blackboand
4. You are in a team writing a part of a program that checks for risk factors of heart disease (smoking, family history, hypertension, cholesterol levels, and age). The program has several boolean variables for the risk factors:
smoker
hin
high_LDL
fam_hx
high_chol
low HDL
Also, age is a risk factor.
The program has an if statement:
if (Isnoker && Ifam_hx && thtn && !high_chol && !high_LDL && Itow_HDL &A age 655)
cout "No risk factors identified";
A team member suggests rewriting the condition as:
if (!(smoker && fam_hx && htn && high chol && high_LDL && LOw_HDL && age>65))
Do you agree or disagree with their suggestion? Make your own suggestion How would you show your team whether the team member's suggestion is equivalent or your suggestion is
Rules of Inference
For the following questions, number and show all of the numbered steps in your argument with the reasons (premise/ruie of inference/equivalence law) next to them.
5. From the premises p??(pq)sp. Show that q is a valid conclusion by providing the argument.
Premises:
p??(pq)
sp
Conclusion:
a
Reason
6. Given the premises pq,q1,, Conclude not(pvvp)
Premises:
p9
image text in transcribed

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 And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions