Please answer 2 python questions. Thank you.
Q: FTP is considered be a secure method of transferring files between computer. true or false
A: answer is
Q: You are given the following data: vocabulary V (w1, w2, w3) and the bigram probability distribution ...
A:
Q: Answer this in C++: Given main(), complete the Calculator class (in files Calculator.h and Calculat...
A: Calculator.h: #ifndef CALCULATORH #define CALCULATORH class Calculator { public: Calculator()...
Q: Q2: complete the function that returns the area of a circle with radius r, note, use math.pi for pi....
A: Given: To complete the python code.
Q: 5. How many point correspondances do we need to estimate transform with 6 degrees of freedom? 4 5. W...
A: Solution:
Q: 2. Consider the following grammar: 5- aS/ bA A - E Show the detail procedure of parsing 'a bb' in LL...
A: Given that S -> aS/bA A-> ε Non terminals = {S,A} Terminals = { a,b,ε} Starting symbol = {S...
Q: 1. The SQL command to create a table is: A. ΜΑΚΕ ΤABLE B. ALTER TABLE. C. DEFINE TABLE. D. CREATE TA...
A: The SQL command to create table is: D. CREATE TABLE Create table is used to create a new table Synt...
Q: Write a C program that creates an array of 10 names. Display the names in reverse order. Reverse ord...
A: Introduction: Here we are required to display the names entered by the user in reverse order.
Q: In python, create a code that accepts the size of a list as an input (n). It will print out all the ...
A: here in this question we have asked to write a program in python which take a list as input and prin...
Q: As a Python programmer in one company/institution, you are task to create a program that converts te...
A: In this user has to input choice whether user wants to convert Celsius to Fahrenheit or Fahrenheit t...
Q: Show the state of the queue with the corresponding characters during the following sequence of queue...
A: Queue: Queue is an abstract data structure,queue is open at both its ends. One end is always used to...
Q: Who was the first to come up with the concept of a flash drive?
A: INTRODUCTION: FLASH DRIVE: Almost every college student carries a flash drive in their bag these day...
Q: 58a2b+62c5+1 even or odd?
A: Your answer is given below with an explanation.
Q: Question 3 Students are required to create 5-character long passwords to access the library. The let...
A: Dear student, As per guidelines. I can answer only first question. Please re-post your second questi...
Q: 5: Complete the function that takes in a number x, and returns the value 1 if x > 0, otherwise it is...
A: Logic:- within step_function use if else to check value of x is greater than or equal to 0 or not. ...
Q: When Windows first came out, it didn't support true preemptive multitasking. "Cooperative multitaski...
A: Introduction: Cooperative Multitasking: This multitasking strategy allows two or more applications ...
Q: Write a c++ program that reads students’ names followed by their test scores. The program should out...
A: Given The answer is given below.
Q: . Using ticker.sh to track the value of a certain stock over time. Append the stock price and timest...
A: Stock.java public class Stock { private String name; private String symbol; private double pri...
Q: Write an 80x86 Intel assembly language program: Declare two integer arrays and initialize the firs o...
A: Declare Array A and B with given elementCreate Array C with ? reserved byteinside main procedure loa...
Q: make -s > ./main Enter String: Party on the Quad Enter Key: Homecoming Original Message: Party on th...
A: The above output is resulted when the string is encrypted using the Vigenere cipher. This cipher use...
Q: What does this code accomplish? subi $sp,$sp,8 sw $3,4($sp) sw $4,0($sp) push the contents of...
A: push the contents of $3,then $4 onto stack Explanation:- subi $sp,$sp,8 this instruction will make a...
Q: At least four CPU status flags should be able to be identified.
A: The various types of status flag are - 1. Carry Flag (CY) 2. Overflow Flag (O) 3. Sign Flag (S) 4. Z...
Q: Evaluate one web-based platform. Describe the client population. Explain the type of web-based plat...
A: A web based platform can be defined as a technology created by using open standards by the World Wid...
Q: What exactly is improved data agility?
A: Introduction: Agility is defined as the capacity and desire to learn from experience and then adapt ...
Q: Identify, list, and define an information system's six components.
A: Identify, list, and define an information system's six components.
Q: Data should be stored at the event level, but what does that mean?
A: Introduction: Data is unprocessed information that is recorded, gathered, and analyzed from various ...
Q: Internal and external file labels tell you what kind of files they are. They are used for what reaso...
A: Labels for filing cabinets The amount of data and information gathered by academics, analysts, compa...
Q: Write a program called estimator.cpp, which estimates the cost of a paint job from a painting compan...
A:
Q: There are two integer data values in locations num1 and num2. Create these two variables in an assem...
A: the program is an given below :
Q: How does CSS enhance a website?
A: Note- As per the Bartleby process we have to attempt only one question. Cascading Style Sheets is ...
Q: Instructions: Underline the infinitive and box the infinitive phrase in each sentence and identify i...
A: Our plan is to go to Cebu in October.
Q: Make a code snippet for a function (in the coding sense) that accepts as an input a list of size n a...
A: Given :- Make a code snippet for a function (in the coding sense) that accepts as an input a list of...
Q: What is the term that means that we restrict what each person may do with an asset where ever possib...
A: Given :- What is the term that means that we restrict what each person may do with an asset where e...
Q: What is a multi-layer switch (or "L3 switch")? a networking device which can perform both routing an...
A: Given: We are asked to give an appropriate definition among the options given of the Layer 3 switch
Q: How to find the missing number in a given integer array of 1 to 100? Write code in Java
A: logic:- store number 1 to 100 in array from index 0 to 99 using for loop. Check if difference of a...
Q: 3. In the following Petri Net, Can T1 be fired? How many tokens will be at node P3 after firing T1 t...
A: Petri Net : It is a kind of directed bipartite graph. The network has two components : Nodes Tra...
Q: Assumptions for this exercise. Alphabet E = { a, 6} To do in this exercise . • Construct a Nondeterm...
A:
Q: base implementations. Provide three justifications for the protocol's popularity.
A: given - Strict two-phase locking is used in most database implementations. Provide three justificati...
Q: Q-3 Sort the following elements using Selection Sort. 67 34 45 12 23 89 55 9. 60 18
A: According to the company policy I can do only one question at the time to know the answer of the oth...
Q: Underline the infinitive and box the infinitive phrase in each sentence and identify its correspondi...
A: According to the question we need to underline the infinitive and box the infinitive phrase in each ...
Q: What exactly is local storage on a computer, and how does it function?
A: As we say backbone ties our body together, same way Motherboard is the backbone of the computer, whi...
Q: Make a webpage about your hobbies or your pet. Make it presentable, informative and creative as much...
A: Make your first web page: Because each website is made up of individual internet sites, it's no surp...
Q: Complete the below code #include #include using namespace std; void main() { int num1, num2, resul...
A: The complete code is given as under :
Q: Discuss some applications of the data structure queue. Provide detailed description of each of these...
A: INTRODUCTION: A queue, like a stack, is a typical data structure that arranges things in sequential...
Q: Do you think you can live without int
A: Introduction: As far as we know, there are no attempts to end the internet, so you have no reason to...
Q: In this assignment you will compare the real-time performance of the built-in sort function in the S...
A: Bubble sort: Bubble sort seems to be a sorting algorithm in which two adjacent elements are compared...
Q: Give at least two responsibilities of a Notification Holder
A: Background: Developing a new product's concept is a critical step in the product launch process. Whe...
Q: /rite a function in Java that implements the following logic: We are having a party with amounts of ...
A: Logic:- if tea>=5 && candy>=5 return 1 else if tea>=2*candy || candy>=2*tea ret...
Q: How Do Amazon Rds, Dynamodb, and Redshift Differ from Each Other
A: Introduction: How Do Amazon Rds, Dynamodb, and Redshift Differ from Each Other
Q: What ethical and societal ramifications do artificial intelligence and robots have? Will having robo...
A: Introduction: Artificial intelligence is a branch of computer science that comprises the development...
Step by step
Solved in 2 steps
- What is the numeric value of each of the following expressions, as evaluated by the C# programming language? 2+5*3 9/4+10 10/3 2110 (51)*3 37/5 648 5+2*43*4 3*(2+5)/5 2852 19/2/2 28/(2+4)Python splitting code(Second picture) into as many functions as possible so that can run pytest for this program. How to put line "guess = input("\nEnter a letter or word:") and guess = guess.upper()" in def main(): part?C Programming Does the below code segment work? If not, why? fscanf(stdin, "%s", &arrStudentMajorArray);
- The last part of this code I need the "cans" to be a whole number. I don't know how to change it What I have right now below: #include <iostream>#include <cmath> // Note: Needed for math functions in part(3)#include <iomanip> // For setprecisionusing namespace std; int main(){double wallHeight;double wallWidth;double wallArea; cout << "Enter wall height (feet):" << endl;cin >> wallHeight; // FIXME (1): Prompt user to input wall's widthcout << "Enter wall width (feet):" << endl;cin >> wallWidth; // Calculate and output wall areawallArea = wallHeight * wallWidth; // FIXME (1): Calculate the wall's area cout << fixed << setprecision(2) << "Wall area: " << wallArea<< " square feet" << endl;// FIXME (1): Finish the output statement // FIXME (2): Calculate and output the amount of paint in gallons needed to//paint the wallcout << fixed << setprecision(2) << "Paint needed: " <<…Write a python program called hangman.py. This program will be a working hangman game. Your hangman game should be broken into appropriate functions, contain a main function, and do the following:1. The program should randomly select a word from the list: kangaroo, capybara, wombat, koala, wallaby, quokka, platypus, dingo, kookaburra2. Repeatedly prompt the user to guess a letter.3. Validate the input4. All guessed letters should be stored in a two-dimensional list. If the number of times a letter has been guessed is greater than 1, then the user should be notified that they have already guessed this letter and prompted to guess a different letter. The hangman won’t update (grow) if the same incorrect letter is guessed multiple times.5. The word should be printed where all correctly guessed letters are revealed, and all unguessed letters are replaced with underscores6. A hangman reflecting the number of incorrect guesses should be printed7. If all the letters in the word are guessed,…#Python Program-related question. So need the answer in python expressions. #Do not use the 'round' function. keep it simple #use sep='' function when needed to close space between $ sign and amount #Answer image of the program is attached which was answered by Bartleby but can't use it as we have not studied 'round' function yet. COSC 1336 –Programming Fundamentals IProgram 4 – Decision StructuresThe owners of the Annan Supermarket would like to have a program that computes theweekly gross pay of their employees. The user will enter an employee’s ID number, thehourly rate of pay, and the number of hours worked for the week. In addition, AnnanSupermarkets would like the program to compute the employee’s net pay and overtimepay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate.Net pay is Gross minus deductions. Assume that deductions are made up of income tax(at 10.5% of gross if the gross exceeds $600.00) and a $25 parking charge.The output should look like…
- Programming: C#(C SHARP) Use only 2 variables please and not too much advance code we havent yet tackle any arrays or while loops. Check photo:Python*** General Foo’s Last Chance Gas station sits on route 190 on the edge of Death Valley. There is no other gas station for 200 miles. You are to write a Python program to help drivers if they need gas. The program asks for user input:• Vehicle Name, any name is valid (e.g. Toyota, Mercedes, Ford, GM, Chrysler, Nissan, Kia, Honda, etc.)• Vehicle Type: valid types are C: Car , S: SUV or T: Truck (note lower case letters are also allowed, e.g. c, s, or t; all others are invalid). If a user enters incorrect type, a message to that effect should be printed and no other information printed• The capacity of the gas tank, in gallons• The indication of the gas gauge in percent (full=100, three-quarters full=75, and so on, empty=0) Assume that a car’s gas mileage is 32 miles per gallon, a SUV’s gas mileage is 25 miles per gallon and a truck’s mileage is 15 miles per gallon. Depending upon user input, your program prints a message to either put a minimum amount of gas in the vehicle or…*Python General Foo’s Last Chance Gas station sits on route 190 on the edge of Death Valley. There is no other gas station for 200 miles. You are to write a Python program to help drivers if they need gas. The program asks for user input:• Vehicle Name, any name is valid (e.g. Toyota, Mercedes, Ford, GM, Chrysler, Nissan, Kia, Honda, etc.)• Vehicle Type: valid types are C: Car , S: SUV or T: Truck (note lower case letters are also allowed, e.g. c, s, or t; all others are invalid). If a user enters incorrect type, a message to that effect should be printed and no other information printed• The capacity of the gas tank, in gallons• The indication of the gas gauge in percent (full=100, three-quarters full=75, and so on, empty=0) Assume that a car’s gas mileage is 32 miles per gallon, a SUV’s gas mileage is 25 miles per gallon and a truck’s mileage is 15 miles per gallon. Depending upon user input, your program prints a message to either put a minimum amount of gas in the vehicle or…
- Computer Science R programming Adjust your functions to take into account upper and lower case letters, as well as spaces. Bonus: can your functions also deal with special characters. Apply your first function to the variable x1 and then the second function to your output, so you can convert it back. x1 <- "Hello My Friend" x2 <- "This: Is, Comma: Horror!"Question 4 # Given a number, this function will compute the factorial # For example 4! = 1 x 2 x 3 x 4 = 24. Note that the value of 0! is 1. def get_factorial(number): """ what it takes? number to calculate its factorial what it does? given a number, find its factorial such as 5! = 20 Do not use a python built-in function - code it what it returns? factorial of a number 5! shoukld return 120 It will return integer """ # your code goes in here Test case for question 4 try: if get_factorial(5) == 120: score['question 4'] = 'pass' else: score['question 4'] = 'fail' except: score['question 4'] = 'fail' get_factorial(5)Many documents use a specific format for a person's name. How do I write a program whose input is: firstName middleName lastName and whose output is: lastName, firstInitial.middleInitial. Ex: If the input is: Pat Silly Doe the output is: Doe, P.S. If the input has the form: firstName lastName the output is: lastName, firstInitial. Ex: If the input is: Julia Clark the output is: Clark, J. In python code.