Week 7_Assignment - Adi S
.docx
keyboard_arrow_up
School
Indiana University, Bloomington *
*We aren’t endorsed by this school
Course
S364
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
5
Uploaded by EarlNightingale4120
Name(s): Please insert your name(s) here
Assignment Week 7 (Total Points: 40)
1.
Conceptual Questions (10 point):
These questions pertain to key concepts covered during the class. This will include a series of multiple choice, fill in the blank, short answer, and matching questions. These questions are tightly linked to the learning objectives of that week. Questions are also likely candidates for exams. 2.
Hands-on Exercises (15 point):
These questions relate to the hands-on activity(ies). These activities are related to the content covered in the chapter and give students hands-on experience, which is highly sought after by employers for the exciting entry-level positions in the industry
. 3.
Custom Code Implementation (15 point):
These questions allow students to create their own code to achieve a particular task of their choosing. The problem specification must be clear, code commented, and the code must also include concepts that were covered that week. These questions are intended to get students to think creatively about the concepts covered in class and build something of use or of interest to them. 4.
Student Feedback (ungraded):
These questions allow each student to offer feedback to the instructor of there were particular areas which were difficult or needed additional explanation. Students may form groups of up to two
for assignments. You may also choose to work alone. However, the number of questions and the questions themselves will not change if you choose to work alone or with
someone. If you choose to work with someone, only one of you is required to submit the assignment with BOTH of your names on it. Both of you will receive the same score for the assignment. You may choose to work individually for certain assignments, and in groups for others. However, you are responsible for making these decisions and resolving any potential conflicts (e.g., free-riding) – neither I nor the TAs will intervene. No late assignments will be accepted.
In this course, turnitin.com will be utilized. Turnitin is an automated system which instructors may use to quickly and easily compare each student's assignment with billions of web sites, as well as an enormous database of student papers that grows with each submission. After the assignment is processed, as instructor I receive a report from turnitin.com that states if and how another author’s work was used in the assignment. For a more detailed look at this process visit http://www.turnitin.com.
Suggestion
The document is tightly styled. After every question, there is space to respond to the question. Questions use the “question” style and the blank space between questions uses the “answer” style. Students should just start typing into the space provided for the answers and their answers will be distinct from the questions to facilitate grading.
1
Name(s): Please insert your name(s) here
Week 5: File input and output (I/O)
Conceptual Questions (10 point)
Underline
the correct answer (possible answers in Bold) for the following ...
1.
A special character(s) used in files and strings to indicate the end of a line. newline (\n)
; text file; slash (\); escape character; input
2.
A sequence of characters stored in permanent storage like a hard drive. newline; slash (\); escape character; input; text file
3.
The name we use when referring to the file being updated or created by our program
random access file; output file
; input file; read file; 4.
The type of file that we read and write to using our program that can also be understood/viewed by humans.
binary file; random access file; machine file; text file
; sequential file
5.
The function we use as a first step to access an input file or output file
read; write; create; open
; close; 6.
The letter code we use to tell python we want to retrieve data from a file using
“w”, “r”
, “o”,”a” Please refer to these links for additional resources about the questions: 1.
Textbook: Ch 7 - http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.pdf
2.
Reading Files - https://www.w3schools.com/python/python_file_open.asp
3.
Writing/Creating File - https://www.w3schools.com/python/python_file_write.asp
4.
Deleting Files - https://www.w3schools.com/python/python_file_remove.asp
1
Name(s): Please insert your name(s) here
Hands-on Exercises (15 point) Hands on Exercise prompt
Exercise 1: Write a program to read through a file and print the contents of the file (line by line) all in upper case. Only print lines that include an E-mail (hint: search for “@” symbol)
Please include a screen shot of a portion
of your OUTPUT along with your Python code.
Below is an example of what the screen/output should look like where the yellow highlight depicts the user input and the rest is displayed or created by your program.
python shout.py
Enter a file name: mbox-short.txt
FROM STEPHEN.MARQUARD@UCT.AC.ZA SAT JAN 5 09:14:16 2008
RETURN-PATH: <POSTMASTER@COLLAB.SAKAIPROJECT.ORG>
MESSAGE-ID: <200801051412.M05ECIAH010327@NAKAMURA.UITS.IUPUI.EDU>
FOR <SOURCE@COLLAB.SAKAIPROJECT.ORG>;
FOR <SOURCE@COLLAB.SAKAIPROJECT.ORG>; SAT,5 JAN 2008 14:13:33 +0000 (GMT)
Please refer to these links for additional resources about the questions: 1.
Textbook: Ch 7 - http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.pdf
2.
Reading Files - https://www.w3schools.com/python/python_file_open.asp
3.
Writing/Creating File - https://www.w3schools.com/python/python_file_write.asp
4.
Deleting Files - https://www.w3schools.com/python/python_file_remove.asp
Custom Code Implementations (15 point)
Please devise a custom script that includes the following functions or concepts: File input and output (I/O)
. Please also answer the questions below concisely and precisely.
What is the value or problem you are trying to solve?
Open the text file: mbox-short.txt. Count the number of emails received in the file by referring to lines that only 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Only correct answer will be appreciated , otherwise downvoted.
arrow_forward
answer the question task 3
question 1, 2 and 3…
arrow_forward
Practice Question 6
arrow_forward
E3
In this project, you are asked to independently research and write a short report relating to our discussion on Biofuel Energy. Your topic selection is completely of your choosing, though the report must clearly demonstrate how the subject is relevant to the overall topic of Biofuels. This course presents introductory discussions through module content and our weekly lectures, to enhance this learning it is up to the student to further explore and independently research topics of interest. The goal of this research report is to explore what interests you, and get on paper your ideas about this area of renewables technology.
The marking scheme rewards originality and uniqueness of topic selection. Students with same/similar topics will loose significant marks. Plagiarism will result in a 0 mark, and will be dealt with according to Conestoga Academic Integrity policies.
As this is a research report, it is important to develop an overview or a thesis statement about the topic you wish…
arrow_forward
Task1
Question(a), (b) and (c)
arrow_forward
What are the three types of assessments done during a class period?
arrow_forward
Create an end of workshop evaluation form.
arrow_forward
answer the question task 2
arrow_forward
What are the ways for coming up with new ideas? Explain why criticism is not permitted during group brainstorming sessions.
arrow_forward
draw state diagram
The system enables the specialist and guardian to treat and follow up on autism disorder cases. The specialist can add exercises and diagnostic tests for the patient, print reports, and communicate with the guardian. The guardian can view the patient's progress, communicate with the doctor, and add reviews or notes.
arrow_forward
points)
1. Please write down the process of using the decision
table based testing to design test cases.
arrow_forward
Format of case analysis
Write the case first
Write the Time context ( this presents the time the problem should have been noted- only one )
Write the Case ownership ( this identifies who is the owner of the problem-only 1)
Write the Statement of discussions ( this is the answers of the questions. Write first the question followed by your answers) You need to mention the family name/s with date of your references to acknowledge your sources of ideas. Do NOT just copy and paste. EDIT your answers.
Write the statement of conclusion (this is your overall understanding of the case. You will include here your recommendations . Write not more than 3 sentences here.
References (at least 3 in APA format and should be within 2014 to 2020 dates of publication only.) This should match with the references you mentioned in your discussion.
CASE 1:
A small clinical laboratory was established sometime in 1969. The said laboratory was accredited as level 1 and was ISO accredited. In 1979, this…
arrow_forward
Draw sequence diagram for a Bank having many branches. Each branch has many savings, current and loan accounts. A customer can create account, deposit, or withdraw money from account, apply for loan, balance check etc.
arrow_forward
Need proper explanation else skip to other expert
Proper explanation got thumbs-up
arrow_forward
Overdue tasks are highlighted in
Select an answer:
green
yellow
orange
red
arrow_forward
1
Print
Evaluating a Procedural Text
In this task, you'll read a procedural text and then evaluate its organization and clarity, applying the guidelines you read previously. Then you'll suggest ways to improve it. This task will help you become familiar with the components of this type of text before you write your own. Read this written lab procedure, and then answer the questions that follow:
Performing a Lab Experiment
First, you'll need to make sure you have all your equipment, such as a science notebook, dissection tools, a stopwatch, an electronic balance, glassware, and possibly many others. The next thing that you'll want to do is have all your safety equipment—helmet, mask, goggles, ear protection, respirator, welding mask, whatever you need. Always follow these guidelines for safety:
Read the entire lab procedure.
Bring only needed materials into area.
Know where the safety and emergency equipment is located.
It's important to understand how to dispose of waste after…
arrow_forward
- no hand writing
- only unique answers
- to students: DO NOT COPY THE ANSWER | YOU'LL GET ZERO POINTS
Q: What is the purpose of system engineering? How to achieve performance improvement by using system engineering? What is the benefit of using modeling and simulation in system engineering?
arrow_forward
Clear Explanation on this question add some step to leading on how you answerd it
neat handwriting and clear explanation
table completed
Question are below here:
arrow_forward
Draw Use case diagram for a Bank having many branches. Each branch has many savings, current and loan accounts. A customer can create account, deposit, or withdraw money from account, apply for loan, balance check etc.
arrow_forward
Explain the metrics for the design model.
Explain the metrics for testing.
arrow_forward
SET 1 a) Discuss and describe an important idea or hypothesis from the course. b) How can you use this explanation to explain a personal experience? Please be as specific as possible.
The aim of this written submission is for you to focus on the events of your life (work/school/family/friends) and use them as an excuse to put what you've learned in class into reality. Try to answer the following questions when you write your submissions.
1) What did you take away from the encounter?
arrow_forward
Options:
1. If following the WAVE rule, this use case would represent the entire scenario that has value to a "Player"
2. "Search Premade Characters" is an optional task after "Create Character'
3. "Select Upgrades" is an optional task after "Upgrade Character"
4. If following the WAVE rule, this use case should look at tasks from the "Player" point of view, and describe how tasks are performed
arrow_forward
RISK REGISTER : CYBER SECURITY LAB (KEYLOGGING SOFTWARE). Please add 3 more risks.
Intructions: please see below.
1) Have your team identify the top 5-10 risks for your project (i.e. one of the computers don't work, the electrical system is overloaded when all the computers are on, a component of one of the computers is misplaced or stolen, etc.).
arrow_forward
Question#2) Case Study:
JazzN!ghts is a famous Jazz festival, held in Zurich every year. Since its first edition in 1986, it has gone
through several major changes regarding its structure, length and location, but the tickets have always
been sold in a traditional way: through two events agencies. The organizers decided to completely
modernize the tickets selling system and created the following concept. From this year on, the tickets will
be sold in three distinct ways: traditionally, i.e. by the two events agencies, in electronic format directly
on the festival website, and through SBB. All parties will have access to the same unique tickets database
of the new system, to avoid double selling. A partnership with the SBB railway company needs to be set
up, such that SBB can sell combi-tickets including both the festival admission fee and the train ride to the
festival venue at reduced price, from anywhere in Switzerland. This way, more music fans would have
easier and cheaper access…
arrow_forward
Write up the task analysis for opening a soda can. For the component, skills include all of the steps from retrieving the soda from the refrigerator to drinking the first sip of soda. Be sure to consider that this is for a child with severe disabilities and limited skills. You should be able to come up with a minimum of twenty steps if you break the skill down to all of the necessary movements.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- E3 In this project, you are asked to independently research and write a short report relating to our discussion on Biofuel Energy. Your topic selection is completely of your choosing, though the report must clearly demonstrate how the subject is relevant to the overall topic of Biofuels. This course presents introductory discussions through module content and our weekly lectures, to enhance this learning it is up to the student to further explore and independently research topics of interest. The goal of this research report is to explore what interests you, and get on paper your ideas about this area of renewables technology. The marking scheme rewards originality and uniqueness of topic selection. Students with same/similar topics will loose significant marks. Plagiarism will result in a 0 mark, and will be dealt with according to Conestoga Academic Integrity policies. As this is a research report, it is important to develop an overview or a thesis statement about the topic you wish…arrow_forwardTask1 Question(a), (b) and (c)arrow_forwardWhat are the three types of assessments done during a class period?arrow_forward
- draw state diagram The system enables the specialist and guardian to treat and follow up on autism disorder cases. The specialist can add exercises and diagnostic tests for the patient, print reports, and communicate with the guardian. The guardian can view the patient's progress, communicate with the doctor, and add reviews or notes.arrow_forwardpoints) 1. Please write down the process of using the decision table based testing to design test cases.arrow_forwardFormat of case analysis Write the case first Write the Time context ( this presents the time the problem should have been noted- only one ) Write the Case ownership ( this identifies who is the owner of the problem-only 1) Write the Statement of discussions ( this is the answers of the questions. Write first the question followed by your answers) You need to mention the family name/s with date of your references to acknowledge your sources of ideas. Do NOT just copy and paste. EDIT your answers. Write the statement of conclusion (this is your overall understanding of the case. You will include here your recommendations . Write not more than 3 sentences here. References (at least 3 in APA format and should be within 2014 to 2020 dates of publication only.) This should match with the references you mentioned in your discussion. CASE 1: A small clinical laboratory was established sometime in 1969. The said laboratory was accredited as level 1 and was ISO accredited. In 1979, this…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L