Copy of Problem Set 4
.docx
keyboard_arrow_up
School
University of Alabama, Birmingham *
*We aren’t endorsed by this school
Course
MISC
Subject
Computer Science
Date
Apr 3, 2024
Type
docx
Pages
8
Uploaded by UltraPartridge3798
Problem Set 4
Important - Before you begin:
Please remember to adhere to all requirements outlined in the General Instructions for Problem Sets
document.
Need Help?
- If you need help with an assignment, don't hesitate to ask! This course features an InScribe Learning Community that provides a variety of assistance options. Remember, it's okay to ask for help when you need it. We're here to support your learning journey.
Good luck, and happy coding!
Problem 1: Basic Data Structures
Points Possible: 10
This problem will allow you to demonstrate your understanding of lists, sets, tuples, and dictionaries. Instructions:
1.
For this problem, follow these steps:
a.
Create a list named dogs containing the following elements: “Bulldog”, “Poodle”, “Beagle”, and “Terrier”.
b.
Print the list.
c.
Convert
the dogs list to a tuple named dogs _tuple
.
d.
Print the tuple.
e.
Convert
the dogs list to a set named dogs _set
.
f.
Print the set.
g.
Convert
the dogs list to a dictionary named dogs _dict
that contains the dogs as
keys and their lengths as values:
IFT 101 - Rev. Spring 2024
i.
Lengths being the size of the word (key) - Bulldog is 7, Poodle is 6, but these should not be hardcoded values, you need to use the len() function to gather the length of the key.
h.
Print the dictionary.
i.
Add “Pug” and “Chihuahua” to the dogs list.
j.
Remove “Beagle” from the dogs list.
k.
Print the updated list.
l.
Update dogs_dict
to reflect the changes made to the dogs list.
m.
Print the updated dictionary. 2.
When your program runs, it should match the expected output below.
3.
Submission:
Save your program’s source code using the following naming convention:
PS4_P1_<Your First Name>_<Your Last Name>.py
Submit the file as per the instructions under the 'Submission' section in the General Instructions for Problem Sets
document. You will submit this file and all other problem set solution files at the same time.
Problem 2: Count Odd and Even Using Loops
Points Possible: 20
This problem will provide you with an opportunity to demonstrate your understanding of loops, lists, and string methods. Instructions:
IFT 101 - Rev. Spring 2024
1.
Write a program that allows the user to input as many integers as they would like, separated by commas. The program then counts the number of even numbers using a while loop. To verify that this count is correct, the program also counts the number of odd numbers using a for loop. You will need to perform the following steps.
a.
Ask the user to enter integers separated by commas.
b.
Convert the input to a list of integers.
c.
Print the total count of numbers entered.
d.
Use a while loop to go through the list and count the even numbers.
e.
Use a for loop to go through the list and count the odd numbers.
f.
Print the counts to the shell.
2.
When your program runs, it should match the expected output below but should work for
any user input that consists of integers separated by commas.
3.
Submission:
Save your program’s source code using the following naming convention:
PS4_P2_<Your First Name>_<Your Last Name>.py
Submit the file as per the instructions under the 'Submission' section in the General Instructions for Problem Sets
document. You will submit this file and all other problem set solution files at the same time.
Problem 3: Network Device Inventory
Points Possible: 30
This problem will provide you with an opportunity to demonstrate your understanding of the properties and practical applications of lists, tuples, sets, and dictionaries.
IFT 101 - Rev. Spring 2024
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
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
What are the ways for coming up with new ideas? Explain why criticism is not permitted during group brainstorming sessions.
arrow_forward
ENGINEERING • COMPUTER-ENGINEERING
Computer Science
I'm working on SE Project about adding three
features to LMS(learning management system),
which are uploading video lectures, customizing
the home page(ex: changing the background
color, hiding selected courses), and customize
notification
so can you please help me to write the problem
statement, scope, goals, objectives, and the Ethical
Aspects considered in the Project.
arrow_forward
Welcome and thank you for your interest in our workshop!
Please enter the names of the participants who would like to join the workshop.
Kindly use the format LASTNAME, FIRSTNAME when entering the names.
Type 'stop' to stop adding to the registration list.
Hanbal, Ibrahim
Schultz, Arooj
Potter, Zubair
Coulson, Grace
Gilliam, Hashim
Graham, Daria
Guzman, Arisha
Carty, Savanna
Pena, Izzie
Nieves, Calista
Flowers, Mysha
Worthington, Zakariya
Nicholson, Kaif
Tatcher, Julien
Sherman, Miya
Rosales, Donald
Medina, Kellan
Wills, Jeffery
Briggs, Lianne
stop
Thank you for registering for our event! Here are the schedules for all participants!
arrow_forward
Tell me about a time when it was hard for you to make your point in an online class or project. Do you have any suggestions for how we could get past these problems?
arrow_forward
Identify a title for a Workshop that you would like to conduct.
Do the following:
Define ONE (1) instructional goal for participants
ii. Identify ONE (1) Topic/Unit
iii. Define ONE (1) learning outcome
iv. Write at least THREE (3) learning objectives
i.
arrow_forward
A ng.cengage.com
Bb https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/3069
ngage Learning
Q Search this
HINDTAP
AA
Review
Critical Thinking Activities
N Module 2 Critical Thinking Activities
Assignment Score: 0.00%
Submit Assignment
Save
« Question 2 of 5 »
Questions
ca2ce01h_Module2.02
1
Marco Suarez is starting a new job in the Sales and Marketing Department of a financial services company.
He is part of a team redesigning the company's website and wants to become better acquainted with current
O website design principles. Search for this year's best website designs and then examine the sample
e webpages. What are the current trends in website design? What principles should Marco use to suggest
changes to his company's website?
3.
4.
5.
MacBook Air
DII
DD
F11
F4
F7
F8
F9
F10
F5
F6
arrow_forward
What are the ways for coming up with fresh ideas? Explain why criticism is not permitted during group brainstorming sessions.
arrow_forward
Do you evaluate the efficacy and application of interpersonal skills throughout the planning and execution of a training event?
arrow_forward
Facts:
Design thinking is a non-linear, iterative process that teams use to understand users, challenge assumptions, redefıne problems and create innovative solutions to prototype and test. Involving
five phases-Empathize, Define, Ideate, Prototype, and Test-it is most useful to tackle problems that are ill-defined or unknown. - canvas.unle
Question:
If you'll explain Design Thinking in ONE WORD what would it be and why?
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
What are the prerequisites and/or steps that must be completed in order to develop a proof of concept?
arrow_forward
A ng.cengage.com
Bb https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/30
Q Search t
nd Tap - Cengage Learning
AGE MINDTAP
Review
AA I
Review
Critical Thinking Activities
N Module 2 Critical Thinking Activities
Assignment Score: 0.00%
Submit Assignment
Save
« Question 4 of 5 »
Questions
ca2ce01h_Module2.04
2.
3.
Ken Chao is a veteran returning to school after six years in the military. After an injury that affected his
sight, he finds it difficult to read text on computer screens. However, many of his classes require online
O research. How can Ken complete his search assignments effectively? How can search engines become more
4.
5.
accessible for people with low vision like Ken?
MacBook Air
DII
DD
F4
F5
F6
F7
F8
F9
F10
F11
arrow_forward
In order to successfully apply this approach, you must describe the user training that will be necessary.
arrow_forward
The reflection paper is a one page reflection about what you have learned in Computer Programming and how it impacts you as a student. You may include in your reflection the realizations about the course and how it is related to your chosen field in general. You may also list down doubts or questions about this course that stimulates your curiosity to learn more about computer programming and information technology as a whole.
please make me a reflection
thankyou
arrow_forward
Examine the effects of organizing and leading a course on the use of soft skills.
arrow_forward
What is the process for conducting a requirements analysis for a learning initiative that incorporates an e-learning management system?
arrow_forward
A ng.cengage.com
Bb https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/3069129
ge Learning
DTAP
Q Search this co
AA
Review
Critical Thinking Activities
A Module 2 Critical Thinking Activities
Assignment Score: 0.00%
Save
Submit Assignment
Questions
ca2ce01h_Module2.04
« Question 4 of 5 »
2.
3.
Ken Chao is a veteran returning to school after six years in the military. After an injury that affected his
sight, he finds it difficult to read text on computer screens. However, many of his classes require online
research. How can Ken complete his search assignments effectively? How can search engines become more
accessible for people with low vision like Ken?
4.
5.
MacBook Air
DII
DD
F5
F6
EZ
11
F8
F9
F10
arrow_forward
How exactly does one go about completing a requirements
analysis for a learning initiative while making use of an e-learning
management system?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Related Questions
- 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_forwardWhat are the ways for coming up with new ideas? Explain why criticism is not permitted during group brainstorming sessions.arrow_forwardENGINEERING • COMPUTER-ENGINEERING Computer Science I'm working on SE Project about adding three features to LMS(learning management system), which are uploading video lectures, customizing the home page(ex: changing the background color, hiding selected courses), and customize notification so can you please help me to write the problem statement, scope, goals, objectives, and the Ethical Aspects considered in the Project.arrow_forward
- Welcome and thank you for your interest in our workshop! Please enter the names of the participants who would like to join the workshop. Kindly use the format LASTNAME, FIRSTNAME when entering the names. Type 'stop' to stop adding to the registration list. Hanbal, Ibrahim Schultz, Arooj Potter, Zubair Coulson, Grace Gilliam, Hashim Graham, Daria Guzman, Arisha Carty, Savanna Pena, Izzie Nieves, Calista Flowers, Mysha Worthington, Zakariya Nicholson, Kaif Tatcher, Julien Sherman, Miya Rosales, Donald Medina, Kellan Wills, Jeffery Briggs, Lianne stop Thank you for registering for our event! Here are the schedules for all participants!arrow_forwardTell me about a time when it was hard for you to make your point in an online class or project. Do you have any suggestions for how we could get past these problems?arrow_forwardIdentify a title for a Workshop that you would like to conduct. Do the following: Define ONE (1) instructional goal for participants ii. Identify ONE (1) Topic/Unit iii. Define ONE (1) learning outcome iv. Write at least THREE (3) learning objectives i.arrow_forward
- A ng.cengage.com Bb https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/3069 ngage Learning Q Search this HINDTAP AA Review Critical Thinking Activities N Module 2 Critical Thinking Activities Assignment Score: 0.00% Submit Assignment Save « Question 2 of 5 » Questions ca2ce01h_Module2.02 1 Marco Suarez is starting a new job in the Sales and Marketing Department of a financial services company. He is part of a team redesigning the company's website and wants to become better acquainted with current O website design principles. Search for this year's best website designs and then examine the sample e webpages. What are the current trends in website design? What principles should Marco use to suggest changes to his company's website? 3. 4. 5. MacBook Air DII DD F11 F4 F7 F8 F9 F10 F5 F6arrow_forwardWhat are the ways for coming up with fresh ideas? Explain why criticism is not permitted during group brainstorming sessions.arrow_forwardDo you evaluate the efficacy and application of interpersonal skills throughout the planning and execution of a training event?arrow_forward
- Facts: Design thinking is a non-linear, iterative process that teams use to understand users, challenge assumptions, redefıne problems and create innovative solutions to prototype and test. Involving five phases-Empathize, Define, Ideate, Prototype, and Test-it is most useful to tackle problems that are ill-defined or unknown. - canvas.unle Question: If you'll explain Design Thinking in ONE WORD what would it be and why?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_forwardWhat are the prerequisites and/or steps that must be completed in order to develop a proof of concept?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781305971776Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningFundamentals of Information SystemsComputer ScienceISBN:9781337097536Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning