Output the users input, output the input squared and cubed, get a second user input into user num2 and out put the sim and product enter internet: 4 you entered:4 , 4 is squared by 16 and 4 cubed is 64 enter another integers:5 4+5 is 9 4*5 is 20
Q: ecution for each line using "call by need" an
A: Draw the run-time stack after the execution for each line using "call by need" and "call by name". A...
Q: Numerous engineering and scientific applications require finding solutions to a set of equations. Ex...
A: I give the code in Python along with output and code screenshot
Q: Consider the bandwidth of the line is 1.2 Mbps, packet size is 1 KB and round-trip time is 50 msec. ...
A: Ans: The bandwidth of the line = 1.2 Mbps = 1.2 * 106 bits per sec Packet size = 1 KB = 210 * 8 bits...
Q: What are the benefits of saving your browser history, and how long can you retain it?
A: Introduction: Web browsing history is a catalog of web pages visited by a user, including metadata s...
Q: Construct a Fibonacci number pattern that involves square roots. Both sides of the equation should b...
A: The Answer is
Q: QI Which of the following is the correct definition of Computer? *
A: Answer is "B" All of the mentioned.
Q: Please help me with A+B, A-B, A*B and A/B
A: figure 1 :
Q: Write a program that takes in a positive integer as input, and outputs a string of 1's and O's repre...
A: Use a while loop and we repeat in loop till number becomes 0
Q: 1. (a) 1 A) Design an algorithm that inputs two lists of numbers, A, and B, of lengths n and m re...
A: Given The answer is given below.
Q: sider the following class: blic class Sequence private ArrayList values; public Sequence() { values ...
A: Given Exercise 2: Consider the following class: public class Sequence private ArrayList<Integer&g...
Q: Computer Science Use delta rule to classify (1 ,1, -1,-1) and (-1 ,1, -1,-1) are members of class wi...
A: Introduction: Computer Science Use delta rule to classify (1 ,1, -1,-1) and (-1 ,1, -1,-1) are memb...
Q: PIC18F87J11 Do the following: a) Copy data 0xA to data memory location 0x400 b) Toggle the value in...
A: SUMMARY: - Hence, we discussed all the points.
Q: Explain any five assembler directives of 8086 microprocessor
A: 8085 microprocessor or the eighty eighty five microprocessor are the 8 bit microprocessor which are ...
Q: Define terms: in details PPTP VPNs L2TP VPNs SSL VPNs DTLS VPNs DMV VPN Alternative VNP Configurin...
A: Point-to-Point Tunneling Protocol, or PPTP, is a form of virtual private network (VPN) that is used ...
Q: I want to write a program in C to take capital cities from a text.txt file, and then order them alph...
A: I have provided the output and code below,please refer it : Please while executing your file name th...
Q: I have text called para , How I can extract first two character from each word (not the number) with...
A: Here I am attaching code and screenshot of the output:- import re txt = "para" x = re.findall("^...
Q: Discussion To
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: 10.1 (THE TIME CLASS) Design a class named Time. The class contains: · The data fields hour, minute,...
A: Given requirement, Design a class named Time. The class contains The data fields hour, minute, and ...
Q: 2.25 Let L be a regular language, let M be a DFA whose language is equal to L, and let p be the numb...
A:
Q: In Java how do you write the default constructor
A: Introduction: Here we are Asked how we can create a default constructor in JAVA.
Q: Because even though we may not understand them, algorithms can help us solve problems.
A: Introduction: A pattern for rules for doing calculations is an algorithm, which is short for an algo...
Q: Justifying network devices used in my LAN design Fully justify your choice of network devices with...
A: the answer is given below:-
Q: Which conditional jump instruction is the JNGE instruction's equivalent?
A: POP and PUSH In stack, two operations are possible. PUSH: In the case of a stack, insertion is refer...
Q: P -> QP | Rb Q -> ( P ) | a R -> Qb a. Make a GOTO operation transition diagram (Canonical Set) ...
A: Given grammar P -> QP | Rb Q -> ( P ) | a R -> Qb a. Make a GOTO operation transition diagr...
Q: 2. Give a context-free grammar that generates the following language: k > 2, each x; E {a, b}*, and ...
A: S -> A | A#C | BB -> aB | bB | #B | #ACA -> aAa | bAb | #C -> aC | bC | #B | epsilon
Q: Dimensions of information literacy in academic library?
A: Given: What are the different aspects of information literacy in an academic library?
Q: ftware archite
A: Software Architecture: Simply said, software architecture is the way a system is organized. This org...
Q: Write down the cardinal polynomials in the Lagrange interpolation polynomial for the points x ...
A: According to the information given:= We have to write down the cardinal polynomials in the Lagrange ...
Q: Convert the following machine code to its corresponding MIPS assembly instruction in the form or in ...
A: Given Hexadecimal form = AC45FFF8 So, Binary Form after conversion = 1010 1100 0100 0101 1111 1...
Q: An expert system differs from a database program in that only an expert system: (A) Contains declar...
A: Please find the answer below
Q: Write a function in Java. Track basic input the function should ask for input add a Group add a m...
A: I give the code in java along with output and code screenshot
Q: What is 0.00058602547 in mantissa x base ^ exponent notation, to 7 significant digits using the ties...
A: Step 1 according to the information given:- We have to find out the mantissa x base ^ exponent to 7 ...
Q: Explain to me how to implement a generic linked list from scratch (Java) step by step (note: do not ...
A: Linked list : It is an ordered set of data elements, each containing a link to next link. Steps of ...
Q: In what format does the Scroll Lock Virtual Key Symbol appear on the screen?
A: Scroll lock is a key which is located on the keyboard and it is nearer to the pause key. This key wa...
Q: A3 In early 2018 Samsung began the NPD process for the Galaxy S11, with the goal of taking market sh...
A: Between stages, a gate is used to determine whether the team should move to the next stage or an ite...
Q: a=rea zatemaareiyat at Dremier Finenciel Serica yeu ere getting teen station You repert te Mary, the...
A: Please check the step 2 for solution
Q: You are to write a simple ANSI C program to input a set of vehicle values from a text file and print...
A: CODE-- Vehicle.java: class Vehicle { private int vin; private String make; private String m...
Q: Discuss the exact algorithm for Subset sum problem
A: Here is the detailed explanation of the algorithm.
Q: Which Big-O set will this algorithm belong to? In other words, determine the complexity of this algo...
A: Before explaining this algorithm I want to explain the time complexity and big o notation. Time Comp...
Q: Q1. Eight LEDS are connected to P3. Write an 8051 C program that shows the count from FF down to 0 o...
A: Calculation for delay : assuming 8051 clock frequency = 12MHZ thus 1 machine cycle time is = (1/12MH...
Q: b) For the following circuits, find a Boolean expression and construct the truth table A B
A:
Q: Linux Q6: What does the following command generate? g++ myapp.c a) myapp b) myapp.exe c) a.out d) No...
A: g++ myapp.c generate myapp.exe file.
Q: Write a java program to perform the following operations using method overloading i)Get two strings ...
A: Method overloading is a form of polymorphism in OOP.
Q: With the lessons today, were there changes in the Internet?
A: The answer is given below:-
Q: A recursive definition for exponentiation on the non-negative integers is partially giver expt(k, 0)...
A:
Q: Given a line of text as input, output the number of characters excluding spaces, periods, exclamatio...
A: txt = input("Enter the text: ") #Taking the input text from usercount=0 #counter variable to count...
Q: Using Common Lisp, complete the following programming exercises: Write a function that computes the ...
A: Here is the detailed explanation of the program
Q: In this two vb.net program write in pseudocode. Thankyou Module Module1 Sub Main() For j...
A: NOTE: As per our company guidelines, we are supposed to solve the first question in multiple questio...
Q: Cloud computing is now widely used in many enterprises' information systems. Discuss cloud computing...
A: Find the answer given as below :
Output the users input, output the input squared and cubed, get a second user input into user num2 and out put the sim and product
enter internet: 4
you entered:4 , 4 is squared by 16 and 4 cubed is 64 enter another integers:5
4+5 is 9
4*5 is 20
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- In Chapter 4, you created a program that generates a random number, allows a user to guess it, and displays a message indicating whether the guess is too low, too high, or correct. Now, create a modified program called GuessingGame2 in which the user can continue to enter values until the correct guess is made. After the user guesses correctly, display the number of guesses made. Recall that you can generate a random number whose value is at least min and less than max using the following statements: Random ranNumber = new Random(); int randomNumber; randomNumber = ranNumber.Next(min, max);عنوان الدرس الموافق Egi-write a python Programatoj Calculate speed of a car if speed is between 50 to 80 print NORAMAL SPEEDif Speed is between 8 to lo print MEDIUM SPEED If Speed is between.i 101:t0 120, print High speedif speed makethan 120-print PAy FINE, Otherwise print very slow D=int(input(*Exter D)) i)tac T=int(inputCEnter T") S 200 T0 2a speed 50 ==28 SpeedLAB 2 - Arithmetic Expression %3 Given a quadratic equation in the form: ax² + bx + c = 0 where a, b and c are coefficients. Write a modular (i.e., with functions) C++ program to create an educational application which solves for the roots of a quadratic equation with user-entered values of a, b and c. Save your source file as LAB3.cpp. Neatly write the complete quadratic equation (as per user- entered coefficients) and its solutions into an output file named "roots.txt". Hint: Recall high school's math for the relevant arithmetic expressions to be used.
- Print "user_num1 is negative." if user_num1 is less than 0. End with newline. Assign user_num2 with 1 if user_num2 is greater than 12. Otherwise, print "user_num2 is less than or equal to 12.". End with newline. My code: user_num1 = int(input())user_num2 = int(input()) if user_num1 < 0: print("user_num1 is negative.") if user_num2 > 12: user_num2 == 1 else: print("user_num2 is less than or equal to 12.") print('user_num2 is', user_num2) When the input is 0 and 13 my output for user_num2 is 13 and it should be 1. I don't know what I'm doing wrong.---a ene AAAAAA AAAAA AS0S ogla.com/forms/d/taroeXibwba7q370p egffyooknHKTDR 4Oljedit Short answer text Q1:- File upload a/Write a program that reads from the user a set of numbers, and first, it has to check how many integer numbers and then calculate the total numbers of positive integers. Note: - The program has to print The value of integer numbers is The value of positive integers isPython only 1. Define printGrid Use def to define printGrid Use any kind of loop Within the definition of printGrid, use any kind of loop in at least one place. Use any kind of loop Within the loop within the definition of printGrid, use any kind of loop in at least one place. it should look like this when called ; printGrid(['abcd','efgh','ijkl']) Prints: a b c d e f g h i j k l 2. Define getColumns Use def to define getColumns Use any kind of loop Within the definition of getColumns, use any kind of loop in at least one place. Use a return statement Within the definition of getColumns, use return _ in at least one place. it should look like this when called ; getColumns(['abcd','efgh','ijkl']) Out[]: ['aei', 'bfj', 'cgk', 'dhl']
- 2 NewestMultiply.py - This program prints the numbers 0 through 10 along m Summary these values multiplied by 2 and by 10. 4 Input: None. In this lab, you work with the same Python program you 5 Output: Prints the numbers 0 through 10 along with their values multipli worked with in Labs 5-1 and 5-3. As in those earlier labs, 6 2 and by 10. the completed program should print the numbers 0 8 headl = "Number: " through 10, along with their values multiplied by 2 and by 9 head2 = "Multiplied by 2: " 10 head3 = "Multiplied by 10: 10. However, in this lab you should accomplish this using a while loop with a break statement. 11 NUM_LOOPS = 10 # Constant used to control loop. 12 Instructions 13 print("0 through 10 multiplied by 2 and by 10" + "\n") 14 15 # Write while loop 1. Make sure that the file NewestMultiply.py is selected 16 and open. 2. Write a while loop that uses the loop control variable to take on the values 0 through 10 and breaks when the loop control exceeds 10. 3. In the body…Write a program that will perform one of the following operations:1. Print the Fibonacci series from 0 to N2. Print the Prime numbers from 0 to N3. Print the Factorial of the numbers from 0 to NInclude at least the following functions in your program:• menu: a function to display the operations listed aboveo Use a switch-statement to process the user’s choice• fibonacci: a function that will print the Fibonacci series from 0 to N o Sample Input: Suppose N = 5o Sample Output: 0 1 1 2 3 5 • primeNumbers: a function that will print the prime numbers from 0 to N o Sample Input: Suppose N = 5o Sample Output: 2 3 5 • factorial: a function that will print the factorials of the numbers from 0 to N o Sample Input: Suppose N = 5o Sample Output: 0! 1! 2! 3! 4! 5! = 1 1 2 6 24 120 Include a loop that will allow the user to repeat the whole program if he wants to. PLEASE add "//" every code wirtten to explain its use in the program. thank you! do the following conditions set and DO IT IN C++PHP ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits. *With user input ($pinNumbers), create a function that takes a string and returns true if the PIN is valid and false if it's not. Examples validatePIN("$1234") ➞ true validatePIN("12345") ➞ false validatePIN("a234") ➞ false validatePIN("") ➞ false Notes ● Some test cases contain special characters. ● Empty strings must return false.
- :Binary-Decimal / Decimal Binary . Between 0 and 255 a number will be decided randomly by computer. Then asks to user 3 times a random digit of binary value of the that number. If user enters wrong number for a digit program will select another random number and ask random times random digit. For example: Computer selected number as 163 ( Which is 10100011) What is the digit 2 (question 1/3) :User enter 1 CorrectWhat is the digit 4 (question 2/3) : User enter 0 CorrectWhat is the digit 7 (question 3/3) : User enter 0 CorrectUser finished the quest with 3 input .ZAIN IQ .all zain IQ الدراسة - الشعبة : * الصباحيه / هاء Write and test the following average () function that returns the average of up to three negative numbers: double average (int x1, float x2 and float ?x 3) * إضافة ملف إرسال عدم إرسال كلمات المرور عبر نماذج Go ogle مطلقا۔ لم يتم إنشاء هذا المحتوي ولا اعتماده من قبل Go ogle. الإبلاغ عن إساءة الاستخدام - شروط الخدمة - سياسة الخصوصية Google &ilajPython Code: Oj is a cruel but wise student of his class. Because of his bad habits, one day his math teacher got angry and challenged him to do a few maths. Yes, being a high school student solved all the questions from the math, matrics and maths topics but I could not solve a single question. The question asked to find the sum of all integers is from 1 to N so that 2i + 1 is divided by 3. You being Oj's friend don't want to make her feel ashamed and she volunteered to help. Input 1 2 Output 1