Assignment 2 Martina Ladinig
.docx
keyboard_arrow_up
School
University of North Texas *
*We aren’t endorsed by this school
Course
4760
Subject
Computer Science
Date
Apr 24, 2024
Type
docx
Pages
3
Uploaded by EarlBoulderJackal12 on coursehero.com
B C\Windows\System32\Windc X * (CEC I IEEEUE S S £ BN RV E S A S VAL I [CEELY RS GATES S EV S AV S AN R CEER L I T (CEEL RSN GATEE SV E S S AV S VRN I AL EG REER I LR (CEEE IS GATES S EVa S AN T 0 S AV EE R EL REESO T ES TV - ol T https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html Please note that updating to Notebook 7 might break some of your extensions. [W 20:38:01.819 NotebookApp] Loading JupyterLab as a classic notebook (v6) extension. pL) [I 2023-09-16 1.824 LabApp] JupyterLab extension loaded from C:\Users\martilanaconda3\Lib\site-packages\jupyte: [I 2023-09-16 20 1.824 LabApp] JupyterLab application directory is C:\Users\martilanaconda3\share\jupyter\lab [I 20:38:02.979 NotebookApp] The port 8888 is already in use, trying another port. [I 20:38:02.980 NotebookApp] The port 8889 is already in use, trying another port. [I 20:38:02.980 NotebookApp] The port 8890 is already in use, trying another port. [I 20:38:02.981 NotebookApp] Serving notebooks from local directory: C:\Users\marti\OneDrive\Desktop\Pandas- [I 20:38:02.982 NotebookApp] Jupyter Notebook 6.5.4 is running at: [I 20:38:02.982 NotebookApp] http://localhost:8891/?token=a385acfc98fc8ect7c28aUb78810f53c7ac76af78ecc8f32 [I 20:38:02.982 NotebookApp] or http://127.0.6.1:8891/?token=a385acfc98fc8ecd7c28aub78810f53c7ac76af78ecc8f32 [I 20:38:02.982 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmati [C 20:38:03.005 NotebookApp] . access the notebook, open this file in a browser: file:///C: /Users/nart:./AppData/Roallng/ jupyter/runtime/nbserver-20156-open. [T IVAEY T I ETS T TR i o TR U http://localhost:8891/?token=a385acfc98fc8ect7c28aub78810f53c7ac76af78ecc8F32 or http://127.0.0.1:8891/?token=a385acfc98fc8ecd7c28a4b78810F53c7ac76af78ecc8f32 0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to dis: 59°F am o 857 PM & Clear mm Q Search o NSRS nn O Z Home Page - Select or createa X M@ Martina Ladinig Assignment2 - X | + L2 = a X C O localhost:8891/tree e * =600 Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions - Please note that updating to Notebook 7 might break some of your extensions. Don't show anymore ~ Jupyter Quit | Logout Files ~ Running Clusters Select items to perform actions on them. Upload Neww & 0o ~ m/ Name ¥ LastModified | File size O & Martina Ladinig Assignment 2.ipynb Running a minute ago 728 O D Titanic-Dataset.csv adayago 38.7kB > feud B Qs seOomcBe®e @O +a nemaw 500
Z Home Page - Selectorcreatearn X & Martina Ladinig Assignment2 - X + L2 = a X C @ localhost:8891/notebooks/Martina%20Ladinig%20Assignment%202.ipynb 2 % 600@ : Read the migration plan to Notebook 7 to lear about the new features and the actions to take if you are using extensions - Please note that updating to Notebook 7 might break some of your extensions. Don't show anymore : Jupyter Martina Ladinig Assignment 2 Last Checkpoint: 20 minutes ago Autosave Failed! [ Logout File Edt View Inset Cell Kemel Widgets Help B Trusted | Python 3 (ipykemel) S + < A B 4+ ¥ PRin B C MW Code v|| = In [2]: import pandas as pd In [4]: titanic = pd.read_csv ('Titanic-Dataset.csv') In [5]: titanic.shape out[5]: (891, 5) In [6]: import numpy as np titanic['Sex'] = np.where(titanic['Sex']=='female',1,0) In [7]: titanic['Sex'] out[7]: e o 3 ! 2 3 3 : 4 4 ] 886 e 887 > | 888 - 889 o 890 o Name: Sex, Length: 891, dtype: int32 < Jupyter Martina Ladinig Assignment 2 Last Checkpoint: 20 minutes ago Autosave Failed! A Logout File Edit View Insert Cell Kemel Widgets Help Trusted | Python 3 (ipykemnel) 5 + < A B 4+ ¥ PRin B C W Code v @ In [8]: titanic.describe() out[8]: Survived Pclass Sex Age count 891.000000 891.000000 891.000000 714.000000 mean 0.383838 2.308642 0.352413 29.699118 std 0.486592 0.836071 0.477990 14.526497 min 0.000000 1.000000 0.000000 0.420000 25% 0.000000 2.000000 0.000000 20.125000 50% 0.000000 3.000000 0.000000 28.000000 75% 1.000000 3.000000 1.000000 38.000000 max 1.000000 3.000000 1.000000 80.000000 In [9]: titanic.isnull().sum() out[9]: Survived 0 Pclass 2] Name ) Sex 2] Age 177 dtype: int64 In [13]: print(sum(titanic['Age'].isnull())) # == 177 missing values 177
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
Please written by computer source
I want to add an if statment to my code for overtime if the number of hours are over 40 but im stuck on how to do it,
This is a link for my code: https://prnt.sc/1a-IVCvrRU_m
This is what I am trying to add to my code : https://prnt.sc/8g5_4YbMXF0b
arrow_forward
ONE X
Intrd X
O ssd ( X
O Task: X
Z Zote x
O Diffe x
G Uset x
• Ident X
ملفات
البريد M
i Fiver x
C Get x
+
A elearning.utm.my/21221/pluginfile.php/318427/mod_resource/content/2/Module%205%20-%20Central%20Processing%20Unit%20AA24Apr2021-StudentPar. Q
Intrduction
74 / 88
75%
Trace the execution of the instruction by showing
Activity 1
all the changes in CPU registers (control and
general purpose registers) as well as the micro-
operations related to the instructions. Use the
given initial table.
Exercise 5.2 :
Memory address
39D
Memory Content
A450
Instruction/Data
L1: XCHG CX, NUM
39E
B451
SUB VAL1,CX
39F
C39D
JMP L1:
450
100
NUM
451
500
VAL1
Clock IP/PC
MAR
MBR
IR
CX
NUM VAL1
Micro-operation
to
200
100
74
Module 5 - Central.pdf
Show all
1:43 PM
P Type here to search
85°F
12/16/2021
arrow_forward
if y=sin(x), z=cos(x), v=exp(x), where ( -5 ≤ x ≤4) could you plot x,y,
z, v as shown below:
Figure 1
File Edit View Insert Tools Desktop Window Help
LOES his @ @ 22.0
4
2
0
-2
4
f
0.5
0
0
-0.5
-1
xxxxxxxxx
0
1
1
1
Y
5
xxxxxxxx
5
10
10
15
1
15
20
11330
20
0.5
0
-0.5
-1
0
60
20
0
O
+
+
5
+
10
10
15
15
20
20
arrow_forward
Two friends are exchanging messages through regular post mail. They don't want
anyone to understand their messages in case anyone read them. The messages are in
the form of an array of characters, where each character has a numeric value as
illustrated in the below lookup table.
GHIJ K LM
6 7 8
A BC DE F
1
2
3
4
9 10 11 12 13
QRS
14 15 16 17 18 19 20
N
O P
T
U v
V w X
Y
21 22 23 24 25 26
They decided to change the characters in the array in a way that cannot be observed by
any accidental reading. They do so as follows:
1- Given the original message, for example:
GREETINGS
2- transform the original character to its numeric value
7 18 5 5 20 9 14 7 19
3- For each number, subtracting from its value the value of the first lower value
character after it, and if there's no such character they will keep that character
without any change.
2 12 5 5 11 2 77 19
arrow_forward
C Using Pre x
O Programn x
C Create A C X
C Create A C x b Answered x
A
MAN 200 X
E Managen x
O Organizat x
O Organizat x
O
Mail - CH/ X
O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q
Programming Instructions_Dr Castillo_curr(2) (1).pdf
49 / 53
PROGRAMMING AND MARK UP LANGUAGES
UNIT B: C++
5. reate a C++ program GEO_SHAPES to calculate areas of geometric figures by following this
flowchart.
START
ENTER YOUR FIRST NAME
AND LAST NAME
TRAPEZE
What kind of
т
geometric figure is?
Enter R for rectangle,
T for triangle and Z
for trapeze
ENTER LENGTH AND
WIDTH
ENTER BASE AND HEIGHT
AREA = BxH/2
AREA = LxW
ENTER LARGE BASE,
SMALL BASE AND
HEIGTH
AREA = (B+b)xH/2
THANK YOU. YOUR NAME .. THE
CALCULATED AREA IS. SQUARE
FEET.
2:25
arrow_forward
To evaluate p V (q→ r), we first evaluate not
If p = false, q = true and r = true, the truth value of p V (q→ r) = true
Hint:
then we evaluate or
V and we evaluate
or
✓at the end.
? (Answer with true or false)
arrow_forward
C Using Pre x
O Programn x
С Create A C х
c Create A ( X
b Answered x
A MAN 200
E Managen x
O Organizat x
O Organizat x
O Mail - CH
O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q
Programming Instructions _Dr Castillo_curr(2) (1).pdf
45/ 53
UNIT B: C++
2. Using Predefined functions, write a C++ program GEOMETRY to:
a) Calculate the volume of a sphere is the radius r is known
b) Calculate the distance between 2 points if the coordinates are known
c) Determine the amount of characters in a string
b) Calculate the distance between 2 points if coordinates
a) Calculate the volume when radius
are known
is known
(x1,v1)
(x2 – x1)^2+ (y2 – y1)^2-
distance
V = (4/3) * TT*r
х
(x2,v2)
c) Calculate the number of characters, including blanks, in "Programming with C++"
SAMPLE 1
Please enter a phrase or sentence, you may include spaces : Programming with C++
2:22
arrow_forward
The value of F after executing the following program, n=13 is:
Private Sub Command1_Click ()
Dim n as Integer
n= Val (Text1. Text)
F = 1
For I 1 to n
F= F* I
Next I
Text1.Text = "F"
%3D
End Sub
6227020800
1245404160
691891200
479001600
arrow_forward
kindly do it faast
arrow_forward
matches.txt file data bellow.
```
Charlie Bradbury F 42 65 N Green 5558675309Bobby Singer M 70 69 Y Brown 5558675309Dean Winchester M 43 72 N Brown 5558675309Sam Winchester M 39 75 N Brown 5558675309Jody Mills F 51 65 N Brown 5558675309Bela Talbot F 39 69 Y Blue 5558675309James Novak M 46 71 Y Blue 5558675309
```
code.
#include <iostream>#include <string>#include <fstream>#include <iomanip>using namespace std;
int main(){ char user_gender, user_smoker; string user_eyecolor; int user_minAge, user_maxAge, user_minHeight, user_maxHeight;
cout << "What is the gender of your ideal match(M, F, N) ? "; cin >> user_gender;
cout << "What is the minimum age? "; cin >> user_minAge;
cout << "What is the maximum age? "; cin >> user_maxAge;
cout << "What is the minimum height (in inches)? "; cin >> user_minHeight;
cout << "What is the maximum height (in…
arrow_forward
+ collec x
Uni A X
Lles Open x
Self T X
Math X
\0 fo X
* proof X
eleme X
O (1) Cc X
O (1) Cc X
finite X
G (ab)
X
+
O X
A Not secure | openilias.uni-goettingen.de/openilias/ilias.php?ref_id=910&sequence=11&active_id=5007&c.
f Paused
Update :
Determine whether the following formulas are true. So note that N does not contain 0 in this case.
1. Vr € N : 3ye Z : a * y 10
3. Va e N : 36 € R : 62 = a
4. Va e N : Vb e N : Vc € Z :a² + b² = c²
O 1. is true
O 2. is true
O 3. is true
O 4. is true
arrow_forward
STS
Ох83
Ox41
Ox22
OXC2
SBIS
Ox05
OUT
OxC5
OXE4
Ox86
PORTB
How many times the loop will be repeated?
LDI R20, 20
LDI R21, 1e
now: DEC R20
DEC R21
BRNE now
Select one:
a. 10
O b. 200
O c. 20
O d. infinite number of times
After executing the following coder
arrow_forward
0se des ol Pnterence
it al
to Chow #at the hypeteles
not taining 08 Moctry has hed Ombrella "
Maty doel not
fet vet, and
have
her
01 She doel
o Naining of Maty
Maty deel not
Jmbiella
not
get wet" Pmply that
wet".
doer
not
get
BingO!
arrow_forward
Create a COVID-19 support service application using Python namedCovidSupportSystem that will provide the user with the below options:• Statistics,• Prevention,• Symptoms,• Treatment and Report case
1.1 Under Statistics state how many cases there are in SA, China and USA, then askthe user if they would like to see the cases for a different country, if yes, askthem to pick a number between 0 and 9, then pull a country from a list to show
1.2 Under Prevention place general COVID19 prevention information
1.3 Under Symptoms place general COVID19 Symptoms
1.4. Under Treatment place general COVID19 Treatment
1.5. Under Report case ask the user if they have any of the symptoms, if no, thenstate they do not have COVID19, if yes, then ask the user if they have atemperature above 38.5°C, if no, then state they do not have COVID19, ifyes, ask them to choose which country, USA, SA or China, after they havedecided, the number of infection should increase in that country with 1
1.6. The exit option…
arrow_forward
COUNT EQU 0x37 MOVLW d'30' MOVWF COUNT MOVLW 0AGAIN ADDLW 4 DECFSZ COUNT, F GOTO AGAIN MOVWF PORTB
Questions:
Find the value at PORTB.
Find how many loops there are in total.
arrow_forward
cs
count =10for item in $*doecho $count $itemcount='expr $count -1'done
what is the time giveintroduction to unix
arrow_forward
ONE S X
O Intrdu
6 ssd (2) x
6 Task3.
Z Zotero x
O Differe x
G Use th x
• Identif x
ملفاتي
M Iul x
fi Fiverr x
+
A elearning.utm.my/21221/pluginfile.php/318434/mod_resource/content/3/Module%205%20-%20Central%20Processing%20Unit%20AA24Apr2021-StudentPar. Q
Intrduction
25 / 56
67%
+
24
Segment
Activity 2
Segment Name
Execution
Time (ns)
Instruction Fetch &
52
Example 13:
Decode (IF)
Operand Fetch (OF)
Instruction Execute (IE)
40
30
• There are 4 segments as follows:
Operand Store (OS)
40
• The interface delay is 3 ns.
• The simple block diagram of the pipeline:
国中中中中中
R OF PRP IE
OS
Draw the space time diagram and calculate the:
a) cycle time of the non-pipeline and pipeline.
b) execution time for 50 tasks.
c) real speedup.
d) Maximum speedup.
Module 5 - Central.pdf
Show all
1:11 PM
P Type here to search
85°F
12/16/2021
arrow_forward
what is the purpose of the following code?
CBI DDRB, 3
LDIRIG, OFF
OUT DDRC, R16
t
again IN R20, PINB
SBRC R20, 3
JMP again
OUT PORTC, R16
here: IMP here
Select one:
a we keep monitoring 83. When it goes HIGH, the program will send OxFF to PORTC
Ob we keep monitoring 83. When it goes LOW, the program will send OxFF to PORTC
Oc we keep monitoring B3. When it goes HIGH, the program will copy PINB to PORTC
d. we keep monitoring B3. When it goes LOW, the program will copy FINE to PORTC
arrow_forward
Questien (): Answer the following state me nts with True or False and correct the false one (Ans wer
Five only):
1 NUM fincton n Excel tclls how many meric cntrics arc there.
2. Each computer s anly able to have one application software.
3. Hard drvesa part of the computer that reads information from a dsk.
4 The computer programs that run on a computer are rekmed to as hardwarc.
5 In Excel Rows are abeled as A, B, C, etc, and cohns are bbeled as 1.2.3 etc.
6 CPU controk only imput data of computer.
arrow_forward
Question 9 99 S
I'm trying to print just the path and the distances but it say index out of range
Full explain this question and text typing work only thanks
arrow_forward
1FAlpQLScKSCe4fQCsUagXXGYBj-ULNLC_u1cR3rWh1upArLigrWMMaQ/formResponse
mov
mov
div
aox, y
dx, D
1-
1-
X = Y div z; {unsigned div)
mov
x, ax
ах, у
2-
X Y div Z, (signed div)
2-
x, ax
3-
Instructions
ах, у
X 1= Y+ Z;
3-
idiv
mov
x, ax
4-
X 1= Y• Z; {unsigned}
ax, y
ax, 2
mov
4- add
mov
X, ax
5-
X : Y Z;
mov
5-
ax, y
ax,
mov
X, ax
Instructions 1 Instructions 2 Instructions 3 Instructions 4 Instructions 5
expression 1
expressions 2
expressions 3
expressions 4
expressions 5
acer
arrow_forward
Java app. that uses while looping to print the table of values justlike you see it.
N 10*N 100*N 1000*N
_______________________________________________________
1 10 100 1000
2 20 200 2000
3 30 300 3000
4 40 400 4000
5 50 500 5000
arrow_forward
USING GITBASH SHELL SCRIPT
Find the even multiples of any number chosen by the user in a given range – the usershould specify the multiples of which number they want to print and a minimum and maximumvalue. The multiples printed should be within the [minimum, maximum] range. For example, ifthe user choses the number 7 and would like to print all even multiples in the [15, 60] range, theprogram should print all the even multiples that are bigger than or equal to 15 (minimum), butsmaller than or equal to 60 (maximum). The program should keep a count of how many numberswere printed and should output that count, as well as the numbers. The output then, for theexample given, should be 28, 42, 56, and the count should be 3.
So l wrote this code as shown by the screenshot and now l want to write the same code using functions
this is the code
GNU nano 5.9…
arrow_forward
USING GITBASH SHELL SCRIPT
Find the even multiples of any number chosen by the user in a given range – the usershould specify the multiples of which number they want to print and a minimum and maximumvalue. The multiples printed should be within the [minimum, maximum] range. For example, ifthe user choses the number 7 and would like to print all even multiples in the [15, 60] range, theprogram should print all the even multiples that are bigger than or equal to 15 (minimum), butsmaller than or equal to 60 (maximum). The program should keep a count of how many numberswere printed and should output that count, as well as the numbers. The output then, for theexample given, should be 28, 42, 56, and the count should be 3.
So l wrote this code as shown by the screenshot and now l want to write the same code using a different alternative like functions or the for loop not the while loop
this is the code
GNU nano 5.9…
arrow_forward
RStudio
How to filter these data so that 1 and 2 are the headers in RStudio?
BORN EDUC1 161 141 161 122 122 101 131 121 111 121 142 121 121 132 12
arrow_forward
The ipnumbers.out file contains the following integers:
0 0 0 74 0 0 0 6 0 0 0 -25 0 0 0 21 0 0 0 69 0 0 0 -85 0 0 0 -6 0 0 0 35 0 0 0 -114 0 0 0 -6 0 0 0 -70 0 0 0 -82
arrow_forward
wyd?
\
arrow_forward
WriteanalgorithmanddrawaflowcharttoReadanintegernumberfromthe user and check whether the number is positive or negative. If the number is positive add 2 to it otherwise add 20.
arrow_forward
This is the updated code that I have:
.data .globl main .textmain: # compute the next state of the LFSR for each input state li $a0, 0x00000001 jal lfsr_next_state move $t0, $v0 li $a0, 0xdeadbeef jal lfsr_next_state move $t1, $v0 li $a0, 0x200214c8 jal lfsr_next_state move $t2, $v0 li $a0, 0x00000000 jal lfsr_next_state move $t3, $v0
# print the output states move $a0, $t0 li $v0, 1 syscall move $a0, $t1 li $v0, 1 syscall move $a0, $t2 li $v0, 1 syscall move $a0, $t3 li $v0, 1 syscall
# exit the program li $v0, 10 syscall
# Function to compute the next state of an LFSR# Input parameter: $a0 = current state# Output: $v0 = next statelfsr_next_state: # Initialize upper mask with 0x7fff and lower mask with 0x8000 lui $t0, 0x7fff ori $t0, $t0,…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Related Questions
- Please written by computer source I want to add an if statment to my code for overtime if the number of hours are over 40 but im stuck on how to do it, This is a link for my code: https://prnt.sc/1a-IVCvrRU_m This is what I am trying to add to my code : https://prnt.sc/8g5_4YbMXF0barrow_forwardONE X Intrd X O ssd ( X O Task: X Z Zote x O Diffe x G Uset x • Ident X ملفات البريد M i Fiver x C Get x + A elearning.utm.my/21221/pluginfile.php/318427/mod_resource/content/2/Module%205%20-%20Central%20Processing%20Unit%20AA24Apr2021-StudentPar. Q Intrduction 74 / 88 75% Trace the execution of the instruction by showing Activity 1 all the changes in CPU registers (control and general purpose registers) as well as the micro- operations related to the instructions. Use the given initial table. Exercise 5.2 : Memory address 39D Memory Content A450 Instruction/Data L1: XCHG CX, NUM 39E B451 SUB VAL1,CX 39F C39D JMP L1: 450 100 NUM 451 500 VAL1 Clock IP/PC MAR MBR IR CX NUM VAL1 Micro-operation to 200 100 74 Module 5 - Central.pdf Show all 1:43 PM P Type here to search 85°F 12/16/2021arrow_forwardif y=sin(x), z=cos(x), v=exp(x), where ( -5 ≤ x ≤4) could you plot x,y, z, v as shown below: Figure 1 File Edit View Insert Tools Desktop Window Help LOES his @ @ 22.0 4 2 0 -2 4 f 0.5 0 0 -0.5 -1 xxxxxxxxx 0 1 1 1 Y 5 xxxxxxxx 5 10 10 15 1 15 20 11330 20 0.5 0 -0.5 -1 0 60 20 0 O + + 5 + 10 10 15 15 20 20arrow_forward
- Two friends are exchanging messages through regular post mail. They don't want anyone to understand their messages in case anyone read them. The messages are in the form of an array of characters, where each character has a numeric value as illustrated in the below lookup table. GHIJ K LM 6 7 8 A BC DE F 1 2 3 4 9 10 11 12 13 QRS 14 15 16 17 18 19 20 N O P T U v V w X Y 21 22 23 24 25 26 They decided to change the characters in the array in a way that cannot be observed by any accidental reading. They do so as follows: 1- Given the original message, for example: GREETINGS 2- transform the original character to its numeric value 7 18 5 5 20 9 14 7 19 3- For each number, subtracting from its value the value of the first lower value character after it, and if there's no such character they will keep that character without any change. 2 12 5 5 11 2 77 19arrow_forwardC Using Pre x O Programn x C Create A C X C Create A C x b Answered x A MAN 200 X E Managen x O Organizat x O Organizat x O Mail - CH/ X O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Programming Instructions_Dr Castillo_curr(2) (1).pdf 49 / 53 PROGRAMMING AND MARK UP LANGUAGES UNIT B: C++ 5. reate a C++ program GEO_SHAPES to calculate areas of geometric figures by following this flowchart. START ENTER YOUR FIRST NAME AND LAST NAME TRAPEZE What kind of т geometric figure is? Enter R for rectangle, T for triangle and Z for trapeze ENTER LENGTH AND WIDTH ENTER BASE AND HEIGHT AREA = BxH/2 AREA = LxW ENTER LARGE BASE, SMALL BASE AND HEIGTH AREA = (B+b)xH/2 THANK YOU. YOUR NAME .. THE CALCULATED AREA IS. SQUARE FEET. 2:25arrow_forwardTo evaluate p V (q→ r), we first evaluate not If p = false, q = true and r = true, the truth value of p V (q→ r) = true Hint: then we evaluate or V and we evaluate or ✓at the end. ? (Answer with true or false)arrow_forward
- C Using Pre x O Programn x С Create A C х c Create A ( X b Answered x A MAN 200 E Managen x O Organizat x O Organizat x O Mail - CH O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Programming Instructions _Dr Castillo_curr(2) (1).pdf 45/ 53 UNIT B: C++ 2. Using Predefined functions, write a C++ program GEOMETRY to: a) Calculate the volume of a sphere is the radius r is known b) Calculate the distance between 2 points if the coordinates are known c) Determine the amount of characters in a string b) Calculate the distance between 2 points if coordinates a) Calculate the volume when radius are known is known (x1,v1) (x2 – x1)^2+ (y2 – y1)^2- distance V = (4/3) * TT*r х (x2,v2) c) Calculate the number of characters, including blanks, in "Programming with C++" SAMPLE 1 Please enter a phrase or sentence, you may include spaces : Programming with C++ 2:22arrow_forwardThe value of F after executing the following program, n=13 is: Private Sub Command1_Click () Dim n as Integer n= Val (Text1. Text) F = 1 For I 1 to n F= F* I Next I Text1.Text = "F" %3D End Sub 6227020800 1245404160 691891200 479001600arrow_forwardkindly do it faastarrow_forward
- matches.txt file data bellow. ``` Charlie Bradbury F 42 65 N Green 5558675309Bobby Singer M 70 69 Y Brown 5558675309Dean Winchester M 43 72 N Brown 5558675309Sam Winchester M 39 75 N Brown 5558675309Jody Mills F 51 65 N Brown 5558675309Bela Talbot F 39 69 Y Blue 5558675309James Novak M 46 71 Y Blue 5558675309 ``` code. #include <iostream>#include <string>#include <fstream>#include <iomanip>using namespace std; int main(){ char user_gender, user_smoker; string user_eyecolor; int user_minAge, user_maxAge, user_minHeight, user_maxHeight; cout << "What is the gender of your ideal match(M, F, N) ? "; cin >> user_gender; cout << "What is the minimum age? "; cin >> user_minAge; cout << "What is the maximum age? "; cin >> user_maxAge; cout << "What is the minimum height (in inches)? "; cin >> user_minHeight; cout << "What is the maximum height (in…arrow_forward+ collec x Uni A X Lles Open x Self T X Math X \0 fo X * proof X eleme X O (1) Cc X O (1) Cc X finite X G (ab) X + O X A Not secure | openilias.uni-goettingen.de/openilias/ilias.php?ref_id=910&sequence=11&active_id=5007&c. f Paused Update : Determine whether the following formulas are true. So note that N does not contain 0 in this case. 1. Vr € N : 3ye Z : a * y 10 3. Va e N : 36 € R : 62 = a 4. Va e N : Vb e N : Vc € Z :a² + b² = c² O 1. is true O 2. is true O 3. is true O 4. is truearrow_forwardSTS Ох83 Ox41 Ox22 OXC2 SBIS Ox05 OUT OxC5 OXE4 Ox86 PORTB How many times the loop will be repeated? LDI R20, 20 LDI R21, 1e now: DEC R20 DEC R21 BRNE now Select one: a. 10 O b. 200 O c. 20 O d. infinite number of times After executing the following coderarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT