Python
Q: List down the terminals in the above grammar.
A: A grammar in regular language is defined as a set of productions that usually define a language. The...
Q: Is it easier for you to identify someone using their fingerprints, speech intonation, face features ...
A: Introduction: Is it easier for you to identify someone using their fingerprints, speech intonation...
Q: What exactly is the meaning of cloud scalability? What are some of the characteristics of cloud comp...
A: Cloud scalability in cloud computing refers to the ability to scale computing resources up or down a...
Q: WEB DEVELOPER EXERCISE -) How can i check the type of signature of a method. (Assume that signature ...
A: The question is how to find the signature type of a method.
Q: (10.) Write a function prime number a test(is_prime test(is_prime test(is_prime The last case cc jec...
A: A better way to this exercise is that when the digit you would submit is a negative int, the functio...
Q: What is another way to set the core_data data frame besides using the functions read.csv() and file....
A: Answer: I have given answered in the brief explanation.
Q: Exercise 11: Write a program to find the sum of the first n natural numbers, where the value ofn is ...
A: Solution: The python code for above question is given here.
Q: Describe the technologies and architecture of LANs,Wireless LANs and WANs. Analyse data communicatio...
A: Describe the technologies and architecture of LANs,Wireless LANs and WANs. A local area network, or...
Q: Find a shortest path in given below graph by using Breath First Search (BFS) Technique
A: Defined the shortest path in the given graph using BFS
Q: Q/ write a a ssem bly Progam that store 1234H #in r egister Ax then trans fo The Contents of Ax tore...
A: I'm providing the answer to above query. I hope this will be helpful.
Q: Discuss types of application integration. 3. Explain the layers of IOAI.
A: the answer is given below:- by bartleby guidelines i am able to do only one question.
Q: operands. print(a * 5 + (5 + 2) * 3)
A: The answer is
Q: Exercise 2: Write a program that calculates the cost per square inch of a circular pizza, given its ...
A: Given The answer is given below.
Q: Simplify the following K map for function f(w, x, y, z). Please clearly show your grouping and write...
A: a) sum of product expressions= f(w, x, y, z) = x'yz' + wz' + wx product of sum expressions=f(w, ...
Q: What are the two types of files, in general, that exist? In what ways do these two file formats diff...
A: A document can be characterized as an assortment of information or data. Notwithstanding, the PC dea...
Q: Without using any loop In PHP programming languague The value of the input variable is 9.3,5 5,7,0 H...
A: 1) In PHP we have a function array_sum() which returns the sum of the values in an array. 2) It's sy...
Q: Considering the following tables,. is a foreign ke Student Table SID Name Expected Graduation 123 Sm...
A: To know which among these is the foreign key we have to understand first what is foreign key Foreig...
Q: Please write a Quality Plan which includes quality assurance and Testing for the computer game clue-...
A: The answer is given below
Q: Consider the following code. What will be printed to screen? def my_func(): a += 1 return a a = 5 re...
A: B) UnboundLocalError
Q: malyze Relationships Having more or less decided on our core objects, we now want to analyze the rel...
A: Answer : Yes, Objects can be inherit from the other objects. Whenever, any objects is inherit from ...
Q: Python
A: The questions are on the topic compound operators (compound assignment operators) which are : += -= ...
Q: Question 1. What are MAC addresses? Question 2. What is a private IP address?
A: Introduction: Here we are asked to explain MAC address and Private IP address, checkout below.
Q: CREATE OR REPLACE PROCEDURE
A: CREATE PROCEDURE search @id INT AS BEGIN SET NO COUNT ON; SELECT cteachID, cfname, cmname, clname FR...
Q: Suppose you are using a search algorithm to solve the 15-puzzle problem (i.e., the 4x4 version of th...
A: answer is
Q: 4.23 LAB: Golf scores Golf scores record the number of strokes used to get the ball in the hole. T...
A: You have not specify any particular language so I provide the code and output screenshot in python
Q: : Draw the Gantt chart for the following software development processes: Problem/ Business analysis...
A: The answer is given below:-
Q: Why not divide user research?
A: given - Why not divide the overall design into multiple user viewpoints when conducting user researc...
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Answer: Yes, RAM and cache memory are both transistor-based, but there are many more variances betwe...
Q: Quiz 3.2: Question 3 Unlimited tries NOTE: in mathematics, division by zero is undefined. So, in Jav...
A: Given data is shown below:
Q: If a=4, b=5 What will be the output of cout<< ++a * b--; cout<<"\n"<<b;
A: ++a : it's a preincrement operator where first a will be increment first and then rest of operation ...
Q: O the ability to use Google to find answer for a class O itis an ability you are bom with Question 4...
A: The answer is given below
Q: Write a program to generate 10 random numbers from -100 to 100. Save the randomly generate numbers i...
A: Python program to print random number between -100 to 100 an store in a list . Finding the count of ...
Q: Troubleshooting is a large part of what IT techs do. What might it mean from a troubleshooting stand...
A: If you are able to PING to your gateway but unable PING out to the outside world, then the break in ...
Q: Differentiate and discuss briefly any four points about primary and secondary memory.
A: The Differences and explanation about primary and secondary memory is below:
Q: Why isn't virtual memory utilised more often in embedded systems?
A: Introduction virtual memory utilised more often in embedded systems
Q: 25. The D flip-flop shown will a. set on the next clock pulse D b. reset on the next clock pulse CLK...
A: Answer: I have given answered in the brief explanation.
Q: 4. Assume that we execute the following assignment statements: width = 17 height = 12.0 For each of ...
A: Solution :: Python code :: width=17 height=12.0 print("width",width/2,"type",type(width/2)) print(...
Q: uring the last two years we have witnessed how Multimedia technologies and applications have played ...
A: Definitions: There may also be little question about how multimedia technology and multimedia-relate...
Q: Develop a mathematical model for measuring performance based on overall memory access time with a ne...
A: We need to derive the formula to calculate the Overall Memory Access Time.
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Store memory and RAM both depend on semiconductor based why reserve memory is required:
Q: 1) What is Matlab? 2) What are the five main parts of which the Matlab system consist? 3) What is th...
A: 1) what is a matlab ? --> MATLAB is a programming platform designed specifically for engineer...
Q: purpose of this assignment is to use programming as a means of changing the filter on a photograph. ...
A: The program is an given below :
Q: ch could harm your computer such as worms, Trojans and viruses. Discuss any FOUR (4) methods could b...
A: We have some of the methods by which we can prevent our computer- 1- We have to keep our computer up...
Q: Written in C# Language Please! A fixed percentage of water is taken from a well each day. Request ...
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful. Tha...
Q: Write a simple C# console application to accept the item name and item price. The program should cal...
A: Here is your code with an output .
Q: B- Declare a constant of character type with initial value='G' o Const char LETTER ='G'; O #define L...
A: We can define constants using: const keyword#define pre-processor directive We can define and decl...
Q: Assume you've been asked to create a hospital patient monitoring system and that you've been provide...
A: Answer: Specifications for the Software Requirements Engineering (SRS) It's a form of software requ...
Q: Write a program that Requests a temperature from the user. Also asks if the temperature is in Fahren...
A: Ans: python is very sensitive about indentation.So, please take care about indentation.Copy the same...
Q: Write a program that uses a while loop to generate a table showing the 7% sales tax and total charge...
A: import java.util.*;import java.text.*;class Main { public static void main(String[] args) { ...
Q: ### 1a. Complete the function definition below. Write a *pure* function the filters a series. Filter...
A: Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must ...
Step by step
Solved in 3 steps with 1 images
- 1. Please -Note: It`s a python code Implement the following:Given:food1 = "Salad"food2 = "Sandwich"price1 = 3.6price2 = 4.99 Print two f-string statements to display the following according to the rules below:1) Food prefixed with "Lunch:"2) Price prefixed with "Cost: $"3) Food always has 25 characters of space.4) Price is always displayed with two decimal places. Just 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 OutputLunch: Salad Cost: $3.60Lunch: Sandwich Cost: $4.99.Assume that you have run the following statements: x = 3y = "4"z = "5.6" Which expression would NOT cause an error? str(x, y) + z str(x) + int(y) y + z x + yYOUR QUESTION IS: 1. What value will be assigned to the numeric variable x when the following statement is executed x 4 \ 2 * 4
- Write a JavaScript including statements for variable declaration and assignment that will calculate and print the sum of the integers from 1 to 10. Use the while statement to loop through the calculation and increment statements. The loop should terminate when the value of variable x becomes 11.Please code in python a.) Suppose that x and y are variable names that already refer to Boolean values.Write an expression (not a statement!) that evaluates to True iff x or y,but not both, are True. b.) Suppose that x, y, and z are variable names that already refer to Boolean values.Write an expression (not a statement!) that evaluates to True iffat least one of the three variables (x, y, z) is False.1. A) Assume that the user input for x is 25. What will be the value of x after the following code is executed? if (x < 100) { x = x + 5; }if (x < 500) { x = x - 2; } if (x > 10) { x++; } else { x--; } B) How can you improve the following code structure? if (score < 40) { } else if (score >= 40 || score < 50) { } else if (score >= 50 || score < 60) { }else if (score >= 60 || score < 70) { } else if (score >= 70 || score < 80) { } else { } C) What will be printed on the console? char c = '0'; if(c > 90) ; cout << "The value of C is greater than 90\n"); cout << (int) c << endl; cout << static_cast<int> (c) << endl;
- Some websites calculate the strength of passwords as follows: Add 3 points if the password has at least 10 characters. Add 3 points If the password contains 3 or more lower case letters (a-z) Add 2 points If the password contains exactly 2 digits (0-9) Add 2 points If the password contains 2 or more of the following special characters (,!,@, or ?) Write and run a C program that: o Prompts the user to enter a password. Calculates and prints the strength of the password For simplicity assume that o The user will use a password that does not contain any space o A password cannot be more than 100 characters Sample Run Please enter a password: PSUT@2021? The strength of the password is 5What logical operator you will use so that the statements will be performed, if you have atleast one evaluated condition is TRUE? Select one: a. && b. ! c. || d. all of the choices Determine the output of the given program code #include<stdio.h>#include<conio.h> void main(){int sample[5]={1,2,3,4,5};int x,y;x=sample[1];y=sample[x];printf(“The number is %d”,y);getch();} Select one: a. 3 b. 2 c. 4 d. none of the choicesA. Suppose that x and y are variable names that already refer to Boolean values.Write an expression (not a statement!) that evaluates to True iff at least oneof the variables is False.# TODO: Write your expression hereB. Suppose that x, y, and z are variable names that already refer to Boolean values.Write an expression (not a statement!) that evaluates to True iffat least two of the three variables (x, y, z) are True.# TODO: Write your expression here
- Assume, you have been given a tuple. a_tuple = ("The Institute",("Best Mystery & Thriller", "The Silent Patient", 68821),75717,[1, 2, 3, 400, 5, 6, 7],("Best Fiction", "The Testaments", 98291)) Write one line of Python code to access and print the value 400.5- Which part of the following expression is evaluated first by the Python interpreter? (1 + 3 / 5) * 6 - 2 a. 1 + 3 b. 3 / 5 c. 6 - 2 d. 5 * 6need help with Python...please paste indented code here Implement the following: 1) Request a user input for the variable, date.2) Write an if-elif-else statement to determine a traveling schedule: a) if the date is less than 1, print an error message, Invalid Input. b) if the date is equal to 1, print a message, No Traveling. c) if the date is at least 2 but less than 15, print a message, Travel to Rome. d) if the date is at least 15 but less than 30, print a message, Travel to London. e) if the date is 30 or 31, print a message, Travel to Paris. f) if the date is more than 31, print a message, Invalid Input. Example Output 1 Enter the date(1-31): -1Invalid Input. Example Output 2Enter the date(1-31): 31Travel to Paris.