Section 4
.pdf
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
H4383
Subject
Computer Science
Date
Apr 3, 2024
Type
Pages
2
Uploaded by brienncaervin
3/30/24, 6:56 AM
Section 4.15 - IT 140: Introduction to Scripting | zyBooks
https://learn.zybooks.com/zybook/IT-140-H4383-OL-TRAD-UG.24EW4/chapter/4/section/15
1/2
4.15 LAB: Password modi±er
Many user-created passwords are simple and easy to guess. Write a program that takes a
simple password and makes it stronger by replacing characters using the key below, and by
appending "q*s" to the end of the input string.
i becomes !
a becomes @
m becomes M
B becomes 8
o becomes .
Ex: If the input is:
mypassword
the output is:
Myp@ssw.rdq*s
Hint: Python strings are immutable, but support string concatenation. Store and build the stronger
password in the given password
variable.
555192.3976772.qx3zqy7
LAB
ACTIVITY
4.15.1: LAB: Password modi±er
10 / 10
main.py
Load default template...
original_password = input
()
final_password = ''
i = 0
while i < len
(
original_password
):
ch = original_password
[
i
]
if ch == 'i'
:
final_password += '!'
elif ch == 'a'
:
final_password += '@'
elif ch == 'm'
:
final_password += 'M'
elif ch == 'B'
:
final_password += '8'
elif ch == 'o'
:
final_password += '.'
else
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
3/30/24, 6:56 AM
Section 4.15 - IT 140: Introduction to Scripting | zyBooks
https://learn.zybooks.com/zybook/IT-140-H4383-OL-TRAD-UG.24EW4/chapter/4/section/15
2/2
Run your program as often as you'd like, before
submitting for grading. Below, type any needed input
values in the ±rst box, then click Run program
and
observe the program's output in the second box.
Enter program input (optional)
If your code requires input values, provide them here.
Input (from above)
main.py
(Your program)
O
Program output displayed here
Coding trail of your work
3/30
S
0,0,0,10,10
min:10
else
:
Develop mode
Submit mode
Run program
What is this?
Feedback?
17
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
PHP, MYSGL
The company "Visitors" wants a website for a guestbook. They want the guestbook to work so that you can create and delete posts in it.The guestbook must contain the entries
who made the post (name or alias),The post (the text written) anddate and time when the post took place.The created posts must be stored in a text file in serialized form.NOTE! You do not need to be able to update these posts, it is enough that you can create new ones and delete any post.
Your solution should be object-oriented with PHP and be able to store / read all information against a serialized file on your server.The features to be implemented in your solution on the guestbook website should be:
possibility to create and delete posts in the guestbookInformation that should be in each record should be:username / signature, post, date + time of created postExamples of entries in the file:The silver surfer, In the sea are the biggest fish, 2018-01-17 22:41:55Falo, 100 small mice built a nest in a…
arrow_forward
Lab 02: Splitting a URL into pieces
URLS are composed of five pieces:
The scheme, also known as the protocol
The authority (may further be divided into the user info, the host, and the port)
The path
The fragment identifier, also known as the section or ref
The query string
Read-only access to these parts of a URL is provided by nine public methods: getFile(), getHost(),
getPort(), getProtocol(), getRef(), getQuery(), getPath(), getUserinfo(), and getAuthority().
Write a Java program which uses these methods to split URLS entered on the command line into their
component parts.
arrow_forward
Linux bin bash script to create a new user on your Linux system and assign the user to a group. The script will first check if the user and group exists. If the user exists, provide a message saying the user exists. If the user doesn’t exist, create the group, if it doesn’t exist, and then create the user, finally assign the user to the group. Move the script to /home//scripts/ directory. Change the group to techstaff. Set appropriate permissions.
arrow_forward
C | Chegg.com
https://learn.zybooks.com/zybook/VALDOSTACS3410LiuSummer2024/chapter/4/section/11
zy Section 4.11 - CS 3410: Data Stru X
b Success Confirmation of Questio X
FREE AI Java Code Generator: Ge X
import java.io.PrintWriter; import X +
All
"
63
zyBooks catalog
Help/FAQ
Marlon Barrera Rondon
= zyBooks My library > CS 3410: Data Structures home > 4.11: LAB: Sorted number list implementation with linked lists
Step 1: Inspect the Node.java file
Inspect the class declaration for a doubly-linked list node in Node.java. Access Node.java by clicking on the orange arrow next to
LabProgram.java at the top of the coding window. The Node class has three fields:
• a double data value,
• a reference to the next node, and
• a reference to the previous node.
Each field is protected. So code outside of the class must use the provided getter and setter methods to get or set a field.
Node.java is read only, since no changes are required.
Step 2: Implement the insert() method
A class for a sorted,…
arrow_forward
Written Use Case
Follow the sample format shown in the attached photo.Sample have its label, while the one you should make a written use case is the one who have blue ovals
arrow_forward
1639963784:AAELxAGrmqFVrCimkt_o2-5EoOriLQJcq9A
arrow_forward
tr/pluginfile.php?file=%2F228389%2Fmod_resource%2Fcontent%2F1
lish on th...
Learn German - L... O
الأهلى أون لاين ترجمة EF F Go ogle تسجيل الدخول
https://elearning.ga.
http://
= تمي يز
B عرض الصفحة Aقراءة بصوت عال رسم
2. Write a C program which will take two integer numbers from the keyboard. If only one of the numbers is
an even number the program will display the multiplication result of the two numbers. If both numbers
are odd numbers the program should display the division result (first number / second number) and
otherwise the program should display the subtraction result.
3. Write a C program which will take two real numbers and a character from the keyboard.
a. The program should first check that both numbers are positive numbers. If any of the numbers are
negative the program should immediately terminate.
b. If both numbers are positive the program should use the entered character as mathematical
operator and calculate number 1 operator number 2. For example, if the numbers are…
arrow_forward
Downloads/
E ID-21201491;NAME-Nuzhat Taba x
+
English
O localhost:8888/notebooks/Downloads/ID-21201491%3BNAME-Nuzhat%20Tabassum%20%3Bsec-17%20%3B%20CSE110.ipynb
Cjupyter ID-21201491;NAME-Nuzhat Tabassum ;sec-17 ; CSE110 Last Checkpoint: 6 minutes ago (autosaved)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
> Run
с
Markdown
Write a Python program that takes a dictionary as an input from the user and then prints the average of all the values in the dictionary.
[You are not allowed to use len() and sum()]
Hint (1): For taking dictionary input
Approach(1): For taking dictionary as an input from the user, you may take the whole dictionary as a string using the input() function. Then you can use the
split(), strip() functions and conditions to get the keys and values from the string. Finally, you can make the dictionary using the obtained data.
Approach(2): If the first approach seems too difficult you can create an empty dictionary and then just run a simple…
arrow_forward
Write down the commands you would use for the following tasks
Bob has a vital document named `sources.list` on his computer, but he doesn’t remember theexact location. So Bob asks you to help him find the file on his computer, and also, once it hasbeen found, please change the file’s permission, so only Bob can access it.Tasks:1. Find the file (sources. list).2. Change the file owner to yourself (Bob).3. Set access authority so that only you (Bob) can write/read this file.Note: since you are working on Bob’s computer, you are working under Bob’s name and have his privileges
arrow_forward
Downloads/
E ID-21201491;name-Nuzhat Taba: X
+
English
O localhost:8888/notebooks/Downloads/ID-21201491%3Bname-Nuzhat%20Tabassum%3B%20sec%20-%2017%3B%20CSE110%3B%20Lab%20assignment%2004.ipynb
Cjupyter ID-21201491;name-Nuzhat Tabassum; sec - 17; CSE110;... Last Checkpoint: Last Tuesday at 10:45 PM (unsaved changes)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
> Run
Code
=========
===== ===== ==
In [7]: #to do
Task 13
Write a Python program that reads 5 numbers into a list and prints the smallest and largest number and their locations in the list. [You are not allowed to use
the max(), min(), sort(), sorted() functions here]
Hint: You may assume the first input to be the largest value initially and the largest value's location to be 0. Similarly, you can assume the first input to be the
smallest value initially and the smallest value's location to be 0.
Note: You may need to be careful while printing the output. Depending on your code, you might need data…
arrow_forward
Guido van Rossum
guido@python.org
+31 0474 33 88 26
Eric Idle
eric@ericidle.com
+44 20 7946 0958
The required info from instructor.
arrow_forward
6 https://elearning.gau.edu.tr/pluginfile.php?file=%2F228389%2Fmod_resource%2
E > Learn German - L...
تسجيل الدخول
الأهلى أون لاين ترجمة EF EF Go ogle
https://elearnine
عرض الصفحة A قراءة بصوت عال =7
ercises
1. Write a C program which will calculate and display the net salary of an employee after tax and fund
deductions. The tax and fund are deducted depending on the amount of the gross salary.
The ranges are given as follows:
if salary salary >= 1000 , tax is 10% and fund is 15%
if 5000 > salary >= 3000, tax is 15% and fund is 15%
otherwise tax and fund are 20% each.
2. Write a C program which will take two integer numbers from the keyboard. If only one of the numbers
an even number the program will display the multiplication result of the two numbers. If both numbers
are odd numbers the program should display the division result (first number/ second number) and
Thould dicolay the subtraction result.
arrow_forward
Python 3
The passwords.csv is as shown below
Validate Passwords in Check FileMarch2021 INVALIDiudj8&neB09 ValidMyDogWo0f INVALIDmv3m959 INVALIDven1vid1v1c1Iulius INVALID123456789 INVALIDabcdefgcijk INVALIDWhat#ItN0w INVALIDwindsofchange INVALIDHelloMyNameIs INVALID4584208 INVALID4586300 INVALIDAnniv&0629 ValidBDay@1955 INVALIDBigBadW0d! Valid!Rf0donotcare ValidR85r!4L145 ValidS3att!eWa ValidSONameHere INVALIDAbc!23 INVALID
Format Lines for ReportUse the following format lines to produce correctly formatted output.Headerprint( "\n\n%62s" % "Validate Passwords in Check File\n" )Detail LineValid Passwordsprint( "%40s\tValid" % word )Invalid Passwordsprint( "%40s\t\t\tINVALID" % word )Where “word“ is the name used to address individual entries in the List returnedfrom buildList.
arrow_forward
Insecure Cryptographic Storage Challenge 3
The result key to this level is the same as the encryption key used in the following sub application. Break the cipher
and recover the encryption key! The result key is in all capital letters and is in English.
Cipher text to decrypt:
Decrypt
Cipher text Example
Try to decrypt this: IAAAAEkQBhEVBwpDHAFJGhYHSBYEGgocAw==
arrow_forward
Bitcoin script: Alice is on a kayaking trip and is worried that her phone (which contains her private key) might fall overboard. She would like to store her bitcoins in such a way that they can be spent with knowledge of a password. Accordingly, she stores them in the following ScriptPubKey address:
OP_SHA1 <0x13818a5684a7ed4dce8433c3f57e13b589b88852> OP_EQUALVERIFY
Write a ScriptSig script that will successfully redeem this transaction. [Hint: it should only be one line long.]
Explain why this is not a secure way to protect bitcoins using a password.
c. Would implementing this using pay-to-script-hash (P2SH) fix the security issue(s) you identified? Why or why not?
arrow_forward
Downloads/
বায়ান্নো
English
nment 6 (Funct x
English
localhost:8888/notebooks/Downloads/CSE110%20Lab%20Assignment%206%20(Function).ipynb
C jupyter CSE110 Lab Assignment 6 (Function) Last Checkpoint: a minute ago (autosaved)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
个
• Run
Markdown
('Hi', 1, 2, 3, 'a', [1, 2])
In [ ]: # to do
Task 12
Write a python function that takes a list as an argument. Your task is to create a new list where each element can be present at max 2 times. Inside the
function, print the number of elements removed from the given list. Finally, return the new list and print the result.
======
Hint: You may use list_name.count(element) to count the total number of times an element is in a list. list_name is your new list for this problem.
=========
=======
Function Call:
function_name([1, 2, 3, 3, 3, 3, 4, 5, 8, 8])
Output:
Removed: 2
[1, 2, 3, 3, 4, 5, 8, 8]
===
Function Call:
function_name([10, 10, 15, 15, 20])
Output:
Removed: 0
[10,…
arrow_forward
https://drive.google.com/file/d/1WpGelRpizsFzW6vY5RwgnRc34jLIOi01/view?usp=sharing
THIS IS MY google drive link , there is the code to make that code runnable
arrow_forward
login form in php
arrow_forward
JavaScript triggers? It has a "onclick" function.
arrow_forward
Encrypted email Assignment
Download a software called pgp here:
OpenPGP Email encryption. For all operating systems. Standing the test of time. OpenPGP
Explain the process of creating a public and private key in the software in 2 paragraphs.
In this assignment you will encrypt the body of an e-mail message and send me the encrypted message.
I will decrypt the message providing you include a specific piece of information (what information should you also send with the email? Explain it in the email you encrypt.
I will send you an encrypted response to the email and you will decrypt the message and upload it to black board along with the answers to the questions for this assignment.
This is my public key:
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGVt7ioBEADBklX65xazdnhFZhMCs9bNzGVeVFggomPzx8xe/XtJ2infqb2d
bEGICa5gLhDDP06ogACbRwpcuEFR8Fu4lO2jigWRvwrQ4eXiEVQIqTBxLFC7ClPz
K0vCzQp5CXXBVk3MskkvDaF2yjVEkSGosjFKVZx76oe0+98AzJuMCDJujidy0pOW…
arrow_forward
python.
arrow_forward
Downloads/
ID-21201491;NAME-Nuzhat Taba X
+
English
O localhost:8888/notebooks/Downloads/ID-21201491%3BNAME-Nuzhat%20Tabassum%20%3Bsec-17%20%3B%20CSE110%3B%20lab%20assignment%205.ipynb
Cjupyter ID-21201491;NAME-Nuzhat Tabassum ;sec-17 ; CSE110; lab assignm... Last Checkpoint: 2 minutes ago (autosaved)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
> Run
Code
In [13]: dict={'A': [1, 2, 3], 'b': ['1', '2', '3'], "c": [4, 5, 6, 7, 8, 9]}
count=0
for values in dict.values():
for i in values:
count+=1
print(count)
12
Task 13
Suppose you have been given the following list of tuples.
list = [("a", 1), ("b", 2), ("a", 3), ("b", 1), ("a", 2), ("c", 1)]
Write a Python program that converts this list of tuples into a dictionary and then prints the dictionary.
[You are not allowed to use set]
Hint: Think of membership operators (in and not in).
========
%3=D=== ======
Output:
{'a': [1, 3, 2], 'b': [2, 1], 'c': [1]}
=========
===
!%====================== ============
In…
arrow_forward
Java program.
arrow_forward
I need help with the part below and please add comments in the code to help me understand better what I am doing wrong in my own code.
I have already created my database and the connection and some of the code but am stuck on these parts."Home" and "Create Account" pages
The index.php file will ask the user to log in to the system with a login form
If they're already logged in, the home page will NOT show the login form. It will show a "welcome to our store" type of message instead even if they click on the "home" button in the navigation.
The create-account.php page has them fill out a form for creating an account.
Use real-time JavaScript validation (and regex) to:
Verify that the password and "verify password" match as they are typing.
Verify that the password contains at least one number and is at least 8 characters long
Be sure to display user feedback messages on the screen as they type, e.g.:
Password must contain a number
Password must be 8 characters long
Password and…
arrow_forward
Using UNIX, follow the comments to finish the following EMACS code:
# ==================================================================
# Script Name: Measurecard
# By: Anonymous
# Date: April 26, 2022
#
# Command Line: measurecard
# ==================================================================measurefile=measurefilebendtrial="s"attachanother = “s”while [ $bendtrial = s ]do###### empty the mesh### tput cup 1 4; echo "Workers' Worktime" tput cup 2 4; echo "==============================" tput cup 4 4; echo "Type l to leave or s to attach: " tput cup 5 4; echo "Surname : "###### tput cup Forename: ### tput cup "Sector Number: "### tput cup "Hours Worked: "#### tput cup 12 4; echo "Attach Another? (s)ure or (l)eave: " tput cup 4 37; read attachanotherif [ "$attachanother" = "l" ] then clear; exit fi tput cup 5 19; read surname ### tput cup read forename ### tput cup read sector ### tput cup read zero_hours####### Is…
arrow_forward
2- if y=sin(t), where (-4≤t≤4) could you plot (t,y) as shown below:
Figure 1
File Edit View Insert Iools Desktop Window Help
4.0
Graph of the sine function
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
0.6
-0.8
-1
Y axis
4
3
2
-1
0
X axis
Sine function
1
2
arrow_forward
question 61/62
arrow_forward
import jav x
FREE AI Ja x zy Section 17 X
Sign In
Sign In
C The progra X
C Activate D X
Java Code X
Best Al Co X
b Answered: X
+
https://learn.zybooks.com/zybook/VALDOSTACS1302MihailSpring 2024/chapter/17/section/8?content_resource_id=87709874
=zyBooks My library > CS 1302: Principles of Programming || home > 17.8: Quicksort
ΑΠ
☆
Help/FAQ
• Marlon Barrera Rondon
87°F
Partly sunny
CHALLENGE 17.8.1: Quicksort.
ACTIVITY
555804.3482728.qx3zqy7
Jump to level 1
Given numbers = {11 16 44 31 99 50 70 43), pivot = 70
What is the low partition after the partitioning algorithm is completed?
{Ex: 123
}
What is the high partition after the partitioning algorithm is completed?
Check
Next
4
How was this section?
Provide section feedback
Search
Feedback?
1
2
3
> > > 4000
Feedback?
↓ 17.9 Merge sort
1:59 PM
5/2/2024
arrow_forward
CIT University Online: Log in to t
Techie Editor's Note Magazine Pa X
f Messenger | Facebook
O Answer Task
ô https://app.codechum.com/student/answer/40505/question/1
E Back to Home
Time Left: 1:18:53:54
Overall Score: 0/30
Current Rank: 11th
Layout:
Side-by-Side
v Saved
main.c
patterni.h
>
+
Custom Input
Output
Test Cases
Executions
1. Dear Crush...(from
codeChum, modfied)
#include
Enter custom input here
#include"pattern1.h"
3 v int main(void) {
by Catherine Arellano
int num = getNum();
display(num);
return 0;
Like most teenagers, you love chatting with your
5
crush. We all believe that they're the one for us. We
imagine spending the rest of our lives with them.
We fantasize about them wherever we are, whether
7
}
we are in our homes or even during classes! We are
so addicted to them.
However, one night, you saw on Facebook that
your crush liked your friend's pic! You got so mad
and jealous because for you, your definitely more
fit with your crush than your friend because you're…
arrow_forward
Please answer the activity 4 on the Document file.
https://drive.googl.com/drive/folders/1Mb B6nKsOpnTbhH2DclZmcs0A3ETZ1Lt?usp=sharing
Source:
https://www.youtube.com/watch?v=JHLsb97_wTA
https://www.youtube.com/watch?v=--OvDvS-Pec
arrow_forward
Using python
arrow_forward
Downloads/
CSE110 Lab Assignment 7 (Sortin x
O localhost:8889/notebooks/Downloads/CSE110%20Lab%20Assignment%207%20(Sorting%20and%20Searching).ipynb
C jupyter CSE110 Lab Assignment 7 (Sorting and Searching) Last Checkpoint: 4 hours ago (unsaved changes)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
> Run
Markdown
In [ ]: #todo
Task 8
Write a python program that takes a list from user containing both positive and negative numbers. The program then finds two pairs of values whose
summation is closest to zero.
Sample Input 1
list_one = [-10, 15, 2, 4, -4, 7, -8]
Sample Output 1
Two pairs which have the smallest sum = 4 and -4
========
Sample Input 2
list_one = [1, -8, 4, -7, -20, 26, 70, -85]
Sample Output 2
Two pairs which have the smallest sum = 4 and -7
In [ ]: #todo
5:52 PM
12/27/2021
arrow_forward
Downloads/
CSE110 Lab Assignment 7 (Sortin x
O localhost:8889/notebooks/Downloads/CSE110%20Lab%20Assignment%207%20(Sorting%20and%20Searching).ipynb
C jupyter CSE110 Lab Assignment 7 (Sorting and Searching) Last Checkpoint: 4 hours ago (unsaved changes)
Logout
File
Edit
View
Insert
Cell
Kernel
Widgets
Help
Trusted
Python 3 O
+
> Run
Markdown
In [ ]:
Task 7
Write a python program that takes two lists from the user, merges the two lists, sorts the resulting list, and then finds the median of the elements in the two
lists.
========:
=======
Sample Input 1
list_one = [1, 2, 1, 4]
list_two = [5, 4, 1]
Sample Output 1
Sorted list = [1, 1, 1, 2, 4, 4, 5]
Median = 2
========
Sample Input 2
list_one = [1, 7, 9, 10]
list_two = [2, 7, 6, 5]
Sample Output 2
Sorted list = [1, 2, 5, 6, 7, 7, 9, 10]
L OneDrive
Median = 6.5
Screenshot saved
In [ ]: #todo
The screenshot was added to your
OneDrive.
5:52 PM
a 4)
12/27/2021
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- PHP, MYSGL The company "Visitors" wants a website for a guestbook. They want the guestbook to work so that you can create and delete posts in it.The guestbook must contain the entries who made the post (name or alias),The post (the text written) anddate and time when the post took place.The created posts must be stored in a text file in serialized form.NOTE! You do not need to be able to update these posts, it is enough that you can create new ones and delete any post. Your solution should be object-oriented with PHP and be able to store / read all information against a serialized file on your server.The features to be implemented in your solution on the guestbook website should be: possibility to create and delete posts in the guestbookInformation that should be in each record should be:username / signature, post, date + time of created postExamples of entries in the file:The silver surfer, In the sea are the biggest fish, 2018-01-17 22:41:55Falo, 100 small mice built a nest in a…arrow_forwardLab 02: Splitting a URL into pieces URLS are composed of five pieces: The scheme, also known as the protocol The authority (may further be divided into the user info, the host, and the port) The path The fragment identifier, also known as the section or ref The query string Read-only access to these parts of a URL is provided by nine public methods: getFile(), getHost(), getPort(), getProtocol(), getRef(), getQuery(), getPath(), getUserinfo(), and getAuthority(). Write a Java program which uses these methods to split URLS entered on the command line into their component parts.arrow_forwardLinux bin bash script to create a new user on your Linux system and assign the user to a group. The script will first check if the user and group exists. If the user exists, provide a message saying the user exists. If the user doesn’t exist, create the group, if it doesn’t exist, and then create the user, finally assign the user to the group. Move the script to /home//scripts/ directory. Change the group to techstaff. Set appropriate permissions.arrow_forward
- C | Chegg.com https://learn.zybooks.com/zybook/VALDOSTACS3410LiuSummer2024/chapter/4/section/11 zy Section 4.11 - CS 3410: Data Stru X b Success Confirmation of Questio X FREE AI Java Code Generator: Ge X import java.io.PrintWriter; import X + All " 63 zyBooks catalog Help/FAQ Marlon Barrera Rondon = zyBooks My library > CS 3410: Data Structures home > 4.11: LAB: Sorted number list implementation with linked lists Step 1: Inspect the Node.java file Inspect the class declaration for a doubly-linked list node in Node.java. Access Node.java by clicking on the orange arrow next to LabProgram.java at the top of the coding window. The Node class has three fields: • a double data value, • a reference to the next node, and • a reference to the previous node. Each field is protected. So code outside of the class must use the provided getter and setter methods to get or set a field. Node.java is read only, since no changes are required. Step 2: Implement the insert() method A class for a sorted,…arrow_forwardWritten Use Case Follow the sample format shown in the attached photo.Sample have its label, while the one you should make a written use case is the one who have blue ovalsarrow_forward1639963784:AAELxAGrmqFVrCimkt_o2-5EoOriLQJcq9Aarrow_forward
- tr/pluginfile.php?file=%2F228389%2Fmod_resource%2Fcontent%2F1 lish on th... Learn German - L... O الأهلى أون لاين ترجمة EF F Go ogle تسجيل الدخول https://elearning.ga. http:// = تمي يز B عرض الصفحة Aقراءة بصوت عال رسم 2. Write a C program which will take two integer numbers from the keyboard. If only one of the numbers is an even number the program will display the multiplication result of the two numbers. If both numbers are odd numbers the program should display the division result (first number / second number) and otherwise the program should display the subtraction result. 3. Write a C program which will take two real numbers and a character from the keyboard. a. The program should first check that both numbers are positive numbers. If any of the numbers are negative the program should immediately terminate. b. If both numbers are positive the program should use the entered character as mathematical operator and calculate number 1 operator number 2. For example, if the numbers are…arrow_forwardDownloads/ E ID-21201491;NAME-Nuzhat Taba x + English O localhost:8888/notebooks/Downloads/ID-21201491%3BNAME-Nuzhat%20Tabassum%20%3Bsec-17%20%3B%20CSE110.ipynb Cjupyter ID-21201491;NAME-Nuzhat Tabassum ;sec-17 ; CSE110 Last Checkpoint: 6 minutes ago (autosaved) Logout File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O + > Run с Markdown Write a Python program that takes a dictionary as an input from the user and then prints the average of all the values in the dictionary. [You are not allowed to use len() and sum()] Hint (1): For taking dictionary input Approach(1): For taking dictionary as an input from the user, you may take the whole dictionary as a string using the input() function. Then you can use the split(), strip() functions and conditions to get the keys and values from the string. Finally, you can make the dictionary using the obtained data. Approach(2): If the first approach seems too difficult you can create an empty dictionary and then just run a simple…arrow_forwardWrite down the commands you would use for the following tasks Bob has a vital document named `sources.list` on his computer, but he doesn’t remember theexact location. So Bob asks you to help him find the file on his computer, and also, once it hasbeen found, please change the file’s permission, so only Bob can access it.Tasks:1. Find the file (sources. list).2. Change the file owner to yourself (Bob).3. Set access authority so that only you (Bob) can write/read this file.Note: since you are working on Bob’s computer, you are working under Bob’s name and have his privilegesarrow_forward
- Downloads/ E ID-21201491;name-Nuzhat Taba: X + English O localhost:8888/notebooks/Downloads/ID-21201491%3Bname-Nuzhat%20Tabassum%3B%20sec%20-%2017%3B%20CSE110%3B%20Lab%20assignment%2004.ipynb Cjupyter ID-21201491;name-Nuzhat Tabassum; sec - 17; CSE110;... Last Checkpoint: Last Tuesday at 10:45 PM (unsaved changes) Logout File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O + > Run Code ========= ===== ===== == In [7]: #to do Task 13 Write a Python program that reads 5 numbers into a list and prints the smallest and largest number and their locations in the list. [You are not allowed to use the max(), min(), sort(), sorted() functions here] Hint: You may assume the first input to be the largest value initially and the largest value's location to be 0. Similarly, you can assume the first input to be the smallest value initially and the smallest value's location to be 0. Note: You may need to be careful while printing the output. Depending on your code, you might need data…arrow_forwardGuido van Rossum guido@python.org +31 0474 33 88 26 Eric Idle eric@ericidle.com +44 20 7946 0958 The required info from instructor.arrow_forward6 https://elearning.gau.edu.tr/pluginfile.php?file=%2F228389%2Fmod_resource%2 E > Learn German - L... تسجيل الدخول الأهلى أون لاين ترجمة EF EF Go ogle https://elearnine عرض الصفحة A قراءة بصوت عال =7 ercises 1. Write a C program which will calculate and display the net salary of an employee after tax and fund deductions. The tax and fund are deducted depending on the amount of the gross salary. The ranges are given as follows: if salary salary >= 1000 , tax is 10% and fund is 15% if 5000 > salary >= 3000, tax is 15% and fund is 15% otherwise tax and fund are 20% each. 2. Write a C program which will take two integer numbers from the keyboard. If only one of the numbers an even number the program will display the multiplication result of the two numbers. If both numbers are odd numbers the program should display the division result (first number/ second number) and Thould dicolay the subtraction result.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education