SlideShare une entreprise Scribd logo
1  sur  8
The Affordable Care Act (ACA) requires all US citizens and
legal residents to obtain qualifying health coverage. In this unit,
you will explore the Individual Mandate section of the new
health reform law.
Tasks:
· Explain the Individual Mandate included in the Patient
Protection and ACA including the tax penalties that will be
imposed if a person or a family does not obtain qualifying
health coverage.
· Analyze the eligibility criteria for exemptions and subsidies to
obtain coverage.
· Explain one policy change or enhancement you would
recommend if you were required to ensure success of the
Individual Mandate included in the Patient Protection and ACA
and justify the intended outcome.
Submission Details:
· Submit your response in a 5- to 6-page Microsoft Word
document formatted in APA style.
/*
* To change this license header, choose License Headers in
Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package map;
/**
*
* @author Zhongmei Yao
*/
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JComponent;
import java.awt.Color;
public class Map
{
public static void draw(Graphics g)
{
Color arrColor[] = {Color.BLACK, Color.RED,
Color.CYAN}; // you can choose colors you want
/*
fillOval(x, y, width, height):
x - the x coordinate of the upper left corner of the oval to
be drawn
y - the y coordinate of the upper left corner of the oval
width - the width of the oval
height - the height of the oval
*/
int x = 0;
int y = 0;
int width = 30;
int height = 30; // if width equals height, then it's a circle
for (int i = 0; i < 6; i++) // draw 6 circles on a row
{
g.setColor(arrColor[i % 2]);
g.fillOval(x + width * i, y, width, height);
}
g.setColor(arrColor[2]); // set color cyan
// draw a red node at (400, 410):
int x1 = 400;
int y1 = 410;
g.fillOval(x1, y1, width, height);
// draw a red node at (500, 510):
int x2 = 500;
int y2 = 510;
g.fillOval(x2, y2, width, height);
g.setColor(arrColor[0]); // set color black
// draw an edge connenting (x1, y1) and (x2, y2)
g.drawLine(x1 + width/2, y1+ width/2, x2 + width/2, y2+
width/2);
} // end of draw function
public static void main(String[] args)
{
JFrame frame = new JFrame();
final int FRAME_WIDTH = 800;
final int FRAME_HEIGHT = 800;
frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JComponent component = new JComponent()
{
public void paintComponent(Graphics graph)
{
draw(graph);
}
};
frame.add(component);
frame.setVisible(true);
} // end of main function
}
1. Purpose
The purpose of this assignment is to implement graph
algorithms for finding the shortest path from a source node to a
destination node on a map.
Note: You CAN use ADTs such as TreeMap defined in Java
library for this assignment. See TreeMap at
https://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.htm
l
2. Description
For this programming assignment, you will implement a graph
using an adjacency list representation. Your program will read
a graph from a file called map.txt. The file is a text file where
the first line contains two numbers. The first is the number of
vertices n and the second is the number of edges m. After this
line there will be n lines with three numbers representing node
locations on a map. The first number represent the vertex ID,
and the next two numbers representing (x, y) coordinates for the
vertex. Then there will be m lines with three numbers
representing edges and their weights. The first two numbers
represent the source and destination vertex for the undirected
edge. The third number is the weight for that edge. Your
program should ask the user to enter the source and the
destination and run Dijkstra’s shortest path algorithm to return
the shortest path from the source to the destination. An
example map.txt file would be:
4 5
0 10 10 vertex 0’s location is at (10, 10)
1 90 40
2 30 10 vertex 1’s location is at (90, 40)
3 90 10
0 2 1 edge connecting nodes 0 and 2 with weight 1
1 2 5
2 3 3
1 3 2
0 3 10 edge connecting nodes 0 and 3 with weight 10
This file represents a graph with 4 vertices, 5 edges, and has
edges (0, 2) with weight 1, (1,2) with weight 5, (2,3) with
weight 3, (1,3) with weight 2, (0,3) with weight 10. The graph
is undirected; that is, for each edge (v, w), you should add v w
and w v with the same weight in your program. Your
program should output the shortest path (e.g., output the
shortest path between vertex 0 and vertex 3 as a sequence of
vertex labels 0, 2, 3). NOTE: The weight does NOT have to be
an integer. In general the weight will be a floating point
number.
3. Grading (100 points)
· If your program does not compile, you receive zero points for
this assignment.
· (20 points) You should implement the adjacency list data
structure for the graph.
· (20 points) You should use your own implementation of
Binary Heap for this assignment.
· (50 points) Be sure to test the correctness of your algorithms
and implementations.
· (10 points) Your code will be graded based on whether or not
it compiles, runs, produces the expected output, produces
correct output, and your coding style.
4. Bonus points (20 points)
Receive 20 bonus points if your program provides a GUI
(graphic user interface) that shows the graph (nodes, edges, and
edge weights) on a Java frame. The user can enter the source
and the destination. The GUI then colors the shortest path. The
basic 2D graphics GUI is given in
Map.java at isidore.
5. Turn in
• Zip your project, and turn in the zip file to isidore.

Contenu connexe

Similaire à The Affordable Care Act (ACA) requires all US citizens and legal r.docx

Basic Graphics in Java
Basic Graphics in JavaBasic Graphics in Java
Basic Graphics in JavaPrakash Kumar
 
Parametric Equations with Mathcad Prime
Parametric Equations with Mathcad PrimeParametric Equations with Mathcad Prime
Parametric Equations with Mathcad PrimeCaroline de Villèle
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxYASHU40
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3JenniferBall44
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docxrosemarybdodson23141
 
AutoCAD-ppt.pptx
AutoCAD-ppt.pptxAutoCAD-ppt.pptx
AutoCAD-ppt.pptxABUFAZZIL
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshopBAINIDA
 
Class program and uml in c++
Class program and uml in c++Class program and uml in c++
Class program and uml in c++Osama Al-Mohaia
 
computer graphics lab manual 2013-converted.pdf
computer graphics lab manual 2013-converted.pdfcomputer graphics lab manual 2013-converted.pdf
computer graphics lab manual 2013-converted.pdfSyedSajjadShah3
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfRajJain516913
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdfjeeteshmalani1
 
Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)Alex Larcheveque
 
computer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcodecomputer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcodeBhavya Chawla
 

Similaire à The Affordable Care Act (ACA) requires all US citizens and legal r.docx (20)

Basic Graphics in Java
Basic Graphics in JavaBasic Graphics in Java
Basic Graphics in Java
 
Parametric Equations with Mathcad Prime
Parametric Equations with Mathcad PrimeParametric Equations with Mathcad Prime
Parametric Equations with Mathcad Prime
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
 
Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3Ecs40 winter 2017 homework 3
Ecs40 winter 2017 homework 3
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
AutoCAD-ppt.pptx
AutoCAD-ppt.pptxAutoCAD-ppt.pptx
AutoCAD-ppt.pptx
 
Unit 1 - R Programming (Part 2).pptx
Unit 1 - R Programming (Part 2).pptxUnit 1 - R Programming (Part 2).pptx
Unit 1 - R Programming (Part 2).pptx
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshop
 
Class program and uml in c++
Class program and uml in c++Class program and uml in c++
Class program and uml in c++
 
computer graphics lab manual 2013-converted.pdf
computer graphics lab manual 2013-converted.pdfcomputer graphics lab manual 2013-converted.pdf
computer graphics lab manual 2013-converted.pdf
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
 
C++
C++C++
C++
 
Intake 38 6
Intake 38 6Intake 38 6
Intake 38 6
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf1- Create a class called Point that has two instance variables, defi.pdf
1- Create a class called Point that has two instance variables, defi.pdf
 
Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)
 
computer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcodecomputer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcode
 

Plus de mehek4

Accident Up Ahead!Listen to this text being read aloud by a hu.docx
Accident Up Ahead!Listen to this text being read aloud by a hu.docxAccident Up Ahead!Listen to this text being read aloud by a hu.docx
Accident Up Ahead!Listen to this text being read aloud by a hu.docxmehek4
 
Access the annual report provided in Course Materials to complete .docx
Access the annual report provided in Course Materials to complete .docxAccess the annual report provided in Course Materials to complete .docx
Access the annual report provided in Course Materials to complete .docxmehek4
 
Access the Internet to acquire a copy of the most recent annual re.docx
Access the Internet to acquire a copy of the most recent annual re.docxAccess the Internet to acquire a copy of the most recent annual re.docx
Access the Internet to acquire a copy of the most recent annual re.docxmehek4
 
Acc 290 Final Exam MCQs) Which financial statement is used to de.docx
Acc 290 Final Exam MCQs) Which financial statement is used to de.docxAcc 290 Final Exam MCQs) Which financial statement is used to de.docx
Acc 290 Final Exam MCQs) Which financial statement is used to de.docxmehek4
 
AC2760Week 2 Assignment.docx
AC2760Week 2 Assignment.docxAC2760Week 2 Assignment.docx
AC2760Week 2 Assignment.docxmehek4
 
AC1220 Lab 5.1IntroductionJake determines that owning the .docx
AC1220 Lab 5.1IntroductionJake determines that owning the .docxAC1220 Lab 5.1IntroductionJake determines that owning the .docx
AC1220 Lab 5.1IntroductionJake determines that owning the .docxmehek4
 
Abstract(Provide the main generalizable statement resulting .docx
Abstract(Provide the main generalizable statement resulting .docxAbstract(Provide the main generalizable statement resulting .docx
Abstract(Provide the main generalizable statement resulting .docxmehek4
 
Abusive relationships are at the core of the Coetzee novel, whether .docx
Abusive relationships are at the core of the Coetzee novel, whether .docxAbusive relationships are at the core of the Coetzee novel, whether .docx
Abusive relationships are at the core of the Coetzee novel, whether .docxmehek4
 
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docxAbraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docxmehek4
 
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docxAbraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docxmehek4
 
A.Da la correcta conjugación para cada oración.(Give the corre.docx
A.Da la correcta conjugación para cada oración.(Give the corre.docxA.Da la correcta conjugación para cada oración.(Give the corre.docx
A.Da la correcta conjugación para cada oración.(Give the corre.docxmehek4
 
Abraham Lincoln is considered by many historians to be the greatest .docx
Abraham Lincoln is considered by many historians to be the greatest .docxAbraham Lincoln is considered by many historians to be the greatest .docx
Abraham Lincoln is considered by many historians to be the greatest .docxmehek4
 
About half of the paid lobbyists in Washington are former government.docx
About half of the paid lobbyists in Washington are former government.docxAbout half of the paid lobbyists in Washington are former government.docx
About half of the paid lobbyists in Washington are former government.docxmehek4
 
ABC sells 400 shares of its $23 par common stock for $27. The entry .docx
ABC sells 400 shares of its $23 par common stock for $27. The entry .docxABC sells 400 shares of its $23 par common stock for $27. The entry .docx
ABC sells 400 shares of its $23 par common stock for $27. The entry .docxmehek4
 
ABC company is increasing its equity by selling additional shares to.docx
ABC company is increasing its equity by selling additional shares to.docxABC company is increasing its equity by selling additional shares to.docx
ABC company is increasing its equity by selling additional shares to.docxmehek4
 
A.The unification of previously fractious and divided Arab tribes.docx
A.The unification of previously fractious and divided Arab tribes.docxA.The unification of previously fractious and divided Arab tribes.docx
A.The unification of previously fractious and divided Arab tribes.docxmehek4
 
A.Escribe la forma correcta del verbo en españolNosotros siem.docx
A.Escribe la forma correcta del verbo en españolNosotros siem.docxA.Escribe la forma correcta del verbo en españolNosotros siem.docx
A.Escribe la forma correcta del verbo en españolNosotros siem.docxmehek4
 
A.Both countries fought for independence from Great Britain, b.docx
A.Both countries fought for independence from Great Britain, b.docxA.Both countries fought for independence from Great Britain, b.docx
A.Both countries fought for independence from Great Britain, b.docxmehek4
 
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docx
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docxa.A patent purchased from J. Miller on January 1, 2010, for a ca.docx
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docxmehek4
 
A.) Imagine that astronomers have discovered intelligent life in a n.docx
A.) Imagine that astronomers have discovered intelligent life in a n.docxA.) Imagine that astronomers have discovered intelligent life in a n.docx
A.) Imagine that astronomers have discovered intelligent life in a n.docxmehek4
 

Plus de mehek4 (20)

Accident Up Ahead!Listen to this text being read aloud by a hu.docx
Accident Up Ahead!Listen to this text being read aloud by a hu.docxAccident Up Ahead!Listen to this text being read aloud by a hu.docx
Accident Up Ahead!Listen to this text being read aloud by a hu.docx
 
Access the annual report provided in Course Materials to complete .docx
Access the annual report provided in Course Materials to complete .docxAccess the annual report provided in Course Materials to complete .docx
Access the annual report provided in Course Materials to complete .docx
 
Access the Internet to acquire a copy of the most recent annual re.docx
Access the Internet to acquire a copy of the most recent annual re.docxAccess the Internet to acquire a copy of the most recent annual re.docx
Access the Internet to acquire a copy of the most recent annual re.docx
 
Acc 290 Final Exam MCQs) Which financial statement is used to de.docx
Acc 290 Final Exam MCQs) Which financial statement is used to de.docxAcc 290 Final Exam MCQs) Which financial statement is used to de.docx
Acc 290 Final Exam MCQs) Which financial statement is used to de.docx
 
AC2760Week 2 Assignment.docx
AC2760Week 2 Assignment.docxAC2760Week 2 Assignment.docx
AC2760Week 2 Assignment.docx
 
AC1220 Lab 5.1IntroductionJake determines that owning the .docx
AC1220 Lab 5.1IntroductionJake determines that owning the .docxAC1220 Lab 5.1IntroductionJake determines that owning the .docx
AC1220 Lab 5.1IntroductionJake determines that owning the .docx
 
Abstract(Provide the main generalizable statement resulting .docx
Abstract(Provide the main generalizable statement resulting .docxAbstract(Provide the main generalizable statement resulting .docx
Abstract(Provide the main generalizable statement resulting .docx
 
Abusive relationships are at the core of the Coetzee novel, whether .docx
Abusive relationships are at the core of the Coetzee novel, whether .docxAbusive relationships are at the core of the Coetzee novel, whether .docx
Abusive relationships are at the core of the Coetzee novel, whether .docx
 
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docxAbraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufano,.docx
 
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docxAbraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docx
Abraham, J., Sick, B., Anderson, J., Berg, A., Dehmer, C., & Tufan.docx
 
A.Da la correcta conjugación para cada oración.(Give the corre.docx
A.Da la correcta conjugación para cada oración.(Give the corre.docxA.Da la correcta conjugación para cada oración.(Give the corre.docx
A.Da la correcta conjugación para cada oración.(Give the corre.docx
 
Abraham Lincoln is considered by many historians to be the greatest .docx
Abraham Lincoln is considered by many historians to be the greatest .docxAbraham Lincoln is considered by many historians to be the greatest .docx
Abraham Lincoln is considered by many historians to be the greatest .docx
 
About half of the paid lobbyists in Washington are former government.docx
About half of the paid lobbyists in Washington are former government.docxAbout half of the paid lobbyists in Washington are former government.docx
About half of the paid lobbyists in Washington are former government.docx
 
ABC sells 400 shares of its $23 par common stock for $27. The entry .docx
ABC sells 400 shares of its $23 par common stock for $27. The entry .docxABC sells 400 shares of its $23 par common stock for $27. The entry .docx
ABC sells 400 shares of its $23 par common stock for $27. The entry .docx
 
ABC company is increasing its equity by selling additional shares to.docx
ABC company is increasing its equity by selling additional shares to.docxABC company is increasing its equity by selling additional shares to.docx
ABC company is increasing its equity by selling additional shares to.docx
 
A.The unification of previously fractious and divided Arab tribes.docx
A.The unification of previously fractious and divided Arab tribes.docxA.The unification of previously fractious and divided Arab tribes.docx
A.The unification of previously fractious and divided Arab tribes.docx
 
A.Escribe la forma correcta del verbo en españolNosotros siem.docx
A.Escribe la forma correcta del verbo en españolNosotros siem.docxA.Escribe la forma correcta del verbo en españolNosotros siem.docx
A.Escribe la forma correcta del verbo en españolNosotros siem.docx
 
A.Both countries fought for independence from Great Britain, b.docx
A.Both countries fought for independence from Great Britain, b.docxA.Both countries fought for independence from Great Britain, b.docx
A.Both countries fought for independence from Great Britain, b.docx
 
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docx
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docxa.A patent purchased from J. Miller on January 1, 2010, for a ca.docx
a.A patent purchased from J. Miller on January 1, 2010, for a ca.docx
 
A.) Imagine that astronomers have discovered intelligent life in a n.docx
A.) Imagine that astronomers have discovered intelligent life in a n.docxA.) Imagine that astronomers have discovered intelligent life in a n.docx
A.) Imagine that astronomers have discovered intelligent life in a n.docx
 

Dernier

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 

Dernier (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

The Affordable Care Act (ACA) requires all US citizens and legal r.docx

  • 1. The Affordable Care Act (ACA) requires all US citizens and legal residents to obtain qualifying health coverage. In this unit, you will explore the Individual Mandate section of the new health reform law. Tasks: · Explain the Individual Mandate included in the Patient Protection and ACA including the tax penalties that will be imposed if a person or a family does not obtain qualifying health coverage. · Analyze the eligibility criteria for exemptions and subsidies to obtain coverage. · Explain one policy change or enhancement you would recommend if you were required to ensure success of the Individual Mandate included in the Patient Protection and ACA and justify the intended outcome. Submission Details: · Submit your response in a 5- to 6-page Microsoft Word document formatted in APA style. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package map;
  • 2. /** * * @author Zhongmei Yao */ import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JComponent; import java.awt.Color; public class Map { public static void draw(Graphics g) { Color arrColor[] = {Color.BLACK, Color.RED, Color.CYAN}; // you can choose colors you want /* fillOval(x, y, width, height):
  • 3. x - the x coordinate of the upper left corner of the oval to be drawn y - the y coordinate of the upper left corner of the oval width - the width of the oval height - the height of the oval */ int x = 0; int y = 0; int width = 30; int height = 30; // if width equals height, then it's a circle for (int i = 0; i < 6; i++) // draw 6 circles on a row { g.setColor(arrColor[i % 2]); g.fillOval(x + width * i, y, width, height); } g.setColor(arrColor[2]); // set color cyan // draw a red node at (400, 410):
  • 4. int x1 = 400; int y1 = 410; g.fillOval(x1, y1, width, height); // draw a red node at (500, 510): int x2 = 500; int y2 = 510; g.fillOval(x2, y2, width, height); g.setColor(arrColor[0]); // set color black // draw an edge connenting (x1, y1) and (x2, y2) g.drawLine(x1 + width/2, y1+ width/2, x2 + width/2, y2+ width/2); } // end of draw function
  • 5. public static void main(String[] args) { JFrame frame = new JFrame(); final int FRAME_WIDTH = 800; final int FRAME_HEIGHT = 800; frame.setSize(FRAME_WIDTH, FRAME_HEIGHT); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JComponent component = new JComponent() { public void paintComponent(Graphics graph) { draw(graph); } };
  • 6. frame.add(component); frame.setVisible(true); } // end of main function } 1. Purpose The purpose of this assignment is to implement graph algorithms for finding the shortest path from a source node to a destination node on a map. Note: You CAN use ADTs such as TreeMap defined in Java library for this assignment. See TreeMap at https://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.htm l 2. Description For this programming assignment, you will implement a graph using an adjacency list representation. Your program will read a graph from a file called map.txt. The file is a text file where the first line contains two numbers. The first is the number of vertices n and the second is the number of edges m. After this line there will be n lines with three numbers representing node locations on a map. The first number represent the vertex ID, and the next two numbers representing (x, y) coordinates for the vertex. Then there will be m lines with three numbers representing edges and their weights. The first two numbers represent the source and destination vertex for the undirected edge. The third number is the weight for that edge. Your program should ask the user to enter the source and the destination and run Dijkstra’s shortest path algorithm to return the shortest path from the source to the destination. An example map.txt file would be: 4 5
  • 7. 0 10 10 vertex 0’s location is at (10, 10) 1 90 40 2 30 10 vertex 1’s location is at (90, 40) 3 90 10 0 2 1 edge connecting nodes 0 and 2 with weight 1 1 2 5 2 3 3 1 3 2 0 3 10 edge connecting nodes 0 and 3 with weight 10 This file represents a graph with 4 vertices, 5 edges, and has edges (0, 2) with weight 1, (1,2) with weight 5, (2,3) with weight 3, (1,3) with weight 2, (0,3) with weight 10. The graph is undirected; that is, for each edge (v, w), you should add v w and w v with the same weight in your program. Your program should output the shortest path (e.g., output the shortest path between vertex 0 and vertex 3 as a sequence of vertex labels 0, 2, 3). NOTE: The weight does NOT have to be an integer. In general the weight will be a floating point number. 3. Grading (100 points) · If your program does not compile, you receive zero points for this assignment. · (20 points) You should implement the adjacency list data structure for the graph. · (20 points) You should use your own implementation of Binary Heap for this assignment. · (50 points) Be sure to test the correctness of your algorithms and implementations. · (10 points) Your code will be graded based on whether or not it compiles, runs, produces the expected output, produces correct output, and your coding style. 4. Bonus points (20 points) Receive 20 bonus points if your program provides a GUI
  • 8. (graphic user interface) that shows the graph (nodes, edges, and edge weights) on a Java frame. The user can enter the source and the destination. The GUI then colors the shortest path. The basic 2D graphics GUI is given in Map.java at isidore. 5. Turn in • Zip your project, and turn in the zip file to isidore.