1.Write a Slicer
One of the key steps in processing an STL file for printing is slicing. STL files were written
s were written to make slicing a low memory task by storing each triangle at a single place.
We already have code to do the following:
A Generator that returns a triangle one at a time from an STL file (specifically an ASCII STL file). It Return the triangle as a list of 3D points (tuples), ignoring the normal. (from HW4)
A function that takes a list of line segments, each line segment is a list of 2D points (tuples) and returns a single list of 2D points where the start of one segment is the end of another. ( from HW 3)
A function that converts a list of 2D points to G-Code (lab 2)
A function that writes GCode to a file
To make a slicer you need to:
Write a function that calculates the intersection of a triangle with a horizontal plane. The input of the function should be a list of 3D points (tuples). It should return a list of 3D points. See this website for hints on the mathematics http://geomalgorithms.com/a06-_intersect-2.html#Triangle-Plane (Links to an external site.)
( https://web.archive.org/web/20180706054857/http://geomalgorithms.com/a06-_intersect-2.html (Links to an external site.) )
Next you need to combine all of these different functions into a single workflow that takes in an STL file, a slicing height, print temperatures, movement speed , and extrusion speed and returns a G-code String which prints the walls of the STL file. It should have an outer iteration over slice heights of the STL, for each slice height, it should scan all triangles and make a list of the line segments that intersect the plane at that Z height. Then it should order those segments into a list of points. That list of points is then converted into gcode movement and extrusion commands. The entire system combines these slices with setup and shutdown Gcode for the ender 3 printer to make the print job. You may write to a file a layer at a time or at the end.
Once the slicer is done:
Run the previous function with a vase file such as one of the following files:
Submit your code as a Jupiter notebook with the .gcode in it and, and an image of your print.
2.In this problem and the next one, we’re going to make a very simple spam checker program by just looking
ooking at how likely a given email is to be spam based on the words it contains. In particular, in this problem we’re going to count how often words are present in spam emails within some set of training data (which here means a set of emails that have already been marked as spam or not spam manually).
We have already started to write a function spam_score(spam_file, not_file, word), which takes in two filenames, along with a target word (a lowercase string). Both filenames refer to text files which must be in the same directory as hw07.py (we’ve provided several such files in hw07files.zip). The text files contain one email per line (really just the subject line to keep things simple) - you can assume that these emails will be a series of words separated by spaces with no punctuation. The first file contains emails that have been identified as spam, the second contains emails that have been identified as not spam.
Since you haven’t learned File I/O yet, we’ve provided code that opens the two files and puts the data into two lists of strings (where each element is one line - that is, one email). You then must complete the function, so that it returns the spam score for the target word. The spam score is an integer representing the total number of times the target word occurs across all the spam emails, minus the total number of times the word occurs in not-spam emails. Convert all words to lowercase before counting, to ensure capitalization does not throw off the count.
3.Part I. Reaction Paper
Read and understand the text below. Follow outline in writing your reaction paper at least 250-750
paper at least 250-750 words.
2. Thesis Statement
3. Supporting details
The Digital Divide: The Challenge of Technology and Equity
(1) Information technology is influence the way many of us live and work today. We use the internet to look and apply for jobs, shop, conduct research, make airline reservations, and explore areas of interest. We use Email and internet to communicate instantaneously with friends and business associates around the world. Computers are commonplace in homes and the workplace.
(2) Although the number of internet users is growing exponentially each year, most of the worlds population does not have access to computers of the internet. Only 6 percent of the population in the developing countries are connected to telephones. Although more than 94 percent of U.S households have telephones, only 56 percent
have personal computers at home and 50 percent have internet access. The lack of what most of us would consider a basic communication necessity the telephone does not occur just in developing nations. On some Native American reservations only 60 percent of the residents have a telephone. The move to wireless connectivity may eliminate the need for telephone lines, but it does not remove the barrier to equipment costs.
(3) Who has internet access? The digital divide between the populations who have access to the internet and information technology tools and those who dont is based on income, race, education, household type, and geographic location, but the gap between groups is narrowing. Eighty-five percent of households with an income
over $75,000 have internet access, compared with less than 20 percent of the households with income under $15,000. Over 80 percent of college graduates use the internet as compared with 40 percent of high school completers and 13 percent of high school dropouts. Seventy-two percent of household with two parents have internet access; 40 percent of female, single parent households do. Differences are also found among households and families from different racial and ethnic groups. Fifty-five percent of white households, 31 percent of black households, 32 percent of Latino households, 68 percent of Asian or Pacific Islander households, and 39 percent of American Indian, Eskimos, or Aleut households have access to the internet. The number of internet users who are children under nine years old and persons over fifty has more than triple since 1997. Households in inner cities are less likely to have computers and internet access than those in urban and rural areas, but the differences are no more than 6 percent.
(4) Another problem that exacerbates these disparities is that African-American, Latinos, and Native Americans hold few of the jobs in information technology. Women about 20 percent of these jobs and receiving fewer than 30 percent of the Bachelors degrees in computer and information science. The result is that women and members of the most oppressed ethnic group are not eligible for the jobs with the highest salaries at graduation. Baccalaureate candidates with degree in computer science were offered the highest salaries of all new college graduates.
(5) Do similar disparities exist in schools? Ninety-eight percent of schools in the country are wired with at least one internet connection. The number of classrooms with internet connection differs by the income level of students. Using the percentage of students who are eligible for free lunches at a school to determine income level, we see that the higher percentage of the schools with more affluent students have wired classrooms than those with high concentrations of low-income students.
(6) Access to computers and the internet will be important in reducing disparities between groups. It will require higher equality across diverse groups whose members develop knowledge and skills in computer and information technologies. The field today is overrepresented by white males. If computers and the internet are to be used to promote equality, they have to become accessible to schools cannot currently afford the equipment which needs to be updated regularly every three years or so. However, access alone is not enough; Students will have to be interacting with the technology in authentic settings. As technology has become a tool for learning in almost all courses taken by students, it will be seen as a means to an end rather than an end in itself. If it is used in culturally relevant ways, all students can benefit from its power.
4.4. A 2.3 L cylinder containing nitrogen gas at a pressure of 2.8 atm is connected to a 5.5 L
r containing nitrogen at 17.3 atm. What is the final pressure when both the cylinders have achieved equilibrium (reached the same pressure)?
6. An analytical procedure requires a solution of chloride ions. How many grams of BaCl2 must be dissolved to make 360 ml of 0.2 M Cl– ?
(M BaCl2 = 208 g/mol)
7. Find the concentration of chloride ions when 344.4 mL of 2.4 M NaCl is mixed with 364 mL of 2.9 M KCl?
8. A sample of an unknown gas had a density of 1.45 g/L at 20.5 °C and 1.2 atm. Calculate the molar mass of the gas.
(R = 0.08206 L·atm·mol-1·K-1)
5.THINK: WHAT NEW LIT THEORY LENS DO YOU THINK SHOULD EXIST?
When preparing for this assignment, ask yourself the following
yourself the following to start planning your new theory:
Is there a theory we studied that you disagree with? What about it do you dislike or wish to change? Why?
Which theory would you want to expand further or alter to make it more inclusive of a certain group/culture/trend etc.?
What topics in the media angers/upsets/excites/confuses you the most?
While reading The Immortal Life of Henrietta Lacks and/or an essay from The Anthropocene Reviewed, were you particularly drawn to certain events/characters/settings/symbols etc.?
What is your favourite genre of media? (i.e. novels, films, short stories/films, articles, TV shows, poetry, advertising, social media etc.)
CREATE: Now use your brainstorming and knowledge of literary theories to create a new school of literary criticism and apply it to either Henrietta Lacks OR The Anthropocene Reviewed, and one other text of your choice.
PRESENT: Design and create a multimedia presentation that incorporates words and images/graphics presenting your new theory.
What kind of multimedia presentation should I create? E.g. a slideshow of 10-15 slides, a video no longer than 2 minutes, an infographic, an annotated painting/graphic design, magazine article/issue
Your multimedia presentation must include the following:
a unique name for your new theory
a brief definition for your theory - types of questions to ask yourself when using your lens
a brief rationale statement for your theory (rationale is basically why you believe this theory needs to exist and how it was inspired)
an application of your theory to any piece of literature (novel, play, short story, fairy tale) or alternate media text (TV show, comic, advertisement, painting, film clip) **Note: You will have to summarize/introduce your choice of text (e.g. film clip, fairy tale, comic, painting etc.) before you apply your theory
an application of your theory to one passage approx. 250 words long from The Great Gatsby. (not the passage you chose from Lit Theory Assignment #1)
Complete the “Student Comments” part of the rubric (see below) evaluating your final piece
Check out some Level 4 examples to get an idea of what a new theory and its application could look like for student selected texts.
You will upload your final presentation to GC on the due date as shown on the class calendar. You will NOT have to present your final product to the class.
7.Please review the attached finding sheet and complete the questions. Note - this is two documents. Submit this in a
ubmit this in a word version of the document using the provided question sheet, just add your name to the top. The answers provided should be short and concise to make understandability easy for the reader. Assume the reader does not know anything about this finding and that you are communicating this information to them. The reader does not have a college background and is not familiar with technical terms.
If you complete review of the finding sheet, then attach your review in a word document with notes (or comments) directly in the document provided. Whenever you complete a review you should be documenting that review, not just the answers.
8.ssay 1: Person I Admire
This essay assignment is the culmination of all your previous work in this module. You have
in this module. You have already engaged in the beginnings of the writing process of this essay. You have:
Brainstormed ideas (see Chapter 11 in SMG) about the essay in the Discussion Board.
Condensed your ideas down into manageable points around a working thesis.
Displayed knowledge of Description essays from Learning Activities
Drafted a Writing Activity (WA2) about this Description essay.
Consulted with a writing tutor to find areas of strength and areas of improvement.
Finally, you will now compose the final draft of a description essay that:
contains a clear thesis
identifies clear points to support your thesis
engages in critical thought about the subject chosen
uses 2-4 main ideas (points) that support your overall essay thesis
allows you to expand on your chosen topic
This essay assignment represents the first steps in writing any written essay for any academic course. The idea of thesis and support are the cornerstones of all essays. They represent the last part of the writing process. However, you may still revise your essay before final submission. This form of essay writing is the basis for all other academic writing pursuits. This skill translates to almost all careers that require critical thinking, critical reading, and responding in writing. Practicing "how to" write an essay carries over into any field's task of "what" you need to write. This skill will help with all formal writing.
Write a 900-word essay, in MLA format, about a person or fictional character in whom you have an interest.
Select a subject (person or fictional character you admire)
Look to your Discussion (D1) and Writing Activity 2 (WA2) for your subject
The person may be current or historical
Some fictional characters have positive traits that can be identified.
Select several (2-4) traits about the person or character that you admire and write about these. These will be the essay's main ideas.
Biographical information should be used only to support claims.
Your essay should focus on the traits you admire. Do not write a biography or tell a story.
Example of what not to do: This person was born in 1979. They were born in middle Tennessee. They went to elementary school is 1985. They graduated in 1998.
Instead, follow this example: This person was born in middle Tennessee. Entering elementary in school in 1985 was hard for them. They never felt that they belonged in kindergarten. However, they persevered, learning that school was a place for them to grow and be themselves.
Focus on the "why" you admire them instead of a list of traits. In the above example, perseverance and learning to be themselves are the traits the writer of the essay admires.
Organize your main ideas to establish the essay's pattern of organization.
Your main ideas (traits you have chosen) need to be clearly organized.
Decide in what order you wish to discuss these main ideas (traits)
This organization needs to be presented in your introduction, preferably as the last sentence of your introduction in the thesis statement.
Note: your thesis is generally the last sentence in your introduction, but it not a requirement.
Follow this structure throughout the rest of the essay.
Always check to see if your main ideas/topic sentences, in each paragraph, relate back to your thesis statement.
Compose 5 well-developed paragraphs that support a clear thesis statement that is arguable.
5 paragraph minimum
introduces your essay and presents your thesis
three body paragraphs
Each paragraph contains one of your chosen admirable traits about your subject
expressed in a topic sentence in your paragraph
Each trait needs to transition to the next one in the next paragraph
look to your chosen pattern of development
rephrases your traits into one last paragraph
reflects the earlier thesis, but with the knowledge of your traits expressed throughout the essay
This essay is a basic form of an argument essay. The essay should make an argument such as that the person or character selected is worthy of admiration because of the traits selected.
Criteria for Success
A successful essay:
Meets basic requirements of the assignment
Has been written by the student submitting the essay, for this class, and for this semester,
Does not contain plagiarism of any kind
Academic dishonesty is an offense of the NSCC Student Code of Conduct, punishable by a failing grade or zero
Has a clear thesis, main ideas, and pattern of organization
Has been carefully edited and proofread to minimize grammatical and other editing errors
These can be remedied by editing and with Writing Tutor visits and peer reviewing
Follows MLA style and guidelines (spacing, indent, margins, etc. )
The essay will be graded with the Grading Rubric for Essays. Please familiarize yourself with this rubric before you submit your essay. Here is the condensed version of the rubric: