For the figure below, writing the following code in the command window "x-[12 3); LISA()" will give the following: Ofunction [y] LISA( x) %3D y=x+2; plot (y)| Select one: O a. A variable z will be saved in the workspace O b. A variable y will be saved in the workspace Oc A variable x will be saved in the workspace Od. Variables z and y will be saved in the workspace O e. Variables z and x will be saved in the workspace Ot Error
Q: What would be the output of the following code (in editor window)? A = [1 1 0 0] B = [1;2;3;4] C=A*B…
A:
Q: Typing the following code a = 8; b = 5; p=0; if (a<b) p=9; end fprintf('p=%d\n°,p); in the command…
A: Output Screenshot:
Q: What would be the output of the following code (in editor window)? A = [O 1; 1 0]; B=2; C = A + B…
A: Please find the answer below
Q: Create a program that filters and displays the correct menu items based on the day that the user…
A: Note: As any programming language is not mentioned So using C++ to solve the problem Program:…
Q: (1) what is the output of the this code A = [2 1; 0 2] ;B=3 ;C= A + B (in editor window)? (A) a) 52…
A: As per our company guidelines, we are supposed to answer only three subparts. Please repost other…
Q: Using JAVA, create a menu of the four lists, have the user select one item each and calculate the…
A: Algorithm : Step 1 : declare string arrays for processers, graphics cards, memory and monitors.…
Q: Q2: What is the purpose of the following MATLAB code? Write the content of the Command window and…
A: Below is the complete solution with explanation of given MATLAB code. The explanation of MATLAB…
Q: Write a program dist.cthat calculates the distance between two pointsand prints the resulton the…
A: Write a program dist.c that calculates the distance between two points and prints the result on the…
Q: Write an applet that displays a drawing of two eyes in the center of its window. When the mouse…
A: Complete answer is given below .
Q: Create a program that filters and displays the correct menu items based on the day that the user…
A: Here, I have to write a C++ program to the above question.
Q: Starting with the window32 project, modify the example program given in section the code below to…
A: ;program to find the sum of 3 numbers and also its averageINCLUDE io.h Cr EQU 0ahLf EQU 0dh data…
Q: 9. In the right triangle shown a = 17 cm and c = 50 cm. Define a and c as variables, and then: a)…
A: $ awk '{print "side:",$1,"side:",$2,"hypotenuse:",sqrt($1^2+$2^2)}'$1 and $2 are the input fields,…
Q: IF YOU KNOW THAT THE VALUES OF R AND H ARE 2, WHAT ARE THE OUTPUTS OF THE FOLLOWING PROGRAM? Private…
A: Given r=2 h=2 pi = 22/7 = 3.14285714285714 The datatype of pi is not mentioned. So, I am assuming…
Q: The command that used to delete the workspace window is: Oclc O clear O delete all O cancel Which of…
A: Matlab Commands: clear is used to clear the workspace commands while cancel is the option to cancel…
Q: Write a JavaScript program that prompts username and password and then gives five chances to guess…
A: The program is written in JavaScript,HTML,CSS. Check the program screenshot for the correct…
Q: weron@DESKTOP-218KDUL $ java NibbleMonsterwithSentinelcontrolledLoop Monster hungry :E Enter 'Q'…
A: Please upvote me. I am providing you the correct answer below.
Q: * What would be the output of the following code (in editor window)? 01 A = [1 0] ;4] ;3 ;2 B = [1…
A: Given A = [1 1 0 0] B = [1;2;3;4] C=A*B A is 1x4 matrix and B is 4x1 matrix So A*B is possible.…
Q: Q2: What is the purpose of the following MATLAB code? Write the content of the Command window and…
A: The purpose of the code and the output of the code is given below
Q: What would be the output of the following code (in editor window)? >>a=1:5 ; c=a.^2 O [1 25] O [1 49…
A: This question comes from MATLAB Programming which is a paper of computer science. Let's discuss it…
Q: Write a calculator program that accepts commands from command line. The program has the following…
A: Based on python.
Q: Write a program to create the applet as shown below. The applet uses a paint method that draws steps…
A: code: import java.applet.Applet;import java.awt.*; public class NewApplet extends Applet {…
Q: Given the following readLineSync() function (from dart:io library) to read input from the command…
A: Code: import 'dart:io';void main(){ stdout.write("Input: "); var…
Q: 1. Write down what the purpose of (Code) this code? Private Sub Command1_Click Dim x ,y as integer x…
A: Lets see the solution.
Q: Typing the following code a = 8; b = 5; p=0; if (a<b) p=93; end fprintf('p=%d\n°,p); in the command…
A: Here we have a = 8, b = 5, and p = 0 Now we are checking if a is less than b which is a false…
Q: Executing in the command window the following code returns. a = [1:3]' ;size(a)
A: Required:
Q: Typing the following code a = 8; b= 5; p=0; if (a<b) p=9; end fprintf('p=%d\n,p); in the command…
A: The, answer has given below:
Q: When I run this command I receive following error (see screenshot): size += os.stat(fp).st_size…
A: According to the code mentioned:- we have to correct the error in order to execute and get the…
Q: Create a JAVA program that will compute the following: a. Area of square = side2 0 b. Area of a…
A: Here we have given java code for computing area of 1. Square 2. Rectangle 3. Circle . You can find…
Q: Write the SINGLE command line that will print the word “hello” to the screen, pause for 20 seconds,…
A: Solution: The Single Command line is @echo off && echo Hello && timeout 20 > NUL…
Q: To generate the set of x even numbers in the range of two to twenty, what should you enter in the…
A: Syntax is: for x in range(start,end,increment value): here the given range starts from 2 and end…
Q: The value of Y after executing the program, n-6.x=2 is: Private Sub Command1 Click () Dim X, n, Y as…
A: SUMMARY: - hence we discussed all the points.
Q: Create a program that will convert temperature: - Design your own user interface. - The user must…
A: Include necessary header files. Define a main function. Declare variables in float and integer.…
Q: Predict the Output What will each of the following program segments display? 39. int myPowerFunction…
A: The answer is given below.
Q: This assignment is specifically designed to help you practice writing short Java programs and…
A: In this problem we need to debug and resolve the issues that is avaialble in the code. So I have…
Q: Write a program to create an invoice for the De Anza College Computer Lab when replacing…
A: A required program is as follows, #include <iostream>#include <iomanip>//Define constant…
Q: Q2: What is the purpose of the following MATLAB code? Write the content of the Command window and…
A: Given lines of code Code contains array of elements Then arrange in matrix form Using loop…
Q: Typing the following code a = 8; b = 5; p=0; if (a<b) p=9; end fprintf('p=%d\n',p); n the command…
A: Given question has asked to give the output of following code in command window. a=8; b=5;…
Q: 4. Let x = [3 1 5 7 9 2 6]. For each of the following commands first think about what the result…
A: a. x(3) will contain third element in given vector x. b. x(1:7) will contain first element to…
Q: In the right triangle shown a = 17 cm and c = 50 cm. Define a and cas variables, and then: 9. a a)…
A:
Q: Create a program that filters and displays the correct menu items based on the day that the user…
A: I have implemented the program to read menu.txt and compose a vector of menuItems and dispay the…
Q: (1) what is the output of the this code A = [2 1; 0 2] ;B=3 ;C = A + B (in editor window)? (A) a) 5…
A: Note: As per Bartleby's guidelines, only 1 question or first 3 sub-parts can be answered. Hence,…
Q: 6) Write a script that will prompt the user for a temperature in degrees Celsius, and then an F for…
A: * As per the company norms and guidelines we are providing first question answer only please repost…
Q: In the python code below, Allow the user to chose which manner they want the results displayed. A…
A: Answer is given below .
Q: 6) Write a script that will prompt the user for a temperature in degrees Celsius, and then an F for…
A: 1) Since you have not specified script language, I have written in python script language 2) Below…
Q: Write a program that prompts the user to enter thecenter coordinates, width, and height of two…
A: Program Plan: Import required packages. Declare the main class named “Test” which extends the…
Q: Create a program that filters and displays the correct menu items based on the day that the user…
A:
Q: What would be the output of the following code (in editor window)? >> A = [1 2; 3 4] ;C = A^2 [7 10;…
A: Given: A=1 2 ; 3 4; C=A2 The objective is to state what would be the output of the given code (in…
Q: In the right triangle shown a = 17 cm and c = 50 cm. Define a and c as variables, and then: a) Using…
A: Dear learner, hope you are doing well , I will try my best to answer this question. Thank You!!
Step by step
Solved in 2 steps with 1 images
- Plus x: A first function Assign y with 5 plus x. Ex: If x is 2, then y is 7. If x is 19, then y is 24. Note: Some challenge activities require completing a function (as above), or writing a new function. You can create test calls to the function in the "Code to call your function" window, then press "Run". Try appending this call to that window: IncreaseValue(9) When done writing and testing your function, press "Submit for Assessment", which will automatically apply various test calls to your function.Create a file in your project named employees.txt with the following data (you can simply create the file by hand rather than with Python code): 123 Bob Smith345 Anne Jones256 Carol Lee845 Steve Robert Anderson132 Jill Thompson From your program's main function, give the user the following options: lookup a name based on ID number, lookup an ID number based on name, and quit the program. OPTION 1: The user chooses to lookup a name based on ID number: Use a try/except and ask the user to enter an integer. If they don't enter an integer, print an error message. If they do enter an integer, call a function named lookup_employee which takes the id as a parameter. If an employee with the given id number is found, return the name. Otherwise, return the string “Employee not found” Back in main, print the return result. OPTION 2: The user chooses to lookup an ID based on name: Ask the user to enter the first and last name (don't ask for the middle name). Call a function named…This Java program needs to read from a txt file which holds five students' info, the program should then calculate and output the GPA of each students. Here is an example of the txt file : Tom IT 500 Business Analytics:94.6; IT 512 Project Management:88; IT 513 Information Security:91.2; ------------------------------------------- Tim MBA 503 Foundations of Business Statistics:85; IT 501 Fundamentals of Java Programming:70; IT 500 Business Analytics:64; IT 516 Social Media Analytics:77; IT 515 Organizational Behavior:50; ------------------------------------------- Smith MBA 503 Foundations of Business Statistics:20; IT 509 Data Management:89; IT 512 Project Management:90; ------------------------------------------- Davis MBA 503 Foundations of Business Statistics:77; IT 501 Fundamentals of Java Programming:89; IT 510 Information Technology Management:88; IT 517 Big Data Analytics:90; ------------------------------------------- Judge MBA 503 Foundations of Business Statistics:95; IT…
- Create a modularized Rock, Paper, and Scissors game that lets user play 7 Rock, Paper, and Scissors game against computer. The program should display each game's result and the final result for the 7 games. The program should contain the following procedures: getComputerChoice receives nothing but returns a word randomly picked from Rock, Paper, and Scissors. getUserChoice receives nothing but returns a word user picked from Rock, Paper, and Scissors. play receives computerPicked and userPicked and returns winner's name, computer or user. main: call the above procedures 7 times, display each game's result, and final result summary any way i can get help creating this in raptor flowchart?Python: I am trying to write a simple GUI based program with two input fields “Directory/filename” and “word” next to each other and one output text field below. Using recursion the program should go through all the files and folders searching for the entered word. If a match is found the path to the file should be printed in the text field + the content of line the word is found in . It should also print how many folders and files has been searched and how many times the word was found. Any ideas?In. docs.google.com. To resize the screen window as a .8 :statement we write void myReshape(GLsizei W, GLsizei H); void myReshape (GLsizei GLsizei H); O glutReshapeFunc(myReshape); glutReshapefunc(myReshape); One of the functions that should .9 :preceded the set of the window is gIMatrixMode (GL_PROJECT); O gIMatrixmode (GL_PROJECT); gIMatrixMode (GI_PROJECT); glMatrixMode (GL-PROJECT); O function specifies the diameter of .10 rasterized points glPointSize O gILineWidth glutinitWindowSize gILineSize
- PLEASE COMMENT CODE In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this: 1-00654-021 Dell charger Toronto-WEST 99-49-ZAD011-76540-022 ASUS battery Milton-EAST 34-56-CBH561-09239-026 HP HD Scarborough-NORTH 12-98-AZC451-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01Add the file two more lines: 1-34567-055 Lenovo SSD Milton-ON 34-09-MT04 1-90432-091 Lenovo battery Oakville-ON 78-KL98 Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.Create a C++ console project in Visual Studio or another tool. Create an application that converts a student’s grade percentage to a letter grade following the rules below: Grade Percentage A 100-90 B 89-80 C 79-70 D 69-60 F 59-0 Your code should prompt for and get the student’s percentage as input, and output an error message or a letter grade. Note: Your code should test these cases: Percentages less than 0 – error message. Percentages greater than 100 – error message. Percentages in the range 0-100 – letter grade. Please make sure your code can handle these cases. Tips: Use operator and ‘||’ for the conditional control statement. Use instruction ‘if’ for conditional control. Make the following edits to the code file: Complete the header comment. 2) Declare two double variables: grade and percentage. 3) Assign the value of percentage from input. 4) End program if percentage is smaller than 0 and…Please written by computer source Instructions Deliverables: For this assignment you will submit two python files to the drop box. Name the main file: lastname_firstname_assign2.py and name the module file: conversion.py. Example: turner_randy_assign2.py Create a program that converts feet to meters and vice versa. Specifications The formula for converting feet to meters is: feet = meters / 0.3048 The formula for converting meters to feet is: meters = feet * 0.3048 Store the code that performs the actual conversions in separate functions within a separate code module named "conversions.py". These two functions will take a single parameter and return the resulting conversion value. Close the file Start a new .py file and use an "import" statement to import your custom module into this new file Write a separate function to display the program banner/title Write a separate function to display the menu as shown below in the sample output Write the rest of the code to (1) take the user…
- Create a function Write that gets the value from the input textbox and displays the text in the div box. Also, the function must find the number of characters in the textbox and display it in the div counter. On the event onkeydown of the input textbox call the function Write. Enter the message content: this is a message content this is a message content. The number of charachters: 26This is a python file Fix this code and the output is the attachment #filename: modValidateEmail.py def isValidMSUMEmail(email): if email.count('@') != 1: return False tmp= email.split('@') if len(tmp) == 0: return False userName = tmp[0] if not userName[0].isalpha(): return False for c in userName: if not c.isalpha() and c != '.': return False inst= tmp[1] if inst != 'mnstate.edu': return False else: return True #filename: UnitTestValidEmail.py from unittest import * from modValidateEmail import * class TestValidEmail(TestCase): #create a subclass of unittest.TestCase def testUserName(self): self.assertEqual(isValidMSUMEmail('.joe@mnstate.edu'),False) self.assertEqual(isValidMSUMEmail('joe4@mnstate.edu'),False) self.assertEqual(isValidMSUMEmail('joe$smith@mnstate.edu'),False) self.assertEqual(isValidMSUMEmail('joe.smith@mnstate.edu'),True) def…create a Python application that makes use of repetition control structures in Python. Scenario: You are creating an application that will simulate the functions of an ATM for a bank. The user will be able to open the application, check their balance on their account, withdraw a specific amount that does not exceed their balance or deposit specific amounts into their account. The user should be able to do all these functions in succession without having to restart the application over and over. The application should first ask for a command from the user when started, the user can do 4 different commands on the application: Check Balance: The user will be able to check their current balance on their account. This should show the most updated balance if the user has made a withdrawal or deposit to the account. The account starts off with a balance of 100.00 PHP. Withdraw Money: The user can input an amount to withdraw from their account. This should not exceed the total balance that is…