MATLAB DOCUMENTATION ON SOME OF THE MODULES
A.Generate videos in which a skeleton of a person doing the following Gestures.
1.Tilting his head to right and left
2.Tilting his hand to right and left
3.Walking
in matlab.
B. Write a MATLAB program that converts a decimal number to Roman number and vice versa.
C.Using EZ plot & anonymous functions plot the following:
· Y=Sqrt(X)
· Y= X^2
· Y=e^(-XY)
D.Take your picture and
· Show R, G, B channels along with RGB Image in same figure using sub figure.
· Convert into HSV( Hue, saturation and value) and show the H,S,V channels along with HSV image
E.Record your name pronounced by yourself. Try to display the signal(name) in a plot vs Time, using matlab.
F.Write a script to open a new figure and plot five circles, all centered at the origin and with increasing radii. Set the line width for each circle to something thick (at least 2 points), and use the colors from a 5-color jet colormap (jet).
G. NEWTON RAPHSON AND SECANT METHOD
H.Write any one of the program to do following things using file concept.
1.Create or Open a file
2. Read data from the file and write data to another file
3. Append some text to already existed file
4. Close the file
I.Write a function to perform following set operations
1.Union of A and B
2. Intersection of A and B
3. Complement of A and B
(Assume A= {1, 2, 3, 4, 5, 6}, B= {2, 4, 6})
MATLAB DOCUMENTATION ON SOME OF THE MODULES
A.Generate videos in which a skeleton of a person doing the following Gestures.
1.Tilting his head to right and left
2.Tilting his hand to right and left
3.Walking
in matlab.
B. Write a MATLAB program that converts a decimal number to Roman number and vice versa.
C.Using EZ plot & anonymous functions plot the following:
· Y=Sqrt(X)
· Y= X^2
· Y=e^(-XY)
D.Take your picture and
· Show R, G, B channels along with RGB Image in same figure using sub figure.
· Convert into HSV( Hue, saturation and value) and show the H,S,V channels along with HSV image
E.Record your name pronounced by yourself. Try to display the signal(name) in a plot vs Time, using matlab.
F.Write a script to open a new figure and plot five circles, all centered at the origin and with increasing radii. Set the line width for each circle to something thick (at least 2 points), and use the colors from a 5-color jet colormap (jet).
G. NEWTON RAPHSON AND SECANT METHOD
H.Write any one of the program to do following things using file concept.
1.Create or Open a file
2. Read data from the file and write data to another file
3. Append some text to already existed file
4. Close the file
I.Write a function to perform following set operations
1.Union of A and B
2. Intersection of A and B
3. Complement of A and B
(Assume A= {1, 2, 3, 4, 5, 6}, B= {2, 4, 6})
I am Baddie K. I am a C++ Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Queensland. I have been helping students with their homework for the past 9 years. I solve homework related to C++. Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Homework.
03 of 03 parts
Get Part 1 from https://www.slideshare.net/ArunUmrao/notes-for-c-programming-for-bca-mca-b-sc-msc-be-amp-btech-1st-year-1
Get Part 2 from https://www.slideshare.net/ArunUmrao/notes-for-c-programming-for-bca-mca-b-sc-msc-be-amp-btech-1st-year-2
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations. C provides constructs that map efficiently to typical machine instructions and has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computers, from supercomputers to PLCs and embedded system.
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 4 of 5 by...ssuserd6b1fd
C programming language notes for beginners and Collage students. Written for beginners. Colored graphics. Function by Function explanation with complete examples. Well commented examples. Illustrations are made available for data dealing at memory level.
I am Arnold H. I am a C++ Programming Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Sheffield, UK. I have been helping students with their homework for the past 6 years. I solve homework related to C++ Programming.
Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Programming Homework.
Visual programming (VP) refers to a method of programming that uses a graphical interface to create and modify code, rather than typing out code manually. Unlike traditional text-based programming, visual programming uses visual elements to represent code. Some graphical elements you can use when creating programs with VP include:
Gentle Introduction to Functional ProgrammingSaurabh Singh
This slide is basically aimed at professionals and students to introduce them with functional programming.
I haven't used much functional programming terminologies because I personally feel they could be overwhelming to people getting introduced to FP for the first time. For similar reasons I have deliberately avoided using any functional programming language and kept the discussions programming language agnostic as far as possible.
Notebooks such as Jupyter give programming languages a level of interactivity approaching that of spreadsheets.
I present here an idea for a programming language specifically designed for an interactive environment similar to a notebook.
It aims to combining the power of a programming language with the usability of a spreadsheet.
Instead of free-form code, the user creates fields / columns, but these can be combined into tables and object classes.
By decoratively cycling through field elements, loops and other programming constructs can be created.
I give examples from classical computer science, machine learning and mathematical finance, specifically:
Nth Prime Number, 8 Queens, Poker Hand, Travelling Salesman, Linear Regression, VaR Attribution
Task Strict APA format - 250 words.Why is it important for busi.docxjosies1
Task: Strict APA format - 250 words.
Why is it important for business strategy to drive organizational strategy and IS strategy? What might happen if the business strategy was not the driver?
please cite properly in APA
At least Three scholarly source should be used in the initial discussion thread.
.
Task observe nonverbal communication between two or more individual.docxjosies1
Task: observe nonverbal communication between two or more individuals. Focus on ONE individual and identify and anaylze specific nonverbal behaviors.
Requirments: You must incorporate terminology and ideology discused in class.
section 1- Introduction: presents a breif overview that includes how the paper is organized. Following this, present and define nonverbal communication and discuss why this concept is useful.
section 2- Body Language & Self-Presentation:
-Select and discuss 5 nonverbal behaviors observed. They must include: Eye contact, facial expressions, gestures, posture and space.
-For each behavior selected, you must do the following: 1-State the specific behavior being discussed as a heading, 2-describe and summerize in detail, using CONCRETE language, how the individual used the behavior(i should be able to visualize exactly what you describe.) 3-Analyze WHY the individual acted that particular way for each behavior. What did it mean? What message were they trying to convey? Why did they use that behavior?
Section 3-Conclution: Create and overall anaysis about nonverbal behavior of the individual(s), what did you learn about nonverbal? In what ways did this assignment help you with analyzing messages conveyed through nonverbal behavior.
.
More Related Content
Similar to Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
I am Baddie K. I am a C++ Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Queensland. I have been helping students with their homework for the past 9 years. I solve homework related to C++. Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Homework.
03 of 03 parts
Get Part 1 from https://www.slideshare.net/ArunUmrao/notes-for-c-programming-for-bca-mca-b-sc-msc-be-amp-btech-1st-year-1
Get Part 2 from https://www.slideshare.net/ArunUmrao/notes-for-c-programming-for-bca-mca-b-sc-msc-be-amp-btech-1st-year-2
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations. C provides constructs that map efficiently to typical machine instructions and has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computers, from supercomputers to PLCs and embedded system.
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 4 of 5 by...ssuserd6b1fd
C programming language notes for beginners and Collage students. Written for beginners. Colored graphics. Function by Function explanation with complete examples. Well commented examples. Illustrations are made available for data dealing at memory level.
I am Arnold H. I am a C++ Programming Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Sheffield, UK. I have been helping students with their homework for the past 6 years. I solve homework related to C++ Programming.
Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Programming Homework.
Visual programming (VP) refers to a method of programming that uses a graphical interface to create and modify code, rather than typing out code manually. Unlike traditional text-based programming, visual programming uses visual elements to represent code. Some graphical elements you can use when creating programs with VP include:
Gentle Introduction to Functional ProgrammingSaurabh Singh
This slide is basically aimed at professionals and students to introduce them with functional programming.
I haven't used much functional programming terminologies because I personally feel they could be overwhelming to people getting introduced to FP for the first time. For similar reasons I have deliberately avoided using any functional programming language and kept the discussions programming language agnostic as far as possible.
Notebooks such as Jupyter give programming languages a level of interactivity approaching that of spreadsheets.
I present here an idea for a programming language specifically designed for an interactive environment similar to a notebook.
It aims to combining the power of a programming language with the usability of a spreadsheet.
Instead of free-form code, the user creates fields / columns, but these can be combined into tables and object classes.
By decoratively cycling through field elements, loops and other programming constructs can be created.
I give examples from classical computer science, machine learning and mathematical finance, specifically:
Nth Prime Number, 8 Queens, Poker Hand, Travelling Salesman, Linear Regression, VaR Attribution
Similar to Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx (20)
Task Strict APA format - 250 words.Why is it important for busi.docxjosies1
Task: Strict APA format - 250 words.
Why is it important for business strategy to drive organizational strategy and IS strategy? What might happen if the business strategy was not the driver?
please cite properly in APA
At least Three scholarly source should be used in the initial discussion thread.
.
Task observe nonverbal communication between two or more individual.docxjosies1
Task: observe nonverbal communication between two or more individuals. Focus on ONE individual and identify and anaylze specific nonverbal behaviors.
Requirments: You must incorporate terminology and ideology discused in class.
section 1- Introduction: presents a breif overview that includes how the paper is organized. Following this, present and define nonverbal communication and discuss why this concept is useful.
section 2- Body Language & Self-Presentation:
-Select and discuss 5 nonverbal behaviors observed. They must include: Eye contact, facial expressions, gestures, posture and space.
-For each behavior selected, you must do the following: 1-State the specific behavior being discussed as a heading, 2-describe and summerize in detail, using CONCRETE language, how the individual used the behavior(i should be able to visualize exactly what you describe.) 3-Analyze WHY the individual acted that particular way for each behavior. What did it mean? What message were they trying to convey? Why did they use that behavior?
Section 3-Conclution: Create and overall anaysis about nonverbal behavior of the individual(s), what did you learn about nonverbal? In what ways did this assignment help you with analyzing messages conveyed through nonverbal behavior.
.
Task Research Sophos (Intrusion Detection System) and consider .docxjosies1
Task: Research Sophos (Intrusion Detection System) and consider the following questions:
Are you able to monitor and manage networked devices including mobile devices from the cloud?
Can you initiate a scan of all devices from one computer to another?
Are you notified if there is an attack on one of your devices?
Does it detect Infrastructure Attacks?
Can you manage vulnerability information?
Can you generate a cybersecurity intelligence report?
What is the risk management process?
Do not use graphics or logos on the title page (must be plain according to APA).
.
Task Mode Task Name DurationStart Time Finish1Set .docxjosies1
Task Mode
Task Name
Duration
Start Time
Finish
1
Set up project organization
3 days
Mon. 1/7/2020
Thu 4/7/2020
2
Create project plan draft
1 day
Fri 5/7/2020
Sat 6/7/2020
Nominate in house relocation coordinator
4 days
Sun 7/7/2020
Thu 11/7/2020
3
Planning
8 days
Fri 12/7/2020
Sat 20/7/2020
4
Requirements
5 days
Sun 25/7/2020
Fri 30/7/2020
5
Design and Prototype
10 days
Sat 31/7/2020
Wed 10/8/2020
6
Information system Development
22 days
Thu 11/8/2020
Mon 2/8/2020
7
Testing
5 days
Tue 3/8/2020
Sun 8/8/2020
8
Deployment
6 days
Mon 9/8/2020
Sun 15/8/2020
9
Operation and Maintenance
20 days
Mon 16/8/2020
Sun 6/9/2020
10
Project Summary/ System Hanover
7 days
Tue 8/9/2020
Tue 15/9/2020
1
Running Head: Information System Project Plan
2
Information System Project Plan
Project Plan
With only two years of operation, LiniolMR company has experienced tremendous growth and a growing client base. The company is expected to grow by sixty percent in the eighteen months. With such growth, the company ought to increase the capacity of data collection and analysis. An advanced information system is to be developed in leveraging data collection. The anticipated information will support the business of the company.
The first task is to assess the current information technology in the company, i.e., the hardware and software that support the company’s operation. This will be done in the first two days of the project. The hardware and software are redesigned to meet the needs outlined by the organization. The team leader of the project will consult several companies to allow the team to integrate their technologies and IT solutions in connection with the development of a technological system.
The on-site solution shall be leveraged in the development of the information system. It is a great resource for the project as it helps in delivering efficient, measurable, and engaging on-site experiences without the limitation of complexity and size of the events (Cha & Maytorena-Sanchez 2019). Reporting and analytics will be done towards the end of the project. Cloud computing technologies and software as-a-Service is of interest in the project.
The cloud computing technology, i.e., the hardware, software, and infrastructure will be incorporated in the system to enable the delivery of cloud computing services like infrastructure as service (IaaS), platform as a service(PaaS), and software as a service(SaaS) through a chosen network like the internet. The project will be pursued in different phases according to the system development life cycle. These phases will mark the project timelines for each event.
System planning is the first phase of the information system development project. It is the most crucial stage in developing an effective system. It will entail defining the objectives, problem, and outlining the relevant resources, i.e., costs and personnel. A study is conducted to identify how the product can be developed better th.
Task Name Phase 4 Individual Project Deliverable Length General.docxjosies1
Task Name: Phase 4 Individual Project
Deliverable Length: General order proposal of 1,000–1,250 words
Details:
Weekly tasks or assignments (Individual or Group Projects) will be due by Monday, and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time.
Recently, your police department has received media coverage and community activist criticism because of the detective bureau's techniques of interrogation. Your chief of detectives has assigned you to develop a general order for the chief of police to consider implementing on this topic. The chief will use your drafted general order to prepare his response to the media at a press conference scheduled for next week. Therefore, time is critical. Consider the following:
•Miranda warnings and waiver of rights form
•Use of audio and video equipment
•Note-taking
•Developing a plan
•Knowledge of the subject and incident
This general order should provide sufficient detail on each of the topics, and it should address the legal and ethical considerations and implications of conducting interviews and interrogations. Research general orders so that your submission reflects a format that is typical of what might be seen in a police department general order.
Please submit your assignment.
.
Task Identify 3 articles which relate to information security and pr.docxjosies1
Task Identify 3 articles which relate to information security and provide a summary of each within 500 of more words. Provide the articles in proper APA format and a brief summary below it.
Article 1
Summary 1
Article 2
Summary 2
Article 3
Summary 3
.
Task Develop a posteron a specific ethics topic and a writt.docxjosies1
Task: Develop a posteron a
specific ethics topic
and a written document
You will need to:
Clearly identify the specific ethics topic and outlined why it was/is an issue
Choose one way (medium) of presenting this information as a specific resource
Have a separate word document with your topic aim, overview of content, intended target audience and reference list.
.
Task 6 reading material · Module 4 Leading Across the Inciden.docxjosies1
Task 6 reading material
· Module 4: Leading Across the Incident: Preparedness, Response, and Recovery (Evaluation): the following areas of the commentary:
· Part I: Leadership Across the Phases:
· Leading for Recovery: Evaluation and the After-Action Review
· Part II: Responding to a Critical Incident: Engaging the Response Simulation
· Part III: Summary
· U.S. Fire Administration/Technical Report Series Special Report: The After-Action Critique: Training Through Lessons Learned http://www.usfa.fema.gov/downloads/pdf/publications/tr_159.pdf
· Donahue, A. & Tuohy, R. (2006, July). Lessons we don’t learn: A study of the lessons of disasters, why we repeat them, and how we can learn from them. http://www.hsaj.org/?fullarticle=2.2.4
· Jackson, B.A., Faith K.S., & Willis, H.H. (2010). Evaluating the Reliability of Emergency Response Systems for Large-Scale Incident Operations, Santa Monica, CA: RAND http://www.rand.org/pubs/monographs/2010/RAND_MG994.pdf Chapter 6: After Action Reports p. 95-116.
· Garvin, D. (2000). The U.S. Army’s After Action Reviews: Seizing the Chance to Learn. http://www.wildfirelessons.net/documents/Garvin_AAR_Excerpt.pdf
· Department of Homeland Security. Homeland Security Exercise Evaluation Program, http://www.fema.gov/media-library/assets/documents/32326
· Homeland Security Exercise and Evaluation Program (HSEEP): Volume III: Exercise Evaluation and Improvement Planning: http://montanadma.org/sites/default/files/HSEEP%20Volume%203.pdf
.
Task Groups in the School SettingPromoting Children’s Socia.docxjosies1
Task Groups in the School Setting:
Promoting Children’s Social and
Emotional Learning
Patricia Van Velsor
San Francisco State University
Through social and emotional learning (SEL), individuals develop skill in
negotiating relationships successfully and expressing emotions appropriately.
The socially and emotionally intelligent child reaps benefits in school and later
life. Counselors are best qualified to promote children’s SEL and the task group
in the classroom provides an excellent opportunity for them to do so. In the task
group, students can learn and practice crucial skills in vivo while they work
together to complete a task. The counselor’s strategic attention to promoting task
completion while facilitating SEL can serve to highlight the benefits of group work
in the school learning environment.
Keywords: schools; social and emotional learning; task groups
Because humans are social beings, they spend a great deal of time
interacting with others and much of that interaction takes place in
groups. As Sonstegard and Bitter (1998) so aptly stated, ‘‘to be human
is to ‘live’ in groups’’ (p. 251). The group (e.g., family, peer) serves as
the ‘‘primary socializing influence’’ in children’s development (Kulic,
Horne, & Dagley, 2004) and the nature of the social environment in
those groups leads children down a path toward either prosocial or
antisocial behavior and beliefs (Hawkins, Smith, & Catalano, 2004).
Children develop social skills and prosocial behaviors through
social and emotional learning (SEL). Although there are various defi-
nitions of SEL, Zins, Bloodworth, Weissberg and Walberg (2007)
define it succinctly as ‘‘the process through which children enhance
their ability to integrate thinking, feeling, and behaving to achieve
important life tasks’’ (p. 6). Five competency areas—self-awareness,
self-management, social awareness, relationship skills, and responsible
Patricia Van Velsor, Ph.D., is an assistant professor in the Department of Counseling at
San Francisco State University. Correspondence concerning this article should be
addressed to Patricia Van Velsor, Department of Counseling, San Francisco State
University, BH 524, 1600 Holloway Avenue, San Francisco, CA 94132. E-mail:
[email protected]
THE JOURNAL FOR SPECIALISTS IN GROUP WORK, Vol. 34 No. 3, September 2009, 276–292
DOI: 10.1080/01933920903033495
# 2009 ASGW
276
decision-making—are basic to negotiating school, work, and life
responsibilities effectively (Collaborative for Academic, Social, and
Emotional Learning, 2000–2009).
Social and emotional intelligence, acquired through SEL, has been
associated with various positive outcomes in school and life. A socially
and emotionally intelligent child is less likely to develop aggressive-
ness, depression, and=or violent behaviors (Poulou, 2005). Children
who develop social and emotional intelligence are also more resistant
to difficulties related to drugs, teen pregnancy, and gangs (Elias et al.,
1997). Moreo.
Task Case Description· An individual task. It consists of .docxjosies1
Task: Case Description:
· An individual task. It consists of the design and execution of a quantitative research project using the methodology of a survey.
· This is an academic paper, so make sure to quote relevant publications, such as academic journals and books, to support your arguments.
Formalities:
· For the document: From 2000 to 2500 words.
· Cover, Table of Contents, References and Appendix are excluded of the total wordcount.
· Font: Arial 12,5 pts.
· Text alignment: Justified.
· The in-text References and the Bibliography have to be in Harvard’s citation style.
Submission:
SUNDAY 11th APRIL 2021, 23:59HRS ON MOODLE
Weight:
Resit – worth 100% of the overall grade – Please remember resits are capped at 70%
Task
1) Research Objective: identify attitudes towards an issue of your choice that may affect society.
2) Define de universe of people that could be affected by that issue. Explain why. Provide the necessary background information based on secondary research sources.
3) Choose a sample that represents that universe. Provide a complete sample profile, considering demographics and psychographics.
4) Write a questionnaire using a least five different types of questions.
5) Apply the questionnaire through a survey and obtain a least fifty completed questionnaires.
· You may use Survey Monkey or a similar tool.
6) Present a report of findings supported with charts, followed by conclusions and recommendations.
.
Task Identify 3 articles which relate to information security an.docxjosies1
Task Identify 3 articles which relate to information security and provide a summary of each within 500 of more words. Provide the articles in proper APA format and a brief summary below it.
Article 1
Summary 1
Article 2
Summary 2
Article 3
Summary 3
.
Task Details What do we know about COVID-19 risk factors What h.docxjosies1
Task Details What do we know about COVID-19 risk factors? What have we learned from epidemiological studies? Specifically, we want to know what the literature reports about: Data on potential risks factors Smoking, pre-existing pulmonary disease Co-infections (determine whether co-existing respiratory/viral infections make the virus more transmissible or virulent) and other co-morbidities Neonates and pregnant women Socio-economic and behavioral factors to understand the economic impact of the virus and whether there were differences. Transmission dynamics of the virus, including the basic reproductive number, incubation period, serial interval, modes of transmission and environmental factors Severity of disease, including risk of fatality among symptomatic hospitalized patients, and high-risk patient groups Susceptibility of populations Public health mitigation measures that could be effective for control
.
Task descriptionA list with information about movies needs to .docxjosies1
Task description
A list with information about movies needs to be organised in a database.
The list contains the following data, for each movie:
Movie Title, year of release, country, runtime; director name with their year of birth and nationality, main actors name with their year of birth and nationality.
The database should be populated with the data listed below, and queries should be created so that the users can:
List name and surname of all actors in alphabetical order
List name and surname of all directors in alphabetical order
List title of all English movies in descending order of publication year
List name and surname of all people who have had a role of both director and actor in the same film
List name and surname of all people who have acted in a film produced in the same country as their nationality, in ascending order of year of birth.
List the name, surname and year of birth of all people who are both actors and directors.
Create a view for listing name and surname of all people who have acted in more than one movie, indicating the number of movies they have acted in.
Create a view showing all people and the title of the movies they have directed, so that those who have directed no movies have a null value shown against them.
Are the views in (7) and (8) updatable? Why? Give an example of updatable view.
Give an example of correlated nested query on the assignment database, explaining why it is correlated.
Deliverable:
Produce a report including:
a brief description of the ER model of the database and its mapping into tables;
the SQL statements for creating the tables;
the SQL statements for populating the tables;
the SQL statements for solving the queries (1) to (8);
your answer to questions (9) and (10).
data for populating the database:
Silence of the Lambs, 1991, USA, 118min, DIRECTOR: Jonathan Demme, 1944, USA ACTORS: Anthony Hopkins, 1937, Welsh Jodie Foster, 1962, USA
Last of the Mohicans, 1992, USA, 122min, DIRECTOR: Michael Mann, 1943, USA ACTORS: Daniel Day-Lewis, 1957, English
Life is Beautiful, 1997, Italian, 124min, DIRECTOR: Roberto Benigni, 1952, Italian, ACTORS: Roberto Benigni, 1952, Italian
The Good, The Bad and The Ugly, 1966, Italian, 180min, DIRECTOR: Sergio Leone, 1929, Italian, ACTORS: Clint Eastwood, 1930, USA, Lee Van Cleef, 1925, USA
Dr. Strangelove, 1964, English, 93min, DIRECTOR: Stanley Kubrick, 1928, USA ACTORS: Peter Sellers, 1925, English
Escape from Alcatraz, 1979, USA, 112min, DIRECTOR: Donald Siegel, 1912, USA, ACTORS: Clint Eastwood, 1930, USA
Eyes Wide Shut, 1999, USA, 160min, DIRECTOR: Stanley Kubrick, 1928, USA, ACTORS: Tom Cruise, 1962, USA Nicole Kidman, 1967, USA
Midnight in the Garden of Good and Evil, 1997, USA, 155min, DIRECTOR: Clint Eastwood, 1930, USA, ACTORS: Kevin Spacey, 1959, USA
American Beauty, 1999, USA, 121min, DIRECTOR: Sam Mendes, 1965, English, ACTORS: Kevin Spacey, 1959, USA
.
Task 4 Cenere, Gill, Lawson, and Lewis (2015) state that Everyth.docxjosies1
Task 4:
Cenere, Gill, Lawson, and Lewis (2015) state that "Everything we do in meetings comes down to the decision making aspects" (p. 374). Discuss this statement in 350 words.
Task 6
: Go to your local council website's recycling page. Discuss how it disseminates information, paying particular attention to the website's use of different channels and/or media. (350 words)
Task 9:
Locate a brief audio file online (from digital radio, You Tube, etc). Using the audio file as an example, discuss audio as an effective channel of communication. Include the audio file link in your blogpost. (350 words)
.
Task A. [20 marks] Data Choice. Name the chosen data set(s) .docxjosies1
Task A. [20 marks] Data Choice.
Name the chosen data set(s) (from module resources, UCI ML Repository or other open data sources or own collection) and describe the data (e.g. attribute types and values, source of data) Comment by Abdulrahman Alkandari: In this part on the red section is a link where I got the data and their a summary on the data
[5 marks]
Adult data set for salary prediction of 50K less or more
http://archive.ics.uci.edu/ml/datasets/adult
Describe the data mining problem (and background) you will address e.g. as a classification, prediction, association, clustering, or text mining related exercise
[5 marks] Classification and predicting, association rule task mining Comment by Abdulrahman Alkandari: The data mininig problem chosen to view this data
Introduce the specific data mining question(s) related to the problem, with specific reference to the dataset(s) and the expected or proposed outcome of the data mining task upon completion Comment by Abdulrahman Alkandari: In the red section the questions are.
How to predict the salaries based on the genders and other charateristics.
And finding the income of the adults
[10 marks]
Predicting the salaries and the best rules needed in knowing the income of the adults by reading the data.
The main aim of this coursework is to critically analyse data sources and data sets, critically evaluate possible data analytics challenges and solutions, choose, design and implement data mining algorithms to the chosen data, and apply the data mining techniques to specific case studies. The coursework is worth 100 marks, and the distribution of marks is detailed on the marking scheme.
You are expected to explore one or two chosen data set(s) of your choice from open data mining/machine learning (re)sources, to develop case studies and apply data mining techniques on the data set(s) for supervised and/or unsupervised learning, as motivated and decided by which is suitable (depending on the data set characteristics). Tasks A, B, and G are compulsory, and you must choose 2 tasks from C, D, E, and F:
Task A. [20 marks] Data Choice.
Name the chosen data set(s) (from module resources, UCI ML Repository or other open data sources or own collection) and describe the data (e.g. attribute types and values, source of data)
[5 marks]
Adult data set for salary prediction of 50K less or more
http://archive.ics.uci.edu/ml/datasets/adult
Describe the data mining problem (and background) you will address e.g. as a classification, prediction, association, clustering, or text mining related exercise
[5 marks] Classification and predicting, association rule task mining
Introduce the specific data mining question(s) related to the problem, with specific reference to the dataset(s) and the expected or proposed outcome of the data mining task upon completion
[10 marks]
Predicting the salaries and the best rules needed in knowing the income of the adults by reading the data.
Task B. [20 marks] Data.
Task A Restaurant have an interested in creating a new grading s.docxjosies1
Task
A Restaurant have an interested in creating a new grading system for their customers. This is critical as the restaurant wants to delivery high standard satisfaction outcomes to improve and standardize the quality of the service they deliver and to have the possibility to partnership with other restaurants in the region. The new system ideally should assess fairly the waiters and waitresses, the cooks, and the suppliers.
· Analyze the main clients and stakeholders (restaurants, customers, suppliers) and build a research method to assess the actual picture of satisfaction of all stockholders. This method will to assess the new grading system as soon as the project is put into practice in the restaurant.
· Identify and prepare the information to convince your boss that your project makes sense and it is necessary to put into practice. You need to be convincing. Prepare a power point with 5 slides that you will have to use to convince the board of directors. Enclose it in Moodle too.
· Create an action plan: tell how are you going to create your team and how you will coordinate it. Which are the tasks and timing will be necessary
· Build up a task list
· Establish and action plan
· Schedule and Budget (and a justification)
· Close the project and assess on the risks of failure Formalities
· Individual work.
· Length of the assignment 1500 words
· Relate your work to the concepts delivered in class.
· Font: Arial 12,5pts. Line-spacing: default. Text-align: Justified.
· Bibliography/References, if needed, has to be quoted in Harvard style.
· You may use Appendixes. These and the References do not count for the total wordcount.
LAUNCH: WEEK 8 / DELIVERY: WEEK 10 – Submission by 23:59hrs GMT+1 (Barcelona’s time). This task is worth 40% of your overall grade for this subject.
It assesses the following learning outcomes:
· Describe the need for a project-based approach inside organizations
· Understand the role of project management as a strategic element inside organizations
· Critically assess the roles and responsibilities of a project manager
· Evaluate how to select, develop, plan, schedule and measure its outcomes and risks.
Rubrics
Exceptional 90-100
Good 80-89
Fair 70-79
Fail <70
Critical analysis (25%)
Student effectively assesses the impact of project on the company. Student engages with theory/data in a critical manner.
Student fairly assesses the impact of project on the company. Students attempt to engage with theory/data in a critical manner.
Student fairly assesses the impact of project on the company, although some key aspects might be missing. Student may be unsuccessful in attempts to engage critically with theory/data.
Student fail to assesses the impact of project on the company, although some key aspects might be missing. Student makes no attempt to engage with theory/data in a critical manner.
Critical evaluation (25%)
Student effectively engages in critical e.
Task 3 - Week Three Discussion - TCPIP Transport Layer Features.docxjosies1
Task 3 - Week Three Discussion - TCP/IP Transport Layer Features
There are five main features of TCP/IP that are highlighted in the book. List and describe each of the features and describe if any of these features are supported by UDP. You initial post should be no less than 350 words.
.
Task 1 Which groups are you going to deal withWhen thinking.docxjosies1
Task 1
Which groups are you going to deal with?
When thinking of all the groups associated with Incident Response you need to understand the different focus each might have. Pick one group from the book, in the news, or in your workplace and discuss their varying objectives. How do they influence the contingency plans?
Examples:
Executive Leadership
Site Security
Information Security
Facilities
Note: I need in one page only and I need references and citation and plagiarism free
APA format
Task 2
End User participation
Why do you think it is important to include end users in the process of creating the contingency plan? What are the possible pitfalls of end user inclusion?
Note: I need in one page only and I need references and citation and plagiarism free,
APA format
.
TASK 2 Describe your nutrition education teaching sessio.docxjosies1
TASK 2: Describe your nutrition education teaching session with your patient and/or their family. What teaching methods will you use (explanation, discussion, demonstration, handouts, etc.)? In your own words, write a paragraph detailing three specific points that you will need to teach your patient about his/her new diet. In addition, give at least one tip to avoid potential herb/nutrient/drug interactions.
· Add more specifics into this education plan
Nutritional Education
One of the critical parts of providing care to women during gestation period is nutritional education (Bedgood, 1983). There exists a correlation between the health of a mother and her child and the nutritional education she receives during her gestation period. Adhering to a nutritional plan provided by the doctor may be challenging if the mother is not properly educated on the need of proper nutrition as well as how to take the nutritious food.
My education teaching session of the client will be done during the first Saturdays of every month throughout the gestation period. The main objective of the teaching education sessions is to help the client transition to the newly modified diet. The client is expected to come along with her husband for the sessions. The teaching sessions have been scheduled on Saturdays of every month to correspond to her clinic appointments. Apart from helping her transition smoothly to a prescribed diet, the session will also allow me to assess her health condition particularly her recovery process. Any changes in her diet plan will be made during these sessions based on how she responds.
The method of teaching will be verbal and visual. Passing information verbally is direct and will give her opportunity to ask questions and engage in meaningful discussions. Visuals learning will be provided to help her engage better with materials as well as to boost her thinking skills throughout the learning sessions. Each learning session is scheduled to last for three hours. Different ways of preparing food will be demonstrated during the program. I also expect questions from the husband and her concerning ways of supporting her through the gestation period to ensure that she takes the right diet in the right quantities and at the right time.
Goals of The Nutrition Education Teaching Session:
· Smooth transition from regular diet to the prescribed nutrition plan. This involves developing a positive attitude towards healthy eating and providing motivation.
· Healthy mental being through positive thinking and engagement in various activities. A healthy diet goes in hand with maintaining a positive mental health.
· Assist the client on ways in which she can source dilatory foods without spending a lot of resources. Based on her financial condition, she needs to understand how source food with the limited resources.
· The program will teach her how to prepare various foods without destroying the nutrients required by the body. For example, avoidin.
Task 1 Kirk (2016) states that the topic of color can be a mine.docxjosies1
Task 1:
Kirk (2016) states that the topic of color can be a minefield. The judgement involved with selecting the right amount of color for a particular application can be daunting. With regards to visualizations, there are different levers that can be adjusted to create the desired effects (Kirk, 2016). The levers are associated with the HSL (Hue, Saturation, Lightness) color cylinder. Select and elaborate on one of the following:
Color Hue Spectrum
Color Saturation Spectrum
Color Lightness Spectrum
.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
2. 7 6 4 5
8 9 11 10
15 14 12 13
0 1 2 3
7 6 5 4
8 9 10 11
15 14 13 12
Task4/task4.cpp
#include <cstdio>
#include <iostream>
using namespace std;
#define MAXROW 4
#define MAXCOL 4
void bidirection_bbsort(int a[], int n, bool ascending)
{
int i,j, temp;
//This is the original bubble sort
// Make SMALL change such that it handles descending
3. sorting too
for (i = n-1; i >= 1; i--) {
for (j = 1; j <= i; j++) {
if (a[j-1] > a[j]) {
temp = a[j-1] ;
a[j-1] = a[j] ;
a[j] = temp ;
}
}
}
}
void column_sort(int m[][MAXCOL], int col)
{
//Use the bidirection_bbsort() once it is implemented
// No need to invent / write a new sorting logic
}
void print_matrix(int m[][MAXCOL], int nRow, int nCol)
{
int i, j;
for (i = 0; i < nRow; i++){
for (j = 0; j < nCol; j++){
printf("%2d ", m[i][j]); //use printf for easier formatting
//cout << setw(2) << m[i][j] << " "; //equivalent c++
output formatting
}
cout << endl;
}
cout << endl;
}
void phase_A(int mat[][MAXCOL], int nRow, int nCol)
{
4. int i;
bool order = true;
for (i = 0; i < nRow; i++, order = !order){
bidirection_bbsort(mat[i], nCol, order);
}
}
void phase_B(int mat[][MAXCOL], int nRow, int nCol)
{
int i;
for (i = 0; i < nCol; i++){
column_sort(mat, i);
}
}
void magic_sort(int mat[][MAXCOL], int nRow, int nCol)
{
int i;
for (i = 1; i < nRow; i *= 2){
phase_A(mat, nRow, nCol);
print_matrix(mat, nRow, nCol);
phase_B(mat, nRow, nCol);
print_matrix(mat, nRow, nCol);
}
phase_A(mat, nRow, nCol);
print_matrix(mat, nRow, nCol);
}
int main()
{
5. int arr[] = { 5, 12, 6, 7, 9, 6, 1};
int i;
int mat[MAXROW][MAXCOL] = {
{5, 2, 13, 9},
{10, 1, 15, 0},
{7, 3, 11, 14},
{12, 8, 4, 6}
};
magic_sort(mat, 4, 4);
return 0;
}
Task3/task3.cpp
#include <cstdio>
#include <iostream>
using namespace std;
struct Point {
int X, Y;
};
void sort(Point a[], int n)
{
//You can adapt any of the insertion / selection / bubble sort
}
int main()
6. {
int i;
Point ptArray[5] = { {11, 34}, {5, 73}, {11, 19}, {13, 5},
{11,
68}};
sort(ptArray, 5);
//The output should match the order given in question
for (i = 0; i < 5; i++){
printf("(%d, %d)n", ptArray[i].X, ptArray[i].Y);
}
return 0;
}
Task2/sample_length_3.txt
***
%%%
%##
%$$
##%
$$%
Task2/sample_length_5.txt
***%%
9. int i;
floor.clear(); //clear the content of string
floor.assign(size, EMPTY); //fill string with "size" copies of
EMPTY '-'
}
void put_tile(string& floor, int loc, Tile* tilePtr)
{
int i;
for (i = 0; i < tilePtr->size; i++){
floor[loc+i] = tilePtr->pattern;
}
}
void remove_tile(string& floor, int loc, Tile* tilePtr)
{
int i;
for (i = 0; i < tilePtr->size; i++){
floor[loc+i] = EMPTY;
}
}
void tile_floor(string& floor, int loc, Tile tileArray[], int
numTiles)
{
//Only nee dto write this function
}
int main()
{
Tile tileSet[4] = { {3, '*'}, {1, '%'}, {2, '#'}, {2, '$'}};
string floor;
10. //This example test a floor length of 3
// You should test additional values to ensure correctness
init_floor(floor, 3);
tile_floor(floor, 0, tileSet, 4);
return 0;
}
Task1/task1.cpp
#include <cstdio>
#include <iostream>
using namespace std;
//used to count the number of times fibonacci is called
int __call_count = 0;
int fibonacci_m(int N, int known_result[])
{
//Do not remove the following line
__call_count++;
//Put your code below
if ( N <= 2){
return 1;
}
return fibonacci_m(N-1, known_result) + fibonacci_m(N-2,
known_result);
}
11. int main()
{
int N;
int known[50] = {0};
cout << "N = ";
cin >> N;
printf("Fibonacci(%d) is %dn", N, fibonacci_m(N, known));
printf("Fibonacci() called %d timesn", __call_count);
return 0;
}
1 | P a g e
National University of Singapore
School of Continuing and Lifelong Education
TIC1002: Introduction to Computing and Programming II
Semester II, 2017/2018
Problem Set 2
Recursion and Sorting
Release date: 3 Feb 2018
Due: 19 Feb 2018, 23:59
Task 1: Memoisation…. Did you just misspelled memorization?
12. [6 marks]
The Fibonacci() example from lecture illustrated that a)
Recursion is indeed simpler /
elegant to code, but also b) Precious time may be wasted due
to the recalculation of known
results. Let us learn a powerful technique to get the best of both
worlds in this task.
Memoization (not a typo!) is a problem solving technique where
we keep previously calculated
results for future use. Combining memoization with recursion gi
ve you a very powerful problem
solving tool!
Let us use factorial() to illustrate the technique:
int factorial_m( int N, int known_result[])
{
if (known_result[N] == 0) {
//Cannot rely on known calculation, have to work
if (N == 0){
//Fill in the result for future use
known_result[0] = 1;
} else {
//Same, record result for future use
known_result[N] = N * factorial_m( N‐1, known_result);
}
}
//At this point, known_result[N] should have N!
// Either it is previously known (i.e. failed the if condition) OR
// It has just been calculated in the recursive portion above.
return known_result[N];
13. }
The factorial function now takes in an array known_result[] whi
ch keeps track of previously
calculated result, known_result[K] stores the answer for K!.
2 | P a g e
At the beginning, the known_result[] should be initialized to all
zeroes to indicate no known
answers (zero is chosen because factorial(N) cannot be zero). Y
ou can see that as answers are
calculated, the respective elements in the known_result
array will be filled. If the same
known_result[] array is used again, we can cut down some of th
e unnecessary calculations.
For example:
int known[20] = {0}; //support up to factorial(19).
factorial_m( 3, known ); // Call ONE
factorial_m( 3, known ); // Call TWO
factorial_m( 5, known ); // Call Three
For Call ONE, each of the recursive calls
(f(3) f(2) f(1) f(0)) will find that
the respective element in known[3], known[2], known[1] and kn
own[0] are all "0", i.e. no
known result. The normal recursion will kick in and fill
up the answers in known[0],
14. known[1], known[2] and known[3]. In this example, there is no
saving at all.
However, at Call TWO, fac(3) will find that known[3] already h
as an answer and proceed to
return it without any recursive call!
For Call THREE, fac(5) will only calculates two values at know
n[5] and known[4]. As soon as
the recursion hits fac(3), the known result will be used instead o
f recursion.
Observations:
1.
Memoisation is not only applicable to recursive functions. You
can use it for non‐
recursive processing too, especially if the calculation takes a lo
ng time.
2. Factorial() can only benefit from memorization if we call
factorial() multiple
times for different inputs. i.e. if we stop
the example after call one, there is no
benefit gained as fac(3), fac(2), fac(1) and fac(0) are calculated
and used
once only.
Point (2) above should give you a hint that memorization will h
elp functions like Fibonacci()
greatly as multiple redundant calculations are performed even in
the same Fibonacci call.
15. Your task
is to utilize memorization technique for the recursive Fibonacci(
) function. Note
that in the template code, we gave the original Fibonacci functio
n with a small addition. There
is a global variable "call_count" which will be incremented ever
y time the Fibonacci function
is called. This is just a simple way
for us to check whether your memoization is implemented
3 | P a g e
properly. For actual usage outside of this task, you can just rem
ove this global variable safely. In
the original recursive Fibonacci() function:
Fibonacci 20 30 40
Result 6765 832040 102334155
Call Count 13529 1664079 204668309
With memoization, the call count reduces drastically:
Fibonacci 20 30 40
Result 6765 832040 102334155
Call Count 20 30 40
Note that the results reported are from independent
single Fibonacci() function call, not
consecutive ones. Once the memorization is properly
16. implemented, you should find that the
recursive function's execution speed is comparable to the iterati
ve version!
Task 2: Pretty Tiles [6 marks]
Nemo has just moved in to his new HDB
flat! He hired you as the interior designer with the
main focus to tile his floor with beautiful patterns. Being a typi
cal choosy person, Nemo asked
you to show him all possible designs so that he can decide on th
e best pattern.
To simplify the problem,
let us consider only one strip of the floor area, represented by a
1D
character string. Each type of tile pattern is
represented by a character and has a size (how
many units of floor area it can cover). For example, we have 4 d
ifferent tiles below:
Index 0 1 2 3
Pattern '*' '%' '#' '$'
Size 3 1 2 2
For example, the tile pattern 0 is a size 3 tile with '*', i.e. "***"
.
If we use the above tile set to fill a floor area of 3 units, the pos
sible patterns are:
***
%%%
%##
17. %$$
##%
$$%
One tile 0
Three tile 1
One tile 1 and One tile 2
etc…..
Note that a valid pattern must fully filled the floor (i.e. has 3 ch
aracters in this example).
4 | P a g e
Write a recursive function to generate all the possible design pa
tterns. The recursive function
has the following header:
void tile_floor(char floor[], int loc,
struct Tile tileArray[], int numTiles)
floor[] is the character array representing the floor. Should be u
sed as a string.
loc is the current location (index) to place a tile on.
tileArrray[] is an array of Tile structure (see below).
numTiles is the number of tiles in the tileArray
This function print all possible design patterns to fully fill the fl
oor from loc onwards.
We use a Tile structure to capture the information about a tile:
struct Tile {
int size;
18. char pattern;
};
In addition, we have written the following helper functions for y
ou:
void put_tile(char floor[], int loc, struct Tile* tilePtr);
Fill in a tile on the floor at location loc. The tile information is
passed in via the structure
pointer tilePtr.
void remove_tile(char floor[], int loc, struct Tile* tilePtr);
Remove a tile on the floor at location loc. The tile information i
s passed in via the structure
pointer tilePtr.
void remove_tile(char floor[], int loc, struct Tile* tilePtr);
Remove a tile on the floor at location loc. The tile information i
s passed in via the structure
pointer tilePtr.
void init_floor(char floor[], int size);
Empty the floor of any tile. In this program, we represent empty
floor locations as '‐'.
Hints:
1. Think of the 3 key ingredients of recursive solution!
2. The solution needs only ~10 lines of code.
3. In this case, there can be a loop in the recursive function.
4. Don’t forget to make use of the provided helper functions.
19. 5 | P a g e
Two sample output for floor length of 3 and 5, named as "sampl
e_length_3.txt" and
"sample_length_5.txt" are provided for your reference.
Ensure your output is exactly the same as the sample output (inc
luding the sequence of
designs).
Task 3: There is no point in sorting! [6 marks]
Sorting algorithm can be easily expanded to any other comparab
le items. As long as there is a
way to say "item A is before item B", then a collection of such i
tems can be sorted.
In this task, we will try to sort an array of 2D points, i.e. reusin
g the Point structure covered in
lecture 2:
struct Point {
int X, Y;
};
The ordering we want to achieve is "sort by X‐ coordinate, tie b
reaks by Y‐coordinate". Below is
an example of sorted array of points:
Point Index 0 1 2 3 4
20. X 5 11 11 11 13
Y 73 19 34 68 5
Note the interesting example of Point 1, 2 and 3: Since they hav
e the same X‐ coordinates,
these points are ordered by the Y coordinate ("Tie breaks by Y‐
coordinate").
You can implement any of the 3 sorting algorithms taught in thi
s course: Insertion, Selection or
Bubble Sort. However, the restriction is that you can only call s
ort() ONCE to achieve the final
result.
Note: The auto‐grader can only confirm the sorting order (i.e. is
it sorted properly), but not the
further requirements (sorting algorithm, cannot use sort more th
an once etc). Hence, the
further requirements will be manually verified after submission
deadline.
6 | P a g e
Task 4: Tada! Magic Sort. [6 marks]
This task looks at a very interesting sorting that works on a 2D
array. Don’t panic! The core logic
is already written in the magic_sort() function. You only need t
21. o provide two helper
functions that are quite straightforward to write:
void bidirection_bbsort( int a[], int N, bool ascending);
Adapt the given bubble sort function so that it can sort either in
ascending order (from
small item to large) or descending order (from large item to sma
ll). Note that the bubble
sort function can already sort in ascending order.
The parameter ascending indicates the sorting order:
true: ascending order OR
false: descending order
void column_sort( int matrix[][MAXCOL], int col);
Sort the col column in the matrix[][] in ascending order.
Restriction: Find a way to reuse the bidirection_bbsort(), i.e. yo
u do not need to
write the sorting logic at all.
Once the functions are implemented, the magic_sort() function s
hould have the following
output:
2 5 9 13
15 10 1 0
3 7 11 14
12 8 6 4
0 1 2 3
7 6 4 5
8 9 11 10
22. 15 14 12 13
2 5 1 0
3 7 6 4
12 8 9 13
15 10 11 14
0 1 2 3
7 6 5 4
8 9 10 11
15 14 13 12
0 1 2 5
7 6 4 3
8 9 12 13
15 14 11 10
See anything special for the final output? (hint: the matrix is no
w sorted in a specific way…
For your exploration: Try placing other values in the original m
atrix in main() and verify that
the "magic sort" always work. This sorting algorithm is known a
s "shear sort".