Alex Amado, HW8
.pdf
keyboard_arrow_up
School
Purdue University *
*We aren’t endorsed by this school
Course
10100
Subject
Computer Science
Date
Dec 6, 2023
Type
Pages
10
Uploaded by MinisterPartridge3587
CS 10100 Homework 08
This is Question 1 on Page 1
CS 10100 Homework 08
Due 11:59pm Thursday Nov. 2, 2023
•
Delete nothing from this file.
•
Edit this file to add your typewritten answers to each question.
•
When your answer includes a diagram make sure that it is clear and large enough to read.
•
Ensure that your answer fits on the same page as its question.
•
If you change the pagination of this file or if your complete answer to a question does not
fit on the page with that question, then you may receive a lower score.
•
Export your completed Word file to PDF.
•
Upload your PDF file to Gradescope.com. It is your responsibility to upload this
assignment to its correct place in Gradescope. You may upload multiple times. Your final
upload will be scored. Use the download capability to check your upload.
•
Uploading will be blocked after the due time (plus grace period).
•
Max score = 10 points; 1 point per question.
•
The above directions apply for all assignments uploaded to Gradescope.
•
Why should your answer be on the same page with its question?
Answer:
Gradescope has been programmed to expect that your PDF file will have
exactly one question and your entire answer to it on one page. This allows Gradescope to
automatically find and display your answers to the instructional team for scoring.
HW08 Q1.
A friend shows you some pictures that they took over Fall Break. They decide to
present them in class, but when the pictures are viewed on the auditorium projector you
notice while standing near the 10 meter (diagonal measure) screen that the image is full of
little rectangles of color. What causes the rectangles to appear?
These rectangles on the image are caused because the image resolution is fairly low, and this
causes pixels to be easily visible in the image. These rectangles are also caused by pixelation
and from the quality of the projector. Pixelation is when the image is enlarged past the
resolution that it was taken at, and this causes the image to become blurry and each pixel will
become more visible to the natural eye. The quality of the projector also causes the rectangles
to appear because lower quality projectors may be more prone to pixelation.
CS 10100 Homework 08
This is Question 2 on Page 2
HW08 Q2.
When a user runs an app that plays an MP3 song, does the app use compression
or decompression? Explain.
When a user runs an app that plays an mp3 song, the app uses decompression. The app uses
decompression because when you play an mp3 song, the app needs to reverse the
compression process that took place when the mp3 file was made. Decompression needs to
happen and take place in order for the original audio to be restored, since when the file was
originally made, it was compressed to make the file size smaller.
CS 10100 Homework 08
This is Question 3 on Page 3
HW08 Q3.
What does it mean for an audio signal to be under sampled? What problem(s)
does it introduce?
When an audio sample is under-sampled, it means that the rate of the sampling used to
digitize the analog audio wavelengths is too low to effectively and accurately capture and
reproduce the original audio signal. The sampling rate refers to the number of samples of an
analog audio file taken per second. Under sampling occurs when the sampling rate does not
represent the audio file in its entirety. Some of the biggest problems surrounding under
sampling is that the audio signal can degrade in terms of quality, and it can even lead to loss
of information in the audio file.
CS 10100 Homework 08
This is Question 4 on Page 4
HW08 Q4.
According to the lecture, digital phone calls are sampled at 8,000 samples per
second, and music is typically sampled at 44,100 samples per second. What is the main
reason that phone calls are not sampled at a higher rate like music?
The main reason that phone calls are not sampled at a higher rate like music is because phone
calls have to make and create a balance between optimizing the bandwidth of the call, storage
of the calls, the processing capabilities, and cost efficiency. This is important for efficient
and intelligible communication between users, although, they may not be the best or handling
and reproducing certain aspects effectively, such as music.
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
Move the appropriate file types from the list on the left to the correct descriptions on the right.
File Types (Icons)
XE
F
E
4
Answer Area
A file where you create the user interface
allowing you to display information and react to
user input.
A file that contains all the setup information for
your app.
A file that contains coded app logic.
A file that contains a list of available resources
to be used in the project.
arrow_forward
Teams.txt .This file contains a list of serveral Major League baseball teams in alphabetical order. Each team is listed in the file has won the World Series at least once.
WorldSeries Winners.txt - This file contains a chronological list of the World Series' winning teams from 1903-2020. (The first line of the file is the name of the team that won in 1903, and the last line is the name of the team that won in 2020. Note the World Series was not played in 1904 or 1994.)
Write a program that displays the contents of the Teams.txt file on the screen and prompts the user to enter the name of one of the teams. The program should then display the number of times that team has won the World Series in the time period from 1903 to 2020.
In the program, 2 arrays are needed: TeamList array and Winners array.
TeamList array will contain the entries in Teams.txt.
Winners array will contain the entries in WorldSeriesWinners.txt.
Use a search algorithm to validate if the entry from the user is…
arrow_forward
Lect 1A: linked-list
HW 1 link list : Create Visual C++ project and.
Due Tomorrow, 4:00 AM
Posted 3:19 PM
Project name should be 'HW1+student name for example 'HW1 Ahmed Ali Ahmed'
18
-Compress the project file as zip file and upload it here.
-Screenshots for the entire codes and classes
Turned in
Assigned
-Screenshot for the result.
View assignment
تسجبل محاطرة يوم 5/5/2021
Posted 3:14 PM
...
arrow_forward
Using C# (Sharp) with Visual studio:
Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date
In the main method, create 5 instances of the Book class with different data for each
Create a LIST and add each of the 5 objects to the LIST
Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST
Create a DICTIONARY and add each of the 5 objects (key should be ISBN)
Display author, title, publisher, copyright date for each book
Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey
Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".
arrow_forward
A bucket list is a collection of goals, dreams, and aspirations that you would like to accomplish within your lifetime. The purpose of this assignment is to develop a program that allows the user to manage their personal bucket list and save it to an XML file bucketlist.xml. For full credit, run the program and create a file with at least three entry elements. Submit a document containing a copy of the source file, a screenshot of the program in action, and the contents of the XML file. File Structure Below is the basic structure (i.e. schema) for the XML file. You may add additional elements. <bucketList> <entry> <rank></rank> <description></description> <status></status> </entry> </bucketList> Note: Before running the program, manually create an XML input file with at least one entry element that contains values in each child element. GUI Requirements At a minimum, your GUI must meet the below requirements. No minimize…
arrow_forward
8
File
Help
Tell me what you want to do
Home Insert Design Layout References Mailings Review View
iGET GENUINE OFFICE Your license isn't genuine, and you may be a victim of software counterfeiting. Avoid interruption and keep your files safe with genuine Office today.
Page 1 of 1
80 words
Accessibility: Investigate
CS309
CS309 ASSIGNMENT 9 - Word
A process description for "Pay Commission" is provided below:
For each COMMISSION EARNED
If EXTRA BONUS equals Y
|
-If PAYMENT TOTAL is greater than $80,000
Add 3% to COMMISSION PERCENT
Output SPECIAL LETTER
Output AWARD LIST
Else Add 2% to COMMISSION PERCENT
Output AWARD LIST
Else
If PAYMENT TOTAL is greater than $80,000
Add 1% to COMMISSION PERCENT
Output SPECIAL LETTER
Calculate COMMISSION COMMISSION PERCENT times PAYMENT TOTAL
Required:
Construct a Decision Table for the above process description.
delinki asylum
Get genuine Office
Learn more
F
+
+
X Q
X
100%
arrow_forward
i want you to draw a er model dont give me this draws all tutors answred by it :(i want new one only photos
arrow_forward
WORD 2016
when creating envelopes using mail merge each envelope in the final, merged document is separated by a:
1, page break
2, continuous section break
3, next page section break
arrow_forward
createDatabaseOfProfiles(String filename) This method creates and populates the database array with the profiles from the input file (profile.txt) filename parameter. Each profile includes a persons' name and two DNA sequences. 1. Reads the number of profiles from the input file AND create the database array to hold that number profiles.
2. Reads the profiles from the input file.
3. For each person in the file
1. creates a Profile object with the information from file (see input file format below).
2. insert the newly created profile into the next position in the database array (instance variable).
arrow_forward
C++ Visual Studio 2019
Instructions
Complete #1 & #2. Please submit just one file for the classes and main to test the classes. Just create the classes before main and submit only one cpp file. Do not create separate header files. Please note: the deleteNode needs to initialize the *nodePtr and the *previousNode. The code to do this can be copied from here: ListNode *nodePtr, *previousNode = nullptr;
arrow_forward
the "list.txt" contains information about materials stored in the warehouse. Every record (line) in the file contains code, name and description seperated by "#"
write a php script that will open the file, read the content of the file and manupulate using associative array with code as a key.
the array should be sorted by the code and displayed to the user.
arrow_forward
Discussion Board 3: Clutter (Initial post due 1/27)
This discussion focuses on clutter, specifically in data visualizations. Consider the types of clutter discussed in chapter 3. Locate a data visualization online that is cluttered. Make sure to select a different example than others that are posted.
Address the following points in about 200 words:
Describe the data visualization and how it is cluttered
Outline changes you would make to declutter the visualization based on the chapter reading.
Provide a link to the data visualization you discussed.
arrow_forward
Question # 1 : P02-01- Jenny's Salon & Spa
Create a file called P02-01
Design the data models below
Export the file containing the data models as a PDF file and submit
P02-01a
At Jenny's Salon & Spa, we have several hairstylists that are salaried employees. In addition
to their salary, we store their first name, last name, social security number, mobile number,
and email address. The salon has clients, which they record first name, last name, mobile
number, email address, and preferred day. Some clients do not have a preferred day.
Name the first tab P02-01a
Identify and draw the entities
Add the attributes associated with each entity and identify them as mandatory or optional
Identify candidate keys for each entity
Specify the UID/PK for each entity
Specify all other candidate keys as unique keys (UKs)
P02-01b
Each hairstylist is assigned clients. When a hairstylist is hired, the hairstylist is not assigned
any clients during orientation. Each…
arrow_forward
@Build ER diagram
arrow_forward
Create a new file cart.html
You must get and set the data on the web page by using document.getElementById( ). Each HTML element on the web page already has an id so it is easy.
No need for a loop to go through the list of products, there is only 2 products and the info is hard coded on the web page.
You must write the code for function cartTotal().
arrow_forward
Computer Science
The goal of this assignment is to create an app that can capture, tag, save, and retrieve photos on your smartphone.Capture: When clicked, it takes a picture and shows a thumbnail image. Tag: A user can type multiple tags (separated by a “;”). Save: When clicked, it saves the photo in a database along with the tags. Load: A user can specify one or more tags. Your app will find and show the first photo that had any of those tags. When there are multiple photos matching the criteria, the App should have an UI element to show them one by one, e.g., when the user slides a slider.
arrow_forward
Please i want DRAWif you can not draw it in picture
leave it to someone else
i need only photo
arrow_forward
Document I
Review
View
Help
Telmewat you want to do
Relerences
Mailings
AA Aa-
E bceDd AaBbCcDd AaBbC AaBbCcC AaB AaBbCcD AaBbCcDd AaBbCcC
A-7-A
Normal
1 No Spac. Heading 1
Heading 2
Title
Subtitle
Subtle Em...
Emphas
Font
Paragraph
Styles
Write a program to insert an element in the given array (1D) at the beginning. After insertion,
identify the largest element from the array, and delete it. After deleting the largest element, display
the final array elements on the screen.
O (Ctrl)-
IF
arrow_forward
Student Registration for an Online Portal
In this simple project, we will get the student details and insert them into the database. A unique student roll number (student_id) will be generated once the registration is complete. If the student is already registered, we will send a message saying the student already exists.
arrow_forward
USING PYTHON: Create a Python class, Document.
Upon initialization, the instances of this class will take in one optional string parameter, initial_thoughts, which defaults to an empty string if not given during instance creation. In
addition, the instances of this class will also have the following attributes:
Input Format
Assume the inputs are user inputs that are valid commands and can access the attributes or invoke a method of the Document instance.
Constraints
String arguments when creating a Document instance and when invoking the add_words method will be limited to 1000 characters at maximum.
Output Format
The output will be composed of seven lines with the first 2 lines showing some information about the Document object and the next 5 lines showing the current values of the instance attributes.
Sample Input 0
essay Document ("I gotta start with something.")
exit
Sample Output 0
This Document instance has 4 instance attributes.
The class used to create this object has 5 methods…
arrow_forward
Print Person Information from file
In this lab you are asked to complete the function : print_person_from_file(person_name, filename). This function should
read in data from the file filename and print the information for person_name if it is found in the file.
The file filename contains lines, in comma separated format (with a 'csv' extension) For each line, the items in each field are as follows:
Field
1
3
4
Name
Place of Birth Date of Birth Children
For Children:
• a person can have 0, 1 or multiple Children
Multiple children are semi-colon separated
If a person has no children the field contains 'NA'
For example, consider the following lines froma .csv file, where Fletcher_Margaret has 3 children, and Baker_Jill has 0 children
(field 4 contains the string 'NA')
Fletcher Margaret,Sydney,30-09-1921,Green Bob;Green Nancy;William Tom
Baker_Jill, Melbourne,08-09-1973, NA
Format for Printing
If the person_name is found in the file, the format for printing the person information is as…
arrow_forward
Code to shows the template for the build process.
arrow_forward
PYTHONPLEASE ALSO SHARE CODE THROUGH LINK: online-python(dot)com
Create a python program that reads the student information from a tab separated values (tsv) file. The python program then must creates a text file that will records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midtrm1 score, Midtrm2 score, and the Final score of a student. A sample of the student information is provided in StudentInfoScore.tsv. Assume the number of students is at least 1 and at most 20.
The program performs the following tasks:
Read the file name of the tsv file from the user.
Open the tsv file and read the student information.
Compute the average exam score of each student.
Assign a letter grade to each student based on the average exam score in the following scale:
A: 90 =< x
B: 80 =< x < 90
C: 70 =< x < 80
D: 60 =< x < 70
F: x < 60
Compute the average of each exam.
Output the last names, first names, exam scores, and letter…
arrow_forward
PYTHON CODE
Using the file Artists.csv (link below) iterate through the list and print out the data in its entirety
Create some queries with the file by searching for all artists who are male and born in America (Nationality = American)
Make another query and print out all the individuals who are not American and female.
Additionally, query the file for all artists who were born before 1900 and print it to the screen
Artists.csv: https://media.githubusercontent.com/media/MuseumofModernArt/collection/master/Artists.csv
arrow_forward
The Problems - contains only problems from the last 2 contests
Separate Un-Attempted, Attempted and All cards Problem Difficulty Rating - The
Featured drop-down menu has different difficulty ranges so you can try problems that
best suit your experience.
Popular topics and brands Like most users, Chef didn't know that he could add
problems to his personal to-do list by clicking the magic "+" symbol in the upper
right corner of each problem page. But once he found out about it, he went crazy and
added a lot of problems to his to-do list without looking at their difficulty rating.
Rajesh is a beginner and ideally should only try to solve problems strictly below
10001000. Given the difficulty rating list of problems in Chef's to-do list, please help
him determine how many of these problems Chef should remove from his to-do list
so he is left with only problems with a difficulty rating of less than 10001000.
Note: Please answer the question in Python only:
Input
1
4
999 1000 1001 1002…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- Move the appropriate file types from the list on the left to the correct descriptions on the right. File Types (Icons) XE F E 4 Answer Area A file where you create the user interface allowing you to display information and react to user input. A file that contains all the setup information for your app. A file that contains coded app logic. A file that contains a list of available resources to be used in the project.arrow_forwardTeams.txt .This file contains a list of serveral Major League baseball teams in alphabetical order. Each team is listed in the file has won the World Series at least once. WorldSeries Winners.txt - This file contains a chronological list of the World Series' winning teams from 1903-2020. (The first line of the file is the name of the team that won in 1903, and the last line is the name of the team that won in 2020. Note the World Series was not played in 1904 or 1994.) Write a program that displays the contents of the Teams.txt file on the screen and prompts the user to enter the name of one of the teams. The program should then display the number of times that team has won the World Series in the time period from 1903 to 2020. In the program, 2 arrays are needed: TeamList array and Winners array. TeamList array will contain the entries in Teams.txt. Winners array will contain the entries in WorldSeriesWinners.txt. Use a search algorithm to validate if the entry from the user is…arrow_forwardLect 1A: linked-list HW 1 link list : Create Visual C++ project and. Due Tomorrow, 4:00 AM Posted 3:19 PM Project name should be 'HW1+student name for example 'HW1 Ahmed Ali Ahmed' 18 -Compress the project file as zip file and upload it here. -Screenshots for the entire codes and classes Turned in Assigned -Screenshot for the result. View assignment تسجبل محاطرة يوم 5/5/2021 Posted 3:14 PM ...arrow_forward
- Using C# (Sharp) with Visual studio: Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date In the main method, create 5 instances of the Book class with different data for each Create a LIST and add each of the 5 objects to the LIST Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST Create a DICTIONARY and add each of the 5 objects (key should be ISBN) Display author, title, publisher, copyright date for each book Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".arrow_forwardA bucket list is a collection of goals, dreams, and aspirations that you would like to accomplish within your lifetime. The purpose of this assignment is to develop a program that allows the user to manage their personal bucket list and save it to an XML file bucketlist.xml. For full credit, run the program and create a file with at least three entry elements. Submit a document containing a copy of the source file, a screenshot of the program in action, and the contents of the XML file. File Structure Below is the basic structure (i.e. schema) for the XML file. You may add additional elements. <bucketList> <entry> <rank></rank> <description></description> <status></status> </entry> </bucketList> Note: Before running the program, manually create an XML input file with at least one entry element that contains values in each child element. GUI Requirements At a minimum, your GUI must meet the below requirements. No minimize…arrow_forward8 File Help Tell me what you want to do Home Insert Design Layout References Mailings Review View iGET GENUINE OFFICE Your license isn't genuine, and you may be a victim of software counterfeiting. Avoid interruption and keep your files safe with genuine Office today. Page 1 of 1 80 words Accessibility: Investigate CS309 CS309 ASSIGNMENT 9 - Word A process description for "Pay Commission" is provided below: For each COMMISSION EARNED If EXTRA BONUS equals Y | -If PAYMENT TOTAL is greater than $80,000 Add 3% to COMMISSION PERCENT Output SPECIAL LETTER Output AWARD LIST Else Add 2% to COMMISSION PERCENT Output AWARD LIST Else If PAYMENT TOTAL is greater than $80,000 Add 1% to COMMISSION PERCENT Output SPECIAL LETTER Calculate COMMISSION COMMISSION PERCENT times PAYMENT TOTAL Required: Construct a Decision Table for the above process description. delinki asylum Get genuine Office Learn more F + + X Q X 100%arrow_forward
- i want you to draw a er model dont give me this draws all tutors answred by it :(i want new one only photosarrow_forwardWORD 2016 when creating envelopes using mail merge each envelope in the final, merged document is separated by a: 1, page break 2, continuous section break 3, next page section breakarrow_forwardcreateDatabaseOfProfiles(String filename) This method creates and populates the database array with the profiles from the input file (profile.txt) filename parameter. Each profile includes a persons' name and two DNA sequences. 1. Reads the number of profiles from the input file AND create the database array to hold that number profiles. 2. Reads the profiles from the input file. 3. For each person in the file 1. creates a Profile object with the information from file (see input file format below). 2. insert the newly created profile into the next position in the database array (instance variable).arrow_forward
- C++ Visual Studio 2019 Instructions Complete #1 & #2. Please submit just one file for the classes and main to test the classes. Just create the classes before main and submit only one cpp file. Do not create separate header files. Please note: the deleteNode needs to initialize the *nodePtr and the *previousNode. The code to do this can be copied from here: ListNode *nodePtr, *previousNode = nullptr;arrow_forwardthe "list.txt" contains information about materials stored in the warehouse. Every record (line) in the file contains code, name and description seperated by "#" write a php script that will open the file, read the content of the file and manupulate using associative array with code as a key. the array should be sorted by the code and displayed to the user.arrow_forwardDiscussion Board 3: Clutter (Initial post due 1/27) This discussion focuses on clutter, specifically in data visualizations. Consider the types of clutter discussed in chapter 3. Locate a data visualization online that is cluttered. Make sure to select a different example than others that are posted. Address the following points in about 200 words: Describe the data visualization and how it is cluttered Outline changes you would make to declutter the visualization based on the chapter reading. Provide a link to the data visualization you discussed.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L