SlideShare a Scribd company logo
1 of 1
Please submit one file: p1_lastname.java or p1_lastname.c or p1_lastname.py to Canvas. It will
be messy if everyone submits p1.x. example:p1_doe.java Per the in-class discussion and format
of truth tables described in Levin's DMOI, write a program to show the Boolean function of
variable degrees and weights w. Follow the sample session below. All your code should be
contained in one_file for compilation and submission. n : # of logic symbols in the truth table w:
per the definition on page 72 of DMOI You can assume: 2 =< n <= 10 == sample session Degree
n and minimum weight w ? 22 two positive integers separated by a space Function f ? < for n = 2
, f has a range of 0 to 15 ; make sure it starts from 0 0 <--- user input; will provide a + int; must
check range validity f0 : 0011 <--- program output; the Oth function output that satisfies the
weight req Function f ? 6 < asking for the 6 th function output in Boolean bit pattern f6: 1011 the
output of the 6th function that satisfies the weight req Function f ? 28 does not satisfy range and
weight req Bye exit when f is invalid

More Related Content

Similar to Please submit one file- p1_lastname-java or p1_lastname-c or p1_lastna.docx

Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)sukeshsuresh189
 
6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...sukeshsuresh189
 
5: Every Java application is required to have
5: Every Java application is required to have5: Every Java application is required to have
5: Every Java application is required to havesukeshsuresh189
 
15: Which method call converts the value in variable stringVariable to an int...
15: Which method call converts the value in variable stringVariable to an int...15: Which method call converts the value in variable stringVariable to an int...
15: Which method call converts the value in variable stringVariable to an int...sukeshsuresh189
 
16: Which of the following is the method used to display a dialog box to gath...
16: Which of the following is the method used to display a dialog box to gath...16: Which of the following is the method used to display a dialog box to gath...
16: Which of the following is the method used to display a dialog box to gath...sukeshsuresh189
 
13: What do the following statements do?
13: What do the following statements do?13: What do the following statements do?
13: What do the following statements do?sukeshsuresh189
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)sukeshsuresh189
 
7: Assume the following class declaration.
7: Assume the following class declaration.7: Assume the following class declaration.
7: Assume the following class declaration.sukeshsuresh189
 
14: Consider the class below:
14: Consider the class below:14: Consider the class below:
14: Consider the class below:sukeshsuresh189
 
18: Which of the following does not generate an event?
18: Which of the following does not generate an event?18: Which of the following does not generate an event?
18: Which of the following does not generate an event?sukeshsuresh189
 
17: provides the basic attributes and behaviors of a window—a title bar at th...
17: provides the basic attributes and behaviors of a window—a title bar at th...17: provides the basic attributes and behaviors of a window—a title bar at th...
17: provides the basic attributes and behaviors of a window—a title bar at th...sukeshsuresh189
 
23: Which layout manager is the default for JPanel?
23: Which layout manager is the default for JPanel?23: Which layout manager is the default for JPanel?
23: Which layout manager is the default for JPanel?sukeshsuresh189
 
1: The .class extension on a file means that the file
1:  The .class extension on a file means that the file1:  The .class extension on a file means that the file
1: The .class extension on a file means that the filesukeshsuresh189
 
4: Which of the following is a Scanner method?
4: Which of the following is a Scanner method?4: Which of the following is a Scanner method?
4: Which of the following is a Scanner method?sukeshsuresh189
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)sukeshsuresh189
 
10: In the Java graphics system, coordinate units are measured in ________.
10: In the Java graphics system, coordinate units are measured in ________.10: In the Java graphics system, coordinate units are measured in ________.
10: In the Java graphics system, coordinate units are measured in ________.sukeshsuresh189
 
12: When an object is concatenated with a String
12: When an object is concatenated with a String12: When an object is concatenated with a String
12: When an object is concatenated with a Stringsukeshsuresh189
 
22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...sukeshsuresh189
 
8: Which statement below could be used to randomly select a state from an arr...
8: Which statement below could be used to randomly select a state from an arr...8: Which statement below could be used to randomly select a state from an arr...
8: Which statement below could be used to randomly select a state from an arr...sukeshsuresh189
 
11: Which is a correct way to invoke the static method sqrt of the Math class?
11: Which is a correct way to invoke the static method sqrt of the Math class?11: Which is a correct way to invoke the static method sqrt of the Math class?
11: Which is a correct way to invoke the static method sqrt of the Math class?sukeshsuresh189
 

Similar to Please submit one file- p1_lastname-java or p1_lastname-c or p1_lastna.docx (20)

Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)
 
6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...6: Which of the following statements about creating arrays and initializing t...
6: Which of the following statements about creating arrays and initializing t...
 
5: Every Java application is required to have
5: Every Java application is required to have5: Every Java application is required to have
5: Every Java application is required to have
 
15: Which method call converts the value in variable stringVariable to an int...
15: Which method call converts the value in variable stringVariable to an int...15: Which method call converts the value in variable stringVariable to an int...
15: Which method call converts the value in variable stringVariable to an int...
 
16: Which of the following is the method used to display a dialog box to gath...
16: Which of the following is the method used to display a dialog box to gath...16: Which of the following is the method used to display a dialog box to gath...
16: Which of the following is the method used to display a dialog box to gath...
 
13: What do the following statements do?
13: What do the following statements do?13: What do the following statements do?
13: What do the following statements do?
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)
 
7: Assume the following class declaration.
7: Assume the following class declaration.7: Assume the following class declaration.
7: Assume the following class declaration.
 
14: Consider the class below:
14: Consider the class below:14: Consider the class below:
14: Consider the class below:
 
18: Which of the following does not generate an event?
18: Which of the following does not generate an event?18: Which of the following does not generate an event?
18: Which of the following does not generate an event?
 
17: provides the basic attributes and behaviors of a window—a title bar at th...
17: provides the basic attributes and behaviors of a window—a title bar at th...17: provides the basic attributes and behaviors of a window—a title bar at th...
17: provides the basic attributes and behaviors of a window—a title bar at th...
 
23: Which layout manager is the default for JPanel?
23: Which layout manager is the default for JPanel?23: Which layout manager is the default for JPanel?
23: Which layout manager is the default for JPanel?
 
1: The .class extension on a file means that the file
1:  The .class extension on a file means that the file1:  The .class extension on a file means that the file
1: The .class extension on a file means that the file
 
4: Which of the following is a Scanner method?
4: Which of the following is a Scanner method?4: Which of the following is a Scanner method?
4: Which of the following is a Scanner method?
 
Comp 328 final guide (devry)
Comp 328 final guide (devry)Comp 328 final guide (devry)
Comp 328 final guide (devry)
 
10: In the Java graphics system, coordinate units are measured in ________.
10: In the Java graphics system, coordinate units are measured in ________.10: In the Java graphics system, coordinate units are measured in ________.
10: In the Java graphics system, coordinate units are measured in ________.
 
12: When an object is concatenated with a String
12: When an object is concatenated with a String12: When an object is concatenated with a String
12: When an object is concatenated with a String
 
22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...22: The logical relationship between radio buttons is maintained by objects o...
22: The logical relationship between radio buttons is maintained by objects o...
 
8: Which statement below could be used to randomly select a state from an arr...
8: Which statement below could be used to randomly select a state from an arr...8: Which statement below could be used to randomly select a state from an arr...
8: Which statement below could be used to randomly select a state from an arr...
 
11: Which is a correct way to invoke the static method sqrt of the Math class?
11: Which is a correct way to invoke the static method sqrt of the Math class?11: Which is a correct way to invoke the static method sqrt of the Math class?
11: Which is a correct way to invoke the static method sqrt of the Math class?
 

More from madalynbb3ja

Please type out the Rational models like the example -incident---descr.docx
Please type out the Rational models like the example -incident---descr.docxPlease type out the Rational models like the example -incident---descr.docx
Please type out the Rational models like the example -incident---descr.docxmadalynbb3ja
 
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docx
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docxPlease solve this ASAP 2- Barnard's Star is one of the nearest stars t.docx
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docxmadalynbb3ja
 
please show step by step- asks for multile years Switzertand has long.docx
please show step by step- asks for multile years Switzertand has long.docxplease show step by step- asks for multile years Switzertand has long.docx
please show step by step- asks for multile years Switzertand has long.docxmadalynbb3ja
 
please provide your personal reflection on what you learned doing this.docx
please provide your personal reflection on what you learned doing this.docxplease provide your personal reflection on what you learned doing this.docx
please provide your personal reflection on what you learned doing this.docxmadalynbb3ja
 
please in C++ Many documents use a specific format for a person's name.docx
please in C++ Many documents use a specific format for a person's name.docxplease in C++ Many documents use a specific format for a person's name.docx
please in C++ Many documents use a specific format for a person's name.docxmadalynbb3ja
 
Please help! Invasive species can be particularly troublesome- particu.docx
Please help! Invasive species can be particularly troublesome- particu.docxPlease help! Invasive species can be particularly troublesome- particu.docx
Please help! Invasive species can be particularly troublesome- particu.docxmadalynbb3ja
 
please help me with these two thank you- What of the following describ.docx
please help me with these two thank you- What of the following describ.docxplease help me with these two thank you- What of the following describ.docx
please help me with these two thank you- What of the following describ.docxmadalynbb3ja
 
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docx
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docxPlease give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docx
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docxmadalynbb3ja
 
please help me Hamid Enterprise Trial Balance for the Month of Julu 2.docx
please help me  Hamid Enterprise Trial Balance for the Month of Julu 2.docxplease help me  Hamid Enterprise Trial Balance for the Month of Julu 2.docx
please help me Hamid Enterprise Trial Balance for the Month of Julu 2.docxmadalynbb3ja
 
Please help fill in the missing code below in order for it run correct.docx
Please help fill in the missing code below in order for it run correct.docxPlease help fill in the missing code below in order for it run correct.docx
Please help fill in the missing code below in order for it run correct.docxmadalynbb3ja
 
please help The master production schedule (MPS) is the source of all.docx
please help  The master production schedule (MPS) is the source of all.docxplease help  The master production schedule (MPS) is the source of all.docx
please help The master production schedule (MPS) is the source of all.docxmadalynbb3ja
 
please help raw a graph showing the change in membrane potential as a.docx
please help  raw a graph showing the change in membrane potential as a.docxplease help  raw a graph showing the change in membrane potential as a.docx
please help raw a graph showing the change in membrane potential as a.docxmadalynbb3ja
 
Please create a journal entry & adjusting entries 12) Only part of th.docx
Please create a journal entry & adjusting entries  12) Only part of th.docxPlease create a journal entry & adjusting entries  12) Only part of th.docx
Please create a journal entry & adjusting entries 12) Only part of th.docxmadalynbb3ja
 
Please Answer this 4- List three of the advantages of reflecting teles.docx
Please Answer this 4- List three of the advantages of reflecting teles.docxPlease Answer this 4- List three of the advantages of reflecting teles.docx
Please Answer this 4- List three of the advantages of reflecting teles.docxmadalynbb3ja
 
please answer these two question- Thank you- will for sure like- Aprre.docx
please answer these two question- Thank you- will for sure like- Aprre.docxplease answer these two question- Thank you- will for sure like- Aprre.docx
please answer these two question- Thank you- will for sure like- Aprre.docxmadalynbb3ja
 
Please answer all 6 of the following ICD 10 codes for the following di.docx
Please answer all 6 of the following ICD 10 codes for the following di.docxPlease answer all 6 of the following ICD 10 codes for the following di.docx
Please answer all 6 of the following ICD 10 codes for the following di.docxmadalynbb3ja
 
Please answer All Requlred Information -The following information app.docx
Please answer All  Requlred Information -The following information app.docxPlease answer All  Requlred Information -The following information app.docx
Please answer All Requlred Information -The following information app.docxmadalynbb3ja
 
Plants with genotype BbRryy are intercrossed- Calculate the following.docx
Plants with genotype BbRryy are intercrossed- Calculate the following.docxPlants with genotype BbRryy are intercrossed- Calculate the following.docx
Plants with genotype BbRryy are intercrossed- Calculate the following.docxmadalynbb3ja
 
pl answer (a) When can liquid metals be used as heat transfer media- -.docx
pl answer (a) When can liquid metals be used as heat transfer media- -.docxpl answer (a) When can liquid metals be used as heat transfer media- -.docx
pl answer (a) When can liquid metals be used as heat transfer media- -.docxmadalynbb3ja
 
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docx
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docxPhysiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docx
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docxmadalynbb3ja
 

More from madalynbb3ja (20)

Please type out the Rational models like the example -incident---descr.docx
Please type out the Rational models like the example -incident---descr.docxPlease type out the Rational models like the example -incident---descr.docx
Please type out the Rational models like the example -incident---descr.docx
 
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docx
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docxPlease solve this ASAP 2- Barnard's Star is one of the nearest stars t.docx
Please solve this ASAP 2- Barnard's Star is one of the nearest stars t.docx
 
please show step by step- asks for multile years Switzertand has long.docx
please show step by step- asks for multile years Switzertand has long.docxplease show step by step- asks for multile years Switzertand has long.docx
please show step by step- asks for multile years Switzertand has long.docx
 
please provide your personal reflection on what you learned doing this.docx
please provide your personal reflection on what you learned doing this.docxplease provide your personal reflection on what you learned doing this.docx
please provide your personal reflection on what you learned doing this.docx
 
please in C++ Many documents use a specific format for a person's name.docx
please in C++ Many documents use a specific format for a person's name.docxplease in C++ Many documents use a specific format for a person's name.docx
please in C++ Many documents use a specific format for a person's name.docx
 
Please help! Invasive species can be particularly troublesome- particu.docx
Please help! Invasive species can be particularly troublesome- particu.docxPlease help! Invasive species can be particularly troublesome- particu.docx
Please help! Invasive species can be particularly troublesome- particu.docx
 
please help me with these two thank you- What of the following describ.docx
please help me with these two thank you- What of the following describ.docxplease help me with these two thank you- What of the following describ.docx
please help me with these two thank you- What of the following describ.docx
 
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docx
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docxPlease give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docx
Please give an explaination fir those quesions! 2 3 4 5 1- Aman with r.docx
 
please help me Hamid Enterprise Trial Balance for the Month of Julu 2.docx
please help me  Hamid Enterprise Trial Balance for the Month of Julu 2.docxplease help me  Hamid Enterprise Trial Balance for the Month of Julu 2.docx
please help me Hamid Enterprise Trial Balance for the Month of Julu 2.docx
 
Please help fill in the missing code below in order for it run correct.docx
Please help fill in the missing code below in order for it run correct.docxPlease help fill in the missing code below in order for it run correct.docx
Please help fill in the missing code below in order for it run correct.docx
 
please help The master production schedule (MPS) is the source of all.docx
please help  The master production schedule (MPS) is the source of all.docxplease help  The master production schedule (MPS) is the source of all.docx
please help The master production schedule (MPS) is the source of all.docx
 
please help raw a graph showing the change in membrane potential as a.docx
please help  raw a graph showing the change in membrane potential as a.docxplease help  raw a graph showing the change in membrane potential as a.docx
please help raw a graph showing the change in membrane potential as a.docx
 
Please create a journal entry & adjusting entries 12) Only part of th.docx
Please create a journal entry & adjusting entries  12) Only part of th.docxPlease create a journal entry & adjusting entries  12) Only part of th.docx
Please create a journal entry & adjusting entries 12) Only part of th.docx
 
Please Answer this 4- List three of the advantages of reflecting teles.docx
Please Answer this 4- List three of the advantages of reflecting teles.docxPlease Answer this 4- List three of the advantages of reflecting teles.docx
Please Answer this 4- List three of the advantages of reflecting teles.docx
 
please answer these two question- Thank you- will for sure like- Aprre.docx
please answer these two question- Thank you- will for sure like- Aprre.docxplease answer these two question- Thank you- will for sure like- Aprre.docx
please answer these two question- Thank you- will for sure like- Aprre.docx
 
Please answer all 6 of the following ICD 10 codes for the following di.docx
Please answer all 6 of the following ICD 10 codes for the following di.docxPlease answer all 6 of the following ICD 10 codes for the following di.docx
Please answer all 6 of the following ICD 10 codes for the following di.docx
 
Please answer All Requlred Information -The following information app.docx
Please answer All  Requlred Information -The following information app.docxPlease answer All  Requlred Information -The following information app.docx
Please answer All Requlred Information -The following information app.docx
 
Plants with genotype BbRryy are intercrossed- Calculate the following.docx
Plants with genotype BbRryy are intercrossed- Calculate the following.docxPlants with genotype BbRryy are intercrossed- Calculate the following.docx
Plants with genotype BbRryy are intercrossed- Calculate the following.docx
 
pl answer (a) When can liquid metals be used as heat transfer media- -.docx
pl answer (a) When can liquid metals be used as heat transfer media- -.docxpl answer (a) When can liquid metals be used as heat transfer media- -.docx
pl answer (a) When can liquid metals be used as heat transfer media- -.docx
 
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docx
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docxPhysiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docx
Physiological symptoms of Jimsonweed include all EXCEPT Photophobia -&.docx
 

Recently uploaded

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 

Recently uploaded (20)

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 

Please submit one file- p1_lastname-java or p1_lastname-c or p1_lastna.docx

  • 1. Please submit one file: p1_lastname.java or p1_lastname.c or p1_lastname.py to Canvas. It will be messy if everyone submits p1.x. example:p1_doe.java Per the in-class discussion and format of truth tables described in Levin's DMOI, write a program to show the Boolean function of variable degrees and weights w. Follow the sample session below. All your code should be contained in one_file for compilation and submission. n : # of logic symbols in the truth table w: per the definition on page 72 of DMOI You can assume: 2 =< n <= 10 == sample session Degree n and minimum weight w ? 22 two positive integers separated by a space Function f ? < for n = 2 , f has a range of 0 to 15 ; make sure it starts from 0 0 <--- user input; will provide a + int; must check range validity f0 : 0011 <--- program output; the Oth function output that satisfies the weight req Function f ? 6 < asking for the 6 th function output in Boolean bit pattern f6: 1011 the output of the 6th function that satisfies the weight req Function f ? 28 does not satisfy range and weight req Bye exit when f is invalid