
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
using python
1. create a function named "safe". Inside the function named "safe"create 3 outputs about the importance of esafety using the "print" statement
2. create a function named "not_safe". Inside the function named "not_safe"create 3 outputs about the different types of online threats that you know using the "print" statement
3. create a variable named"answer" with the user inputs and with a meesage as follows"Do you know what Esafety is?"
4. Create If statement and check the value of the variable "answer"
- if the value is YES then execute the function named SAFE
-if the value is NO then execute the function named NOT_SAFE
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- QUESTION 3: Execute the given program in MARS and answer the following short questions. .text main: li $a0,5 jal func1 li $v0,1 syscall j func3 func1: addiu $sp, $sp, -8 sw $ra, 4($sp) sw $a0, 0($sp) addi $a0,$a0,5 jal func2 Iw $a0, 0($sp) Iw $ra, 4($sp) jr $ra func2: addi $a0,$a0,5 jr $ra func3: li $v0,10 syscall i. What do we need to decrement $sp by 8 in the instruction addiu $sp, $sp,-8? ii. What is the value of $a0 at the end of func2? At the end of program, the value of $a0 is 5 (printed on screen). Why? iii. func1 is supposed to free-up stack before it returns back to the caller. Write down the instruction we must use to free-up stack. iv. The program will not terminate properly if we remove the instruction Iw $ra, 4($sp). Why? v. Make changes in this program to use jalr instead of jal. Write down your changes here.arrow_forwardCan you please show me what I'm doing wrong. My contributions are on lines 10-14.arrow_forwardPYTHON PROGRAMMING For this assignment, you will create a program the converts a temperature of Celsius into a Fahrenheit value or converts a Fahrenheit temperature to a Celsius value. The requirements are: 1. Prompt the user for a temperature value. The input value can be a floating-point number and must end with C or F. 2. Based on the value entered, convert the number to other temperature scale. For your reference, here are the formulas for converting the temperatures (so you do not have to hunt for them): Celsius = (Fahrenheit – 32) x (5/9) Fahrenheit = (Celsius x (9/5)) + 32 3. Print the computed value followed by a C or F as needed.arrow_forward
- I don't understand fully what is expected and how to out the code together.arrow_forward1. Declare a variable named title.2. Assign title the value "President".3. Initialize a variable named temperature with the value 85.6.4. Initialize a variable named section with the value 'A'.5. Initialize a variable named numStudents with the value 25.6. Declare a variable named isWorkDay.7. Assign isWorkDay the value true.arrow_forwardI multiple times told you experts, don't use AI and other's work otherwise I'll report and reduce your rating very sure. I'll take serious action.arrow_forward
arrow_back_ios
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