$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!
Students Who Viewed This Also Studied
CS 1010 Computer Science
Task
General problem description
The Alzarius Engineering Convention is holding a 3-day collection of workshops. They are going to offer a certificate to anyone who completes at least 5 credits’ worth of workshops. Workshops are worth either 1 or 2 credits, so the certificate could be earned by attending five 1-credit workshops, three 2-credit workshops, or a mix of the two, such as three 1-credit workshops and one 2-credit workshop.
Each workshop has a specified start and stop time (using a 24-hour clock). A person can’t participate in two workshops at once, so it’s important to make sure that people don’t sign up for two workshops that are happening at the same time.
Each workshop occurs on only one day (day 1, 2, or 3 of the Convention). No workshop occurs earlier than 6am (0600) or later than 11pm (2300).
You will write a program that checks a participant’s proposed Convention schedule and determines
1) whether the proposed list of workshops is possible to attend, without any time conflicts, and
2) whether the proposed list contains at least 5 credits’ worth of workshops, so that the attendee will earn a certificate.
A person’s Convention schedule will be represented as a list of workshops, where each workshop entry contains these items:
1. A workshop number (a positive integer)
2. A day number (1, 2, or 3, indicating which day the workshop falls on)
3. A number of credits (1 or 2)
4. A start time, using a 24-hour clock
5. A stop time, using a 24-hour clock
All of these numbers are positive integers.
1. Scheme problem
Write a Scheme program to solve the problem described above. Define a function (certificate Workshop_List) which takes a single parameter, Workshop_List, and returns #T or #F. Workshop_List is a list of 5-element lists containing
1. A workshop number (a positive integer)
2. A day number (1, 2, or 3)
3. A number of credits (1 or 2)
4. A start time (an integer in the range 0600-2300)
5. A stop time (an integer in the range 0600-2300)
The function should return #T if the list of workshops totals at least 5 credits and contains no time conflicts, and should return #F otherwise.
You may assume that list Workshop_List will be in the correct format when the function is called; you do not have to error-check for a non-list or an incorrectly formed list. The events in list Workshop_List are not necessarily sorted by workshop numbers, starting times, or any other order. In your program, you may write and call any additional functions that are helpful in the computation.
2. Ada problem
Write a Ada program to solve the problem described above. The input will contain an integer N on a line by itself, representing the number of workshops in the list. This is followed by N lines, each containing 5 positive integers:
1. A workshop number (a positive integer)
2. A day number (1, 2, or 3)
3. A number of credits (1 or 2)
4. A start time (an integer in the range 0600-2300)
5. A stop time (an integer in the range 0600-2300)
The output will be one of two messages: “Certificate earned” or “No certificate”. You may assume that the input will be properly formatted with correct data (all workshop numbers will be positive integers, and all times will be integers in the range 0600-2300). The input is not guaranteed to be sorted by workshop numbers, starting times, or any other order.
3. Prolog problem
Write a Prolog program to solve the problem described above. Define a predicate certificate(+Workshop_List) which takes a single parameter, Workshop_List. Workshop_List is a list of 5-element lists containing
1. A workshop number (a positive integer)
2. A day number (1, 2, or 3)
3. A number of credits (1 or 2)
4. A start time (an integer in the range 0600-2300)
5. A stop time (an integer in the range 0600-2300)
The predicate should succeed if the list of workshops totals at least 5 credits and contains no time conflicts, and should fail otherwise.
You may assume that list Workshop_List will be in the correct format when the function is called; you do not have to error-check for a non-list or an incorrectly formed list. The events in list Workshop_List are not necessarily sorted by workshop numbers, starting times, or any other order. In your program, you may write and call any additional predicates that are helpful in the computation.
4. Python problem
Write a Python program to solve the problem described above. Define a function certificate(Workshop_List) which takes a single parameter, Workshop_List, and returns True or False. Workshop_List is a list of 5-element lists containing
1. A workshop number (a positive integer)
2. A day number (1, 2, or 3)
3. A number of credits (1 or 2)
4. A start time (an integer in the range 600-2300)
5. A stop time (an integer in the range 600-2300)
The function should return True if the list of workshops totals at least 5 credits and contains no time conflicts, and should return False otherwise.
You may assume that list Workshop_List will be in the correct format when the function is called; you do not have to error-check for a non-list or an incorrectly formed list. The events in list Workshop_List are not necessarily sorted by workshop numbers, starting times, or any other order. In your program, you may write and call any additional functions that are helpful in the computation.
Note: In Python, decimal integer constants may not start with leading zeros. This is reflected in the test data below, and in the test suite.
CS 1010 Computer Science
Answer in Detail
Solved by qualified expert
Get Access to This Answer
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
29 More Pages to Come in This Document. Get access to the complete answer.
More CS1010 CS 1010 Computer Science: Questions & Answers
Management
Task 1 Draw a defining diagram for the following …
View Answer
Python programming
In this course, you will use Python programming language to drive the software tools to design and simulate integrated photonic devices and circuits. You will learn more about Python in week 2. Let try the ï¬rst basic Python function. To print a string in Python, just write:In [ ]: print(“Hello …
View Answer
CT0383 Object Oriented Programming With Java
Task:
To answer the following questions. You can use external references/material from credible sources (such as the financial press and journal articles):(i) An IPO marks a strategic milestone for a company.(a) What may have motivated Snap to go public?(b) In your opinion, why did Snap choose to …
View Answer
Data Engineers
Data Engineers regularly collect, process and store data. In this task you will develop a deeper understanding of how C programming language can be used for collecting, processing and storing data. In this assignment you get the opportunity to build an interactive program that can manage the list of …
View Answer
Content Removal Request
If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.
Choose Our Best Expert to Help You
James Pang
Masters in Sociology with Specialization in Social Sciences Theories
2419 – Completed Orders
Hire Me
Still in Two Minds? The Proof is in Numbers!
33845 Genuine Reviews With a Rating of 4.9/5.
Management
Assignment: 3 Pages, Deadline:
6 days
Very good piece of work, exactly what I needed. Everything was done very smooth from order to the end.
User ID: 5***28 London, Great Britain
Organizational Behavior
Assignment: 10 Pages, Deadline:
9 days
Thank you for your help, I manage to submit my assignment on time and I got a good grade!
User ID: 5***28 London, Great Britain
Marketing
Assignment: 6 Pages, Deadline:
12 days
Fantastic work, I received my order on time and it was very well done. I got exellent mark for my assingment!
User ID: 5***28 London, Great Britain
Project Management
Assignment: 6 Pages, Deadline:
11 days
I have very complicated project to do and your experts helped me with an exellent work. Thank you so much!
User ID: 5***28 London, Great Britain
Statistics
Programming: 1 Page, Deadline:
26 days
A good solution has been provided and I am satisfied with the solution provided.
User ID: 7***32 Zimbabwe
Finance
Home Work: 8 Pages, Deadline:
19 days
Got the assignment ahead of time and it is very good with attention to detail with all the calculations as asked earlier.
User ID: 8***20 India
It Write Up
Assignment: 20 Pages, Deadline:
3 days
Excellent Job, got excellent grades and passed in the assignment highly recommend. Best solution out there
User ID: 6***94 Mauritius
It Write Up
Essay: 0.8 Pages, Deadline:
1 day
I am one of the regular customer and I am happy with experts which helps me to clear my study. I am satisfied with solutions and thank you for helping …
User ID: 2***87 Bexley, Australia
Accounting
Home Work: 1 Page, Deadline:
8 days
thank you you guys, even though i dont have high marks, but im happy with your effort on that. really appreciate for that
User ID: 6***24 Australia
Management
Assignment: 2.4 Pages, Deadline:
4 days
thank you expert and your team. u guys really helpful for my assignment . really appreciate your effort
User ID: 6***24 Australia
Management
Assignment: 3 Pages, Deadline:
6 days
Very good piece of work, exactly what I needed. Everything was done very smooth from order to the end.
User ID: 5***28 London, Great Britain
Organizational Behavior
Assignment: 10 Pages, Deadline:
9 days
Thank you for your help, I manage to submit my assignment on time and I got a good grade!
User ID: 5***28 London, Great Britain
Marketing
Assignment: 6 Pages, Deadline:
12 days
Fantastic work, I received my order on time and it was very well done. I got exellent mark for my assingment!
User ID: 5***28 London, Great Britain
Project Management
Assignment: 6 Pages, Deadline:
11 days
I have very complicated project to do and your experts helped me with an exellent work. Thank you so much!
User ID: 5***28 London, Great Britain
Statistics
Programming: 1 Page, Deadline:
26 days
A good solution has been provided and I am satisfied with the solution provided.
User ID: 7***32 Zimbabwe
Finance
Home Work: 8 Pages, Deadline:
19 days
Got the assignment ahead of time and it is very good with attention to detail with all the calculations as asked earlier.
User ID: 8***20 India
It Write Up
Assignment: 20 Pages, Deadline:
3 days
Excellent Job, got excellent grades and passed in the assignment highly recommend. Best solution out there
User ID: 6***94 Mauritius
It Write Up
Essay: 0.8 Pages, Deadline:
1 day
I am one of the regular customer and I am happy with experts which helps me to clear my study. I am satisfied with solutions and thank you for helping …
User ID: 2***87 Bexley, Australia
Accounting
Home Work: 1 Page, Deadline:
8 days
thank you you guys, even though i dont have high marks, but im happy with your effort on that. really appreciate for that
User ID: 6***24 Australia
Management
Assignment: 2.4 Pages, Deadline:
4 days
thank you expert and your team. u guys really helpful for my assignment . really appreciate your effort
User ID: 6***24 Australia