Write UML classes based on the following application features. Information displayed on…
- User
Write UML classes based on the following application features. Information displayed on page will include: Bill Title Ballot listed description Date of creation Bill's political leaning based on applications prediction system Information will be acquired from third-party websites from verified sources such as: Non-profit, neutral websites Official government websites displaying voting records and politician information Set up backend Data Structure - Difficulty: 130 Create Database Framework Will focus on remote database provider such as MongoDB Will utilize SQL within MongoDB to manage incoming data and relationships Information searched will be stored to decrease application latency Information commonly queried may include: Sponsors Voting History Approval Bio information Contact information Bill Title Ballot listed description Date of creation Bill's political leaning based on applications prediction system User - Difficulty: 130
Create User Framework Will focus on creatingUnique Features For You Page - Difficulty: 130 Implement an algorithm to track topics a user shows interest in Will feature bills user is mostly likely to engage with Get Important Data from Ballotpedia - Difficulty: 100 Access and filter for data compatible with app function Cross-reference data from OpenSecrets/Government Websites Pull data that has been triple-verified Get Important Data from OpenSecrets - Difficulty: 100 Access and filter for data compatible with app function Cross-reference data from Ballotpedia/Government Websites Pull data that has been triple-verified Get data from Government Websites - Difficulty: 100 Access and filter for data compatible with app function Cross-reference data from OpenSecrets/Ballotpedia Pull data that has been triple-verified Graphs - Difficulty: 80 Will use datasets to graph out aesthetically pleasing visual representations of the data Ability to comment and react to bills & representatives - Difficulty: 60 Users will be able to comment on featured bills and interact with one another React feature will use visual effect to show how popular/unpopular a bill is publicly received API for connecting front and back-end information for when new data needs processing - Difficulty: 130 Will need to connect data from legitimate websites to our own app Government websites Ballotpedia Open secrets
- Assistant
Here is a possible UML class diagram based on the given application features:
User
- username: String
- password: String
- email: String
- subscribedTopics: List
- interests: List
- engageWithBills(): List
- commentOnBill(bill: Bill, comment: String): void
- reactToBill(bill: Bill, reaction: String): void
Bill
- title: String
- description: String
- creationDate: Date
- politicalLeaning: PoliticalLeaning
- sponsors: List
- votingHistory: List
- approval: float
- bioInformation: String
- contactInformation: String
PoliticalLeaning
- leaning: String
Sponsor
- name: String
- party: String
Vote
- voter: String
- decision: String
DatabaseProvider
- connect(): void
- insertData(data: Object): void
- queryData(query: String): ResultSet
- updateData(data: Object): void
- deleteData(data: Object): void
Graphs
- generateGraph(data: Object): Graph
API
- connectAPI(apiKey: String, url: String): APIConnection
- requestData(resource: String, params: Map<String, String>): Object
HelperClasses:
- BallotpediaHelper
- OpenSecretsHelper
- GovernmentWebsitesHelper
Note: This UML diagram is just one possible representation of the classes in the application. The actual implementation may differ based on specific design choices and requirements.