DNN_S24_HW02
.pdf
keyboard_arrow_up
School
Virginia Commonwealth University *
*We aren’t endorsed by this school
Course
CMSC-636
Subject
Computer Science
Date
May 7, 2024
Type
Pages
5
Uploaded by DoctorTurtle9928 on coursehero.com
CMSC 636 Neural Nets and Deep Learning
Spring 2024, Instructor: Dr. Milos Manic,
http://www.people.vcu.edu/~mmanic
Homework 2
Homework No. 2
Due Wednesday, Feb. 21, 2024, noon
Student certification:
Team member 1:
Print Name:
___________________________________
Date: __________________
I have contributed by doing the following:________________________________________________________
Signed:
________________________________________________ (you can sign/scan or use
e-signature)
Team member 2:
Print Name:
___________________________________
Date: __________________
I have contributed by doing the following:________________________________________________________
Signed:
________________________________________________ (you can sign/scan or use
e-signature)
Team member 3:
Print Name:
___________________________________
Date: __________________
I have contributed by doing the following:________________________________________________________
Signed:
________________________________________________ (you can sign/scan or use
e-signature)
2.1 Python, hard/soft activation function, delta rule (5pts)
2.1.0 Download two Python programs (0 pts).
Download two Python programs
perceptron_hard.py
and
perceptron_soft.py
(save these scripts by the name listed in the
header of script). Run them, inspect their output files. Try to understand the functionality of these programs. You will use
these programs as skeletons for the following sections of this homework.
Report: None.
2.1.1 Write a program in Python
(based on 2.1.0) to train a neuron implementing the truth table from HW1.4
(Homework 1, problem 4). Use a hard activation function and perceptron learning rule. For initial weight set use (1, 1, 1,
1). Experiment with different values for learning constant so the learning process completes in the fewest number of
iterations. During the learning process, print your results to files.
Note:
In a given initial weight set, the last “1” is bias weight.
Report:
1. Save your
Python
program as H211_hard.py and save files with results as H211_hard.txt.
2. Explain your results.
Page 1 of 5
CMSC 636 Neural Nets and Deep Learning
HW#2
CMSC 636 Neural Nets and Deep Learning
Spring 2024, Instructor: Dr. Milos Manic,
http://www.people.vcu.edu/~mmanic
Homework 2
2.1.2
For the previous problem (problem 2.1.1), change the activation function to soft activation function and
repeat your training procedure.
Start with a weight set (1,1,1,1). Introduce computation of the total error in your
program defined as the sum of squares of errors for each pattern. Experiment with learning coefficients to find results in
the fewest number of iterations to achieve TE<0.01.
Report:
1. Save your Python program as name it H212_soft.py and save files with results H212soft.txt.
2. Explain & discuss your results.
2.1.3 For the problem 2.1.1, use soft activation function and modify the script to implement a DELTA training rule.
Train the network using initial weights (1,1,1,1). Experiment with the learning constant to produce results in the least
number of iterations to achieve TE<0.01.
Report:
1. Save your Python program as H213_delta.py and save files with results as H213_delta.txt.
2. Explain & discuss your results.
Note: please make sure that you read the problem (data) carefully. For example, if the output values are 0 or 1, you should
not be using a bipolar activation function.
2.2 Design network that solves XOR (4 pts)
Design a neural network with 2 inputs, 1 output, and 3 neurons, which performs the XOR function:
Note: design means “by hand”, not by running an algorithm.
A
B
out
0
0
0
0
1
1
1
0
1
1
1
0
Report: 1. Provide the network diagram with weights. 2. Explain & discuss your results.
Page 2 of 5
CMSC 636 Neural Nets and Deep Learning
HW#2
CMSC 636 Neural Nets and Deep Learning
Spring 2024, Instructor: Dr. Milos Manic,
http://www.people.vcu.edu/~mmanic
Homework 2
2.3 Multi layer perceptron network
2.3.0 Download Python program (0 pts).
Download Python program
H230_mlp.py
from Canvas. Run it and inspect the output. Make sure you understand the
functionalities included in the script. This will be a starting point for the following sections of this homework.
Report: None.
To run Python script, in command prompt type:
python3 script_name.py (f
or example,
python3 H230_mlp.py,
to use
python 3.0 or above)
READING MATERIALS:
●
Scikit-learn
is a Python library that provides implementations of various machine learning algorithms.
●
It provides inbuilt functionalities to run neural networks such as Multi-layer Perceptron (MLP)
●
Read 1.17.1 to get more details on the MLP algorithm, architecture, advantages, and disadvantages.
●
Read 1.17.2 to understand how to use scikit-learn MLP functionality for classification, provide inputs to the
algorithm, and predict outcomes.
Reading Resource: multi layer perceptron in scikit-learn link.
Page 3 of 5
CMSC 636 Neural Nets and Deep Learning
HW#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
Data Structure & Algorithm:
Oware ( Warri) is a game popular in some countries of the Caribbean and Western Africa. For information about this game please see the various links below.
https://www.bbc.com/news/world-latin-america-56814500
https://en.wikipedia.org/wiki/Oware
https://youtu.be/0paedEX0Ixw
https://www.youtube.com/watch?v=ZkyPd7ftxaw
What data structures and programming algorithms you would use, and at what point and why? You are free to provide drawings and code segments to make your case.
arrow_forward
Data Structure & Algorithm:
Oware (Warri) is a game popular in some countries of the Caribbean and Western Africa. For information about this game please see the various links below.
https://www.bbc.com/news/world-latin-america-56814500
https://en.wikipedia.org/wiki/Oware
https://youtu.be/0paedEX0Ixw
https://www.youtube.com/watch?v=ZkyPd7ftxaw
What programming language and data structure would you use to code this game and why?
arrow_forward
The Pen Is Mightier Than the Keyboard: Advantages of Longhand Over Laptop Note Taking
Link to the pdf: https://cpb-us-w2.wpmucdn.com/sites.udel.edu/dist/6/132/files/2010/11/Psychological-Science-2014-Mueller-0956797614524581-1u0h0yu.pdf
arrow_forward
computer science vs computer engineering
https://www.fieldengineer.com/blogs/computer-science-vs-computer-engineering
If you love all things tech and computer related, a Computer Science or Computer Engineering degree may be right for you. But what’s the difference between the two subjects? It may seem like a daunting decision to make so to make it easier for you to decide between the two, we’ve created a list of the core curriculum and potential career paths you could take!
arrow_forward
Topics: Loops and Nesting
Subject: Discrete Mathematics
U need to solve 3&4 ,These must be in programming language which is WOLFRAMCLOUD .Do i want these 2 questions in programming language and there output too.
Professor video: https://www.youtube.com/watch?v=VmiVdcfONZg&ab_channel=Physics%E2%80%A4joy
website link :
https://www.wolframcloud.com
arrow_forward
https://youtu.be/5HgqPpjIH5c
Next to assist you in responding to these prompts below go to the Keeping Score Berlioz page (link: http://www.pbs.org/keepingscore/berlioz-symphonie-fantastique.html ) and read the summary. Also watch Leonard Bernstein's "Berlioz Takes a Trip" (link: $WIKI_REFERENCE$/pages/leonard-bernstein-berlioz-takes-a-trip?module_item_id=g0bb8a3b6c18593dfe6054d27d0d132ac
Berlioz's "Symphonie Fantastique" was so novel and so shocking—for its program and its music—that it immediately caused an uproar, in the press, from other composers, even from Berlioz's friends. Many, finding the story distasteful, were aghast that a composer would put into music something so explicitly autobiographical. What can these reactions tell us about what Berlioz was trying to do? Was he a typical Romantic artist wearing his heart on his sleeve? Or was he an obsessed, crazy man using music for some diabolical purpose?
Using the Keeping Score Berlioz website from the link above, how do you…
arrow_forward
Search
Apex Learning
M Inbox (646) - bryan.2645157@n
https://course.apexlearning.com/public/activity/2002004/assessment
cation and Technology
2.2.4 Quiz: Designing a Game
Question 2 of 10
Which two features could be added to a game using an "if () then' block?
A. A sprite changes to a random costume every 2 seconds and says
"ha ha" every 5 seconds.
B. If the player touches a wall, it turns around and moves back 5
steps.
C. When a player touches the treasure chest, a message displays "5
points!"
D. The game starts when the user clicks the cat sprite, not the green
flag.
SUBMIT
ly
N
3
246
E
C
14 j
$
4
← PREVIOUS
to 40
5
R
LL
%
Apex Learning - Courses
T
G
6
4+
&
7
H
*
00
8
J
144
(
K
O
O
DDI
L
arrow_forward
can you answer this https://www.bartleby.com/questions-and-answers/computer-engineering-question/46dd3d8d-e73b-497c-9053-648e43ab2f44
arrow_forward
CIT University Online: Log in to t
C
Techie Editor's Note Magazine Pa X
f Messenger | Facebook
O Answer Task
ô https://app.codechum.com/student/answer/40505/question/3
E Back to Home
Time Left: 1:18:50:34
Overall Score: 0/30
Current Rank: 11th
Layout:
Side-by-Side
v Saved
main.c
positive.h
>
+
Custom Input
Output
Test Cases
Executions
3. Count Even N(from
codeChum, modified)
#include
ÇE Run Tests
#include"positive.h"
int main(void) {
int n = getNum();
display(n);
return 0;
2
by Catherine Arellano
3
Write a program that will receive a user input of any
O Test Case 1
POSITIVE integer. The program will then output the
first N even numbers, starting from 0.
7
}
Implements the following functions:
O Test Case 2
int getNum();
/*accepts input from the user.*/
O Test Case 3
Hidden
void display(int n);
/*prints the first n even numbers starting from 0.*/
O Test Case 4
Note:
1. Use only do while loop.
O Test Case 5
Hidden
2. You are not allowed to edit main.c and
positive.h. Create another file…
arrow_forward
OCTAVE PROGRAM
QUESTIONWhat is the mass (in kg) of a 1 cubic foot block of Copper? (units are intentionally in both systems)Approach and tasks1. We will watch the following video to understand how to calculate density of an element usingthe periodic table and knowledge about the structure of the element.Calculating mass from atomic information: https://www.youtube.com/watch?v=odcZBJ_eQrE2. You will develop a pseudo-code for a program that will, based on userinput, determine the density of an element based on unit cell structure, atomic radius andatomic mass.3. write a program that asks the user for necessary inputs and answers the original question.
Unit cell resources:https://courses.lumenlearning.com/cheminter/chapter/unit-cells/Face Centered Cubic (FCC) structure: (image)
arrow_forward
user stories
I need 5 different user stories about Online Crime Management for my project
For example, user stories might look like that:
I don't wanna just a police officer it is just an exampleAs a police officer, i would like to be able to check for past records with an ID number(like a passport), so that I don’t have to use the name of the person
second example
“As a [persona], I [want to], [so that].”Breaking this down:"As a [persona]": Who are we building this for? We’re not just after a job title, we’re after the persona of the person. Max. Our team should have a shared understanding of who Max is. We’ve hopefully interviewed plenty of Max’s. We understand how that person works, how they think and what they feel. We have empathy for Max.“Wants to”: Here we’re describing their intent — not the features they use. What is it they’re actually trying to achieve? This statement should be implementation free — if you’re describing any part of the UI and not the user goal, you're…
arrow_forward
Kennedy Rogers: Module 7 Computer Concepts Exam - Work - Microsoft Edge
https://samcp.cengage.com/Assignment Take/Exam?assignmentld-93029900&resultid=67239973&instld-f1dabeb4-2a2d-4f89-bf90-8b470938d375...
y T
ss Tips
ess Tips
R YOU
Tools
For Microso
s and Compu
e Feedback
Task 42 of 57
65°F
Partly sunny
3
OA. MP4
OC.
E
D
H
ME
C
$
C. WAV
>
Q Search
4
R
F
V
%6
Assignment: Module 7 Computer Co...
5
Which of the following audio formats does not use any compression technique?
T
G
6
L
Y
H
&
7
B N
U
*
J
8
Attempts Remaining 1
M
Save Answer
(
K
Task: MC516313 Which of the following audio formats does not use an...
CLU
9
O
OB.MP3
OD. WMA
O
L
alt
>
kulu
A
P
-
ctri
(
?
+
[
=
F
se
brt sc
||
<
4
]
pause
delete
Submit
O
backspace
home
0
enter
3
4
num
lock
T shift
7
X
A
and
urse
A
E
X
2:32 PM
4/26/2023
O
1
M
and
A-Z
8
sam
A
L
13
G
5
arrow_forward
https://www.bartleby.com/solution-answer/chapter-136-problem-21p-practical-management-science-6th-edition/9781337671989/ed4a8b3b-9c09-11e9-8385-02ee952b546e
(*How to solve this question using the original Excel tool and functions without the StatTools Add-in?)
The file P13_21.xlsx contains the weekly sales of rakes at a hardware store for a two-year period. Use the moving averages method, with spans of your choice, to forecast sales for the next 30 weeks. Does this method appear to track sales well? If not, what might be the reason?
arrow_forward
Title :- Nelson Mandela.Nelson Mandela was born in 1918. He was in prison from 1962 to 1990. He became Presidentof South Africa in 1994, and retired in 1999. Nelson Mandela died on 5 December 2013following a long illnessNelson Mandela was the first black President of South Africa. He spent 27 years in prison forhis fight against racial prejudice. After he left prison, he worked to achieve human rights and abetter future for everyone in South AfricaInstructions1. 2. 3. 4. 5.Insert your Id in header and your name in footer Right align the title of the documentBold, underline and highlight the title of the documentMake first line indent at 0.5 for first paragraphChange case to "capitalize each word" in last paragraph
arrow_forward
+ Immediate Priority_Nov6_Smatw x b Computer Engineering Question x
b My Questions | bartleby
+ Smartwings Tracking sheet Dec- x +
A https://www.bartleby.com/questions-and-answers/computer-engineering-question/a2bb09b7-e409-4321-866a-bfd1bd425019
...
= bartleby
Q Search for textbooks, step-by-step explanations to homework questions, ...
E Ask an Expert
e Q&A Library
Computer Engineering Question
Question
20:09
O Type here to search
、 ●ロ G) ENG
02-01-2021
Thursday
Friday
Saturday
Sunday
45.7
29.3
34.5
32.5
QUESTION 3
Create an object called Circle. Declare the following integer variables for the object Circle, radius, diameter,
ind pi is declared as double. Create the following for the Circle object:
Implicit constructor (default constructor)
Void method Calculate (double pi, int radius) to calculate the area of the Circle object. The method must
include a system.out statement that displays the area value. Use the following formula to calculate area of
the circle:
(20
Area = pi* (r* r)…
arrow_forward
According to the following reference
https://www.mediafire.com/file/vvxz6oki2pjshcj/IT448+-+Learning+Mobile+App+Development+(1).pdf/file
Please answer the following question without handwriting, please
================================================
Create a new android application using android studio and write code to identify the available sensors in your own mobile device and list them.
Note: Write both XML and java files.
================================================
arrow_forward
اسئلة نظم فاينل ك. . .
->
۱۵ صفحة
https://docs.google.com/forms/d/e/1FAlpQLSdXsrgUWxEWS9pHgTVN3leINWUsr70_03JIQKmRSDyEhBBTww/formResponse
7/16
30/01/2022, 09:29
معلومات الطائب
La 7
A synchronous state machine has one input (X) and two outputs (D and B).
The input represents a 4-bit binary number (N), which is input least
significant bit first. The output (D) represents a 4-bit binary number (N-2),
which is output least significant bit first. At the time the fourth input occurs,
B=1 if (N-2) is negative; otherwise, B=0. The state machine always resets
after the fourth bit of (X) is received. The designer needs for . states for
*.drawing minimal Mealy state diagram
8 O
10
15
4 O
6 O
7
تطبيق آسياسیل
Google Play
Asiacell
تثبیت
arrow_forward
Home
San Joaquin Valley Town Hall
Celebrating our 75 Year
Guest speakers
October
David Brancaccio
November
Andrew Ross Sorkin
January
Amy Chua
Speakers
Our Mission
San J
volunt
renow
audien
8
of
Luncheons
Spee
Foss
Febru
Scott
What's
spank
Come Our Mission
Tickets
About Us
San Joaquin Valley Town Hall
Celebrating our 75th Year
MENU
dinosa San Joaquin Valley Town Hall is a non-profit organization that is run by an all-volunteer
Resea board of directors. Our mission is to bring nationally and internationally renowned, thought-
provoking speakers who inform, educate, and entertain our audiencel As one or our
members told us
"Each year I give a ticket package to each of our family members. I think of it as
the gift of knowledge and that is priceless
Speaker of the Month
Fossil Threads in the Web of Life
February
Scott Sampson
What's 75 million years old and brand spanking new? A
1. Open the HTML and CSS files that follow:
short_exercises\town_hall\c10x_index.html…
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
CIT University Online: Log in to t
C
Techie Editor's Note Magazine Pa X
f Messenger | Facebook
O Answer Task
Ô https://app.codechum.com/student/answer/40505/question/2
+ Back to Home
Time Left: 1:18:51:24
Overall Score: 0/30
Current Rank: 11th
Layout:
Side-by-Side
v Saved
main.c
decBin.h
>
+
Custom Input
Output
Test Cases
Executions
2. DecBin(from codeChum,
modified)
1
#include
2
#include"decBin.h"
ÇE Run Tests
by Catherine Arellano
3
int main(void) {
int n = getNum();
long d = decBin(n);
display(d);
4
I am a doctor and my son's a freshman Computer
Science student. He asked for help on conversion
O Test Case 1
of decimal to binary. Can you help me to do a
7
return 0;
program that automatically converts decimal to
8
}
binary?
O Test Case 2
You have been tasked to make a program that will
automatically convert decimal digits to binary
digits. This is great! You could help someone to
learn more things.
O Test Case 3
Implement the following functions:
O Test Case 4
Hidden
int getNum();…
arrow_forward
4G*
VodaCom-SA
A 100% O
9:38
SU6_I_DO_CH9
CMPG 122
User Interface Programming
I_Do: Week 12
Chapter 9: Classes and Multiform Projects
- Dorm and Meal Plan Calculator (Nr 6, Page 622)
A university has the following dormitories:
E Allen Hall
E Pike Hall
E Farthing Hall
E University Suites
$1,500 per semester
$1,600 per semester
$1,800 per semester
$2,500 per semester
The university also offers the following meal plans:
o 7 meals per week
A 14 meals per week
A Unlimited meals
$ 600 per semester
$1,200 per semester
$1,700 per semester
Create an application with two forms. The main form should allow the user to select a dormitory
and a meal plan. The application should show the total charges on the second form.
See example below:
E Program9_6
Meal Plan:
Domitory:
Allan Hall
Pike Hall
Farthing Hall
University Suites
7 meals per week
14 meals per week
Unlimited meals
Domitory: $1,600.00 per semester
Meal Plan: $600.00 per semester
Total: $2,200.00
Display
Form I
Form 2
arrow_forward
Computer Science
You are working at a company named CSM Technologies and www.csmtech.com (Links to an external site.) is the main company website. Now the company is expanding into publishing and wants to create a new website and use www.csmpub.com (Links to an external site.) for the new website. You are tasked with setting up the new site. You don't have to design or create the website, just set it up so that the web designers can create and publish the site.
In your own words, describe what you will need to do in order to setup a public website for www.csmpub.com (Links to an external site.)
arrow_forward
Home
D2L 1-4 zyBooks Lab Activities - IT-14 X
zy Section 1.37 - IT 145: Intro to Sof X
O Mail - Roque, Jose - Outlook
https://learn.zybooks.com/zybook/IT-145-H7604-OL-TRAD-UG.22EW4/chapter/1/section/37
My library > IT 145: Intro to Software Development home >
= zyBooks
zyBooks catalog
? Help/FAQ
Jose Roque
1.37: Basic output with variables (Java)
↑1.36 zyLab training*: One large program
Students:
This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you
have any technical issues with the zyLab submission system, use the Trouble with lab button at the bottom of the lab.
1.37 Basic output with variables (Java)
This zyLab activity is intended for students to prepare for a larger programming assignment. Warm up exercises are typically simpler and
worth fewer points than a full programming assignment. Warm up exercises are ideally suited for an in-person scheduled lab meeting or as
self-practice. The…
arrow_forward
watch video: https://www.youtube.com/watch?v=WXuK6gekU1Y
1) What is the AI issues/challenges that were present in the game?
2) How AI has addressed these challenges?
arrow_forward
All computer setups, past, present, and future, are on display here.
arrow_forward
Transcribed Image Text
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 esearch. How can Ken complete his search assignments effectively? How can search engines become more ccessible for people with low vision like Ken?
arrow_forward
Engineering - Mid X
Google äazi X
Functional requirements capture X
+
A elearn.iu.edu.jo/mod/quiz/attempt.php?attempt=145594&cmid=1037268&page=D2
البوابة التعليمية الإلكترونية لجامعة الإسراء iLearn -
Question 12
Functional requirements capture the intended behavior of the system.
lot yet
unswered
Select one:
Marked out of
O a. True
O b. False
7Flag
question
Question 13
Not yet
answered
Object-oriented domain analysis is concerned with the identification and
specification of reusable capabilities within an application domain
Marked out of
Select one:
O a. True
R Flag
question
O b. False
here to search
Pr
Ps
arrow_forward
3:46
bartleby.com
bartleby
Q&A
Engineering / Computer Engineering / Q&A Library / A summ...
A summer camp offers a morning session ...
Get live help whenever you need Try bartleby
tutor today
from online tutors!
Transcribed Image Text
A summer camp offers a morning session and an
afternoon session. The list morningList contains the
names of all children attending the morning session,
and the list afternoonList contains the names of all
children attending the afternoon session. Only children
who attend both sessions eat lunch at the camp. The
camp director wants to create lunchList, which will
contain the names of children attending both sessions.
The following code segment is intended to create
lunchList, which is initially empty. It uses the
procedure IsFound (list, name), which returns true if
name is found in list and returns false otherwise. FOR
EACH child IN morningList { Which of
the following could replace so that
the code segment works as intended? IF (IsFound
(afternoonList,…
arrow_forward
board bsu - Search
3
Bb Course Materials - ENGL101-009 X
0
https://learn.zybooks.com/zybook/BOWIESTATECOSC112TankehFall2022/chapter/2/section/9?content_resource_id=61938934
CHALLENGE
ACTIVITY
O False
428064.2870338.qx3zqy7
%
The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.
1. Declare a constant named CENTS_PER_POUND and initialize with 25.
5
6
7
8
9
10
11
12
13
14
15
2. Get the shipping weight from user input storing the weight into shipWeightPounds.
3. Using FLAT_FEE_CENTS and CENTS_PER_POUND constants, assign shipCostCents with the cost of shipping a package
weighing shipWeightPounds.
1 import java.util.Scanner;
2
3 public class ShippingCalculator {
2.9.1: Using constants in expressions.
Run
16
17
}
18 }
5
Qzybooks - Search
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int shipWeight Pounds;
int shipCostCents = 0;
final int FLAT FEE CENTS
75;
final int CENTS_PER_POUND = 25;
int shipWeight Pounds= scnr.nextint();…
arrow_forward
BbPython Online - 2022 Fall ET 574 X
= CO
Bing
Links
H
Remaining Time: 1 hour, 42 minutes, 51 seconds.
Question Completion Status:
P
Online Python - IDE, Editor, Con X Bb Take Test: ET574 Coding Final Ex
bbhosted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id=_2271631_1&course_ic
QUESTION 7
Implement the following:
1) Write a function randFive() with one parameter n.
2) randFive() create five random integers in the range (1, n) inclusive.
3) Five numbers should be stored in a list as the return value.
Call the function, randFive() with the argument, 100.
5) Print the result of the function call.
randFive() can generate any five numbers.
Make sure to precisely match the output format below.
Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course).
Example Output
[1, 20, 9, 84, 46]
For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).
BIUS Paragraph V Arial
0
P
QUESTION 8
4
Click Save and Submit to save and…
arrow_forward
Listen to the podcast and briefly answer the below questions with
Don’t Panic: The Unit 42 Podcast
Link to the podcast hxxps://unit42.libsyn.com
1) What you learned about this InfoSec topic?2) What further questions you have about this InfoSec topic?3) If you are interested in delving deeper into this InfoSec topic. Why or why not?4) If you think you'll listen to this podcast (or read this blog) in the future. Why or why not?
arrow_forward
+ Immediate Priority_Nov6_Smatw X
b what is the right choice?! | bartle X
b My Questions | bartleby
+ Smartwings Tracking sheet Dec- x
A https://www.bartleby.com/questions-and-answers/computer-science-question/6d15b60c-aa81-473a-b969-dd4dda609f1c
...
What is the output of the following program?
red
1.00
#include
#include
ion
using namespace std;
int main() {
int x = 4, y = 2;
int z, w;
Z = y % 3 + y/ x + y;
W = z /y;
cout << "w=" << w << end%;
system("pause");
return 0;
Select one:
a. W=3
b. None of the other choices is correct
C. W=6
d. w=2
e. w=1
aobvagc_reoriented.jpeg
Show all
Open file
22:46
O Type here to search
a
(?
a 4) ENG
08-01-2021
arrow_forward
Bookshelf
About
Support
My library
Supply Chain Manage..
E Contents
AA
Quik Chips (QC) is a joint venture of five competing manufacturers of semiconductor
chips used primarily in the production of smartphone and tablet technologies. Essentially,
QC provides a full-range of e-Commerce and fulfillment services that help to meet customer
demands for increasingly faster turnaround times for these very expensive chips. Although
the concept of collaborating with competitors is relatively unique to manufacturers of semi-
conductor chips, it is not unusual for QC to provide supply chain services to common
customers of its members.
Changes and Evolution of Mobile Technologies. Recent years have seen exceptional
growth in the demand for smartphone and tablet technologies, and for apps that require an
increasing range of chip types and capabilities that support functions of mobile devices such
as user interface, texting, gaming, GPS, and other highly interactive capabilities. This has
resulted in…
arrow_forward
The tool I chose was Adobe Express Webpage. I chose this tool because it has always intrigued me about how to make a website/webpage. In my example, I created a simple homepage of a made-up business for counseling services. I didn't watch the how-to video because once I opened up the tool I just ran with it so to speak and I was pleased with what I came up with no matter how simple it is I had fun with it. I suppose I could use this tool in my academic life like I just did for this assignment, but another way I could use it is to send invitations to my friends and family for my graduation once I achieve my bachelor's degree. In my professional life, I could use it as a legitimate advertisement for my services. Another way would be as an introduction to online services I could provide in the future.
arrow_forward
S Microburst Learning EmployABIL X
urstelearning.com/launch/Scorm.aspx?id%3D14136158&cpid3D19398&launch Type=learner
ASSESSMENT
Question 3 of 10
INITIATIVE POST ASSESSMENT
You are a cashier at a grocery store and you notice a long
line of customers at another checkout during your break.
Just stay on break because it's your
scheduled time.
Make the selection
that best shows good
Invite customers to come into your line so
business initiative.
they won't have to wait.
Call the manager and tell her about the
situation.
Select an answer.
Then, click Submit.
Tell the other cashier that you will help
out in five minutes.
Yell out to customers to go to
self-check out.
arrow_forward
File
Paste
K14
7891011234567 18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Ready
Home Insert Page Layout
Cut
Copy
Format Painter
Clipboard
■
▬▬▬▬▬
7 Business Unit # of Vouchers
▶
I X
Arial
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
OSCM1
BI
5
13
8
33
14
25
5
2
15
12
7
11
1
2
27
15
Ques-1 Ques-2
A
A
B
с
D
1 Question 3-Categorize the user based on given conditions using the excel function:
2 (a)- If vouchers are more than 10 then Bonus else Slacker
5
6
Accessibility: Investigate
U
fix
Type here to search
Formulas Data
Font
10
2
5
Days Between
Vchr Entry and
Payment
5
4
3
▼
2
3
3
4
g
3
3
3
3
1
4
1
Á A
A
Review View Help
Ques-3 Ques-4 Ques-5
I
Et
===
User
Jim Ignatowski
John Locke
Kim Bauer
Liz Lemon
Lorelai Gilmore
Lynette Scavo
Maddie Hayes
Matt Saracen
Monica Bing
Natalie Teeger
Niles Crane
Norm Peterson
Phil Dunphy
Phillip J. Fry
Red Forman
Robert Barone
Alignment
Ques-6 Ques-7
O
a Wrap Text
Tell me what you want to do
Merge & Center
E…
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
- Data Structure & Algorithm: Oware ( Warri) is a game popular in some countries of the Caribbean and Western Africa. For information about this game please see the various links below. https://www.bbc.com/news/world-latin-america-56814500 https://en.wikipedia.org/wiki/Oware https://youtu.be/0paedEX0Ixw https://www.youtube.com/watch?v=ZkyPd7ftxaw What data structures and programming algorithms you would use, and at what point and why? You are free to provide drawings and code segments to make your case.arrow_forwardData Structure & Algorithm: Oware (Warri) is a game popular in some countries of the Caribbean and Western Africa. For information about this game please see the various links below. https://www.bbc.com/news/world-latin-america-56814500 https://en.wikipedia.org/wiki/Oware https://youtu.be/0paedEX0Ixw https://www.youtube.com/watch?v=ZkyPd7ftxaw What programming language and data structure would you use to code this game and why?arrow_forwardThe Pen Is Mightier Than the Keyboard: Advantages of Longhand Over Laptop Note Taking Link to the pdf: https://cpb-us-w2.wpmucdn.com/sites.udel.edu/dist/6/132/files/2010/11/Psychological-Science-2014-Mueller-0956797614524581-1u0h0yu.pdfarrow_forward
- computer science vs computer engineering https://www.fieldengineer.com/blogs/computer-science-vs-computer-engineering If you love all things tech and computer related, a Computer Science or Computer Engineering degree may be right for you. But what’s the difference between the two subjects? It may seem like a daunting decision to make so to make it easier for you to decide between the two, we’ve created a list of the core curriculum and potential career paths you could take!arrow_forwardTopics: Loops and Nesting Subject: Discrete Mathematics U need to solve 3&4 ,These must be in programming language which is WOLFRAMCLOUD .Do i want these 2 questions in programming language and there output too. Professor video: https://www.youtube.com/watch?v=VmiVdcfONZg&ab_channel=Physics%E2%80%A4joy website link : https://www.wolframcloud.comarrow_forwardhttps://youtu.be/5HgqPpjIH5c Next to assist you in responding to these prompts below go to the Keeping Score Berlioz page (link: http://www.pbs.org/keepingscore/berlioz-symphonie-fantastique.html ) and read the summary. Also watch Leonard Bernstein's "Berlioz Takes a Trip" (link: $WIKI_REFERENCE$/pages/leonard-bernstein-berlioz-takes-a-trip?module_item_id=g0bb8a3b6c18593dfe6054d27d0d132ac Berlioz's "Symphonie Fantastique" was so novel and so shocking—for its program and its music—that it immediately caused an uproar, in the press, from other composers, even from Berlioz's friends. Many, finding the story distasteful, were aghast that a composer would put into music something so explicitly autobiographical. What can these reactions tell us about what Berlioz was trying to do? Was he a typical Romantic artist wearing his heart on his sleeve? Or was he an obsessed, crazy man using music for some diabolical purpose? Using the Keeping Score Berlioz website from the link above, how do you…arrow_forward
- Search Apex Learning M Inbox (646) - bryan.2645157@n https://course.apexlearning.com/public/activity/2002004/assessment cation and Technology 2.2.4 Quiz: Designing a Game Question 2 of 10 Which two features could be added to a game using an "if () then' block? A. A sprite changes to a random costume every 2 seconds and says "ha ha" every 5 seconds. B. If the player touches a wall, it turns around and moves back 5 steps. C. When a player touches the treasure chest, a message displays "5 points!" D. The game starts when the user clicks the cat sprite, not the green flag. SUBMIT ly N 3 246 E C 14 j $ 4 ← PREVIOUS to 40 5 R LL % Apex Learning - Courses T G 6 4+ & 7 H * 00 8 J 144 ( K O O DDI Larrow_forwardcan you answer this https://www.bartleby.com/questions-and-answers/computer-engineering-question/46dd3d8d-e73b-497c-9053-648e43ab2f44arrow_forwardCIT University Online: Log in to t C Techie Editor's Note Magazine Pa X f Messenger | Facebook O Answer Task ô https://app.codechum.com/student/answer/40505/question/3 E Back to Home Time Left: 1:18:50:34 Overall Score: 0/30 Current Rank: 11th Layout: Side-by-Side v Saved main.c positive.h > + Custom Input Output Test Cases Executions 3. Count Even N(from codeChum, modified) #include ÇE Run Tests #include"positive.h" int main(void) { int n = getNum(); display(n); return 0; 2 by Catherine Arellano 3 Write a program that will receive a user input of any O Test Case 1 POSITIVE integer. The program will then output the first N even numbers, starting from 0. 7 } Implements the following functions: O Test Case 2 int getNum(); /*accepts input from the user.*/ O Test Case 3 Hidden void display(int n); /*prints the first n even numbers starting from 0.*/ O Test Case 4 Note: 1. Use only do while loop. O Test Case 5 Hidden 2. You are not allowed to edit main.c and positive.h. Create another file…arrow_forward
- OCTAVE PROGRAM QUESTIONWhat is the mass (in kg) of a 1 cubic foot block of Copper? (units are intentionally in both systems)Approach and tasks1. We will watch the following video to understand how to calculate density of an element usingthe periodic table and knowledge about the structure of the element.Calculating mass from atomic information: https://www.youtube.com/watch?v=odcZBJ_eQrE2. You will develop a pseudo-code for a program that will, based on userinput, determine the density of an element based on unit cell structure, atomic radius andatomic mass.3. write a program that asks the user for necessary inputs and answers the original question. Unit cell resources:https://courses.lumenlearning.com/cheminter/chapter/unit-cells/Face Centered Cubic (FCC) structure: (image)arrow_forwarduser stories I need 5 different user stories about Online Crime Management for my project For example, user stories might look like that: I don't wanna just a police officer it is just an exampleAs a police officer, i would like to be able to check for past records with an ID number(like a passport), so that I don’t have to use the name of the person second example “As a [persona], I [want to], [so that].”Breaking this down:"As a [persona]": Who are we building this for? We’re not just after a job title, we’re after the persona of the person. Max. Our team should have a shared understanding of who Max is. We’ve hopefully interviewed plenty of Max’s. We understand how that person works, how they think and what they feel. We have empathy for Max.“Wants to”: Here we’re describing their intent — not the features they use. What is it they’re actually trying to achieve? This statement should be implementation free — if you’re describing any part of the UI and not the user goal, you're…arrow_forwardKennedy Rogers: Module 7 Computer Concepts Exam - Work - Microsoft Edge https://samcp.cengage.com/Assignment Take/Exam?assignmentld-93029900&resultid=67239973&instld-f1dabeb4-2a2d-4f89-bf90-8b470938d375... y T ss Tips ess Tips R YOU Tools For Microso s and Compu e Feedback Task 42 of 57 65°F Partly sunny 3 OA. MP4 OC. E D H ME C $ C. WAV > Q Search 4 R F V %6 Assignment: Module 7 Computer Co... 5 Which of the following audio formats does not use any compression technique? T G 6 L Y H & 7 B N U * J 8 Attempts Remaining 1 M Save Answer ( K Task: MC516313 Which of the following audio formats does not use an... CLU 9 O OB.MP3 OD. WMA O L alt > kulu A P - ctri ( ? + [ = F se brt sc || < 4 ] pause delete Submit O backspace home 0 enter 3 4 num lock T shift 7 X A and urse A E X 2:32 PM 4/26/2023 O 1 M and A-Z 8 sam A L 13 G 5arrow_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