Evaluate the following arithmetic expressions. a. 32 / 2 + 65 - 2 * 87 * 301 b. 55 + 200 / 43 * 2.6 * 77 + 99
Q: a) f(x) - x{x-2) (x-1)(x+1) b) f(x) =-(x-2) (x-(*+1) O f(x) = -x{x-1)(x+)(x-2) ) flx) - (1-x)}(x+1)…
A: (a.) f(x) = x(x-2)2(x-1)(x+1) (b.) f(x) = -x(x-2)2(x-1)(x+1) (c.) f(x) = -x(x-1)(x+1)(x-2)2…
Q: Question 40 What will the infix expression X+Y/Z become in postfix form? O XY +Z/ O XYZ+/ O XYZI+ O…
A: Infix expression: X+Y/Z
Q: The Ministry of Home Affairs and Immigration would like to introduce an automated id number and…
A: As no programming language mentioned, using python. Get the first name, dob and five-digit…
Q: Write a VB.NET program to find sum of all natural numbers between 1 to N. 2. Write a VB.NET program…
A: Write a VB.NET program to find sum of all natural numbers between 1 to N. 2. Write a VB.NET program…
Q: python- the letter e has a hexadecimal val. of 0x65. select the correct statement to print the…
A: Given To print the bytes literal value 'e'.
Q: Left shifting an unsigned int by 1 bit is equivalent to multiplying the value by 2. Write function…
A: Introduction : Left shifting an unsigned int by 1 bit is equivalent to multiplying the value by 2.…
Q: I (x + xy + zx) dx dy dz 0<x<1 0<y<1 1<z<2 Select one: O a. 0.5 b. 2/3 C. non of them
A: Triple integrals are the analog of double integrals for three dimensions.
Q: 51. What is the result of the snippet of code shown below if x=1?x<<2 a. 8 b. 1 c. 2
A: Initially x is storing 1 << refers to left shift operator
Q: 3. Write a program that calculates the root mean square value (rms) of the real numbers those will…
A: As the language is not given here, So I am answering this question using C++ language: We know that…
Q: Find the value of A for the following: A = (5 + 2* 3+ (( 3-2)* 7)+ -9) /2.
A: Division and Multiplication has almost same precedence Addition and Subtraction has almost same…
Q: Write the following mathematical expression in C++. a. z = Vx? + y² + ]x – y| b. a = k + N-1 N
A: Kindly Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: 1- convert the following codes to assembly language: a) If (varl bl) OR (bl > cl) AX = 1;
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Choose the correct answer int a = 11, b = 22, c = 33, d=103; %3D d = d - ((a * a +b - c) + (C - a) *…
A: In the above program code syntax error is occured. This is because, syntax errors are errors where…
Q: 2. Write a Python program to print all uppercase alphabets along with their respective ASCII values…
A: I give the code in Python along with output and code screenshot
Q: 5. F(A, B,C) = A'B +B'C + A'B'C. Convert F as a product of max terms algebraically using the…
A: In this question, we have given an expression F(A,B,C)= A'B +B'C +A'B'C. First, we will simplify it…
Q: the odd numbers are the numbers in the sequence 1,3,5,7,9, .... Define the sequence of S-numbers as…
A: The above question is solved in step 2 :-
Q: The negation of the statement Vx:x² +9 100 O b. Ос. O d. (Vx:x² +9 <100) Эх:х2+9 ≤ 100 3x:x²+9≥ 100
A:
Q: use Keil_v5 3. Assume r0- 0xBBFFABCD, r1 - 0x00000014. Write a program (including the 2 steps below)…
A: Assembly language <code> // ro = 0xBBFFABCD, r1 = 0x00000014 // ro &lt;-…
Q: What is output (printed) by the program (pseudocode) shown below. Assuming pass-by-value-result…
A: In pass by value, address/reference is not passed in function argument. Thus any change in function…
Q: 1- convert the following codes to assembly language: a) If (var1 bl) OR (bl > cl) AX = 1;
A: a) main: # push rbp mov rbp, rsp…
Q: a9 = 9, a
A:
Q: Power (xY): Complete the code below to compute for p = x° (where x and y are byte-size variables).…
A: We need to complete the given assembly code to compute power.
Q: ceil(11.056) = ? Select one: a. 12.056 b. O b. 11.0 O c. 12.0 O d. 11.056
A: 1. Answer c.12.0 2. Answer a. math.h
Q: a) f(x) = x{x-2) (x-)(x+1} b) f(x) =-(x-2) {x-1)(x+1) ) f(x) =-x{x-1){x+)(x- 2}' a) f(x)…
A: ALGORITHM:- 1. Take input for the value of x. 2. Calculate the function values using x. 3. Print the…
Q: An Armstrong number is a number such that the sum ! of its digits raised to the third power is equal…
A: Armstrong Number : A number is said to be a Armstrong if its sum of its cube is…
Q: (C++) 1. Request two different integers, a and b, from the console. Request a third integer c, from…
A: C++ program to find the possible common factor of two user-entered number. Declare three integer…
Q: Wait in Binary semaphore has ______values a. 2 b. 1 c. 10 . d. N
A: Binary semaphore means it can have only two values 0 or 1. Suppose the initial value of binary…
Q: (e) F(X,Y,Z) = X'Y'Z' + X'YZ + XY'Z + XYZ (f) F(X,Y,Z) = A(0, 2, 5, 7) (g) F(X,Y,Z) = XY'Z + X' + Z…
A: As per guidelines, we are supposed to answer only 3 sub-parts. Kindly repost other parts as a…
Q: 1- convert the following codes to assembly language: a) If (var1 bl) OR (bl > cl) AX = 1; 2- Write…
A: a) main: # push rbp mov rbp, rsp…
Q: G = ((S, A, B), {0, 1), S, P), P: S - OS|1A, A - OA|1B, B OBIA, then 1100 e L(G). Select one: O True…
A: Defined the given statement as true or false
Q: (c++) int x = 0, y = 10, z = -5; while ( z x ) { y + = z; x…
A: Given C++ program int x = 0, y = 10, z = -5; while ( z < x || y > x ) { y += z;…
Q: 1- convert the following codes to assembly language: a) If (var1 bl) OR (bl > cl) AX = 1;
A: a) main: # push rbp mov rbp, rsp…
Q: Write a program to count the negative numbers and the post. numbers stored at memory location start…
A: I have answered this question in step 2.
Q: 1. Write a shell script using else if to read input X, Y and calculate Z based on the following…
A: Complete answer in shell programming is given below:
Q: 2. Write a VB.NET program to print multiplication table of any number
A: In Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next,…
Q: Given the following code segment: char a = ‘H’; char *pt = &a; printf (“%d”, *pt); what is the…
A: Answer: 72 Explanation: char a = 'H'; This line stores the ASCII value of H to the variable a. ASCII…
Q: Discuss briefly what is wrong with the program block below. 101 if ( a != b) 102 { a…
A: The syntax for 'if-else' statement is: if { Statements; } else { Statements; } You can skip the…
Q: i=1 while (i<=10) : i+=2 if (i=-5) or (183=30): continue print (i) i--1 2, 3, 4, 5, 6, 7, 8, 9, 10 O…
A: # as per guidelines i can able to answer only one question #given code i=1 while(i<=10):…
Q: writing a C code that parse arguments in the command line to convert farenhiet to celsius.…
A: C program to convert Fahrenheit into Celsius
Q: Start i = 2 FALSE i<= 6? TRUE i=i+2 print i + 1 Stop Figure 1 О 3,4, 7 i need ans very fast О 3,6, 7…
A: public class Main{ public static void main(String[] args) { for(int i=2;i<=6;i=i+2) {…
Q: Find the value by writing each argument using the numbers 2 or 3and using the values log(a)2=0.4307…
A: Below i have calculated:
Q: a. Suppose the user enters a = 5, b = 10, and c = -30, what is the expected value of s? => b. Which…
A: a. Suppose the user enters a = 5, b = 10, and c = -30, what is the expected value of s? -56
Q: I- write a program to read three bits x, y, z, then compute: w(x and y) or z w - not (x or y) and z…
A: Solution: Given,
Q: Fill in the blanks: B5, C6, N7, O8, ___ A. S9 B. P9 C. H9 D. F9
A: Here is the answer with explanation:-
Q: Your task is to create a program that can achieve the above requirements when given the students…
A: public class NUST { public static void main(String[] args) { if (args.length < 2) {…
Q: Write a program to set b0,b1, reset b2,b3 and complement b6,b7 for the content of memory location…
A: ; set b0,b1.byte 0xC0 ; set b0,b1; reset b2,b3.byte 0xC2 ; reset b2,b3; complement b6,b7 .byte 0xC6…
Q: 5. Draw or describe the following Teuring Machines (TMs) as required: b. Draw a TM that compute the…
A: b. Draw a TM that compute the addition of two binary numbers, for example the input string on tape…
Q: What is the value of the following expression: 8/4/2, 8/(4/2) a. (1.0, 4.0) b. (1.0, 1.0) c. (4.0.…
A: Below is the detailed and simplified answer to the above listed MCQ problem:
Q: q2) Choose the correct result of the following given code. m = (lambda x, y: x if x < y else y)…
A: Python lambda functions: Python lambda are anonymous functions that have the following syntax lambda…
Q: 42. Consider the expression given below. The value of X is:X = 2+9*((3*12)-8)/10 a.…
A: Please see the next step for solution.
Step by step
Solved in 2 steps with 1 images
- Assume these definitions:int n1 = 4, n2 = 5, n3 = 30;double d1 = 3.0, d2 = 10.0;Please enter the numeric result for each of these C++ arithmetic operations:a. n2 * d1 [n1]b. n3 / n2 [n2]c. n1 / n2 [n3](c++) int x = 0, y = 10, z = -5; while ( z < x || y > x ) { y + = z; x -- ; z ++; } x = y = z =1- Use bitwise operators to compute division and multiplication by a number that is power of 2. For example: bitwise_divide/multiply(num, 8/16/32/2/4/128) should use only bitwise operators to compute result.2- Write code that checks if a number is odd or even using bitwise operators.3- Write a program that checks if a number is positive/negative/zero.4- Write a function that returns toggle case of a string using the bitwise operators in place
- 22. The following mathematical operations are supported in "Normal” mode: 22.1. Addition 22.2. Subtraction 22.3. Multiplication 22.4. Division3. Take three numbers from the user and print the greatest number. Test DataInput the 1st number: 25 Input the 2nd number: 78 Input the 3rd number: 87Expected Output :The greatest: 87ARGUMENT TWO Valid ☐ Invalid ☐ Some X is Z Some Y is not Z ∴ Some Y is X ARGUMENT THREE Valid ☐ Invalid ☐ All C is G All C is L ∴ All L is G ARGUMENT FOUR Valid ☐ Invalid ☐ No Z is L All O is L ∴ No O is a Z ARGUMENT FIVE Valid ☐ ï Invalid ☐ No B is A Some R is not B ∴ Some R is not A ARGUMENT SIX Valid ☐ ï Invalid ☐ All F is M Some S is M ∴ Some S is F
- ANSWER ONLY NO. 4 & 5 1. Provide a single C statement that would ask 3 integers from the user through keyboard input and save each value into the variables a, b, and c. printf("Enter 3 integers : "); scanf("%d%d%d",&a,&b,&c); 2. Provide a single C statement that would ask 3 floating-point numbers from the user through keyboard input and save each value into the variables d, e, and f. printf("Enter 3 floating numbers: "); scanf("%f%f%f",&d,&e,&f); 3. Provide a C statement that would ask a character from the user through keyboard input and save the value into the variable g. printf("Enter 1 character: "); scanf("%c",&g); 4. Provide a C statement that would ask a string of length 5 from the user through keyboard input and save the value into the string variable h. 5. Insert the following C statements into the code above. And supposing the user typed in WHATCHAMACALLIT. What are the outputs of the second AND 3rd printfs? Explain why the printouts are…Python Programming- Computer-Assisted Instruction Part 1: Computer-Assisted Instruction (CAI) refers to the use of computers in education. Write a script to help an elementary school student learn multiplication. Create a function that randomly generates and returns a tuple of two positive one-digit integers. Use that function's result in your script to prompt the user with a question, such as: How much is 6 times 7? For a correct answer, display the message "Very good!" and ask another multiplication question. For an incorrect answer, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. Part 2: Varying the computer's responses can help hold the student's attention. Modify the program so that various comments are displayed for each answer. Possible responses to a correct answer should include 'Very good!' , 'Nice work!' and 'Keep up the good work!' Possible responses to an incorrect answer shojld…a b c b s e f t w e f g r t y u write jave code
- Based on the code below, intScores(3, 1) is initialized to ____. Dim intScores(,) As Integer = {{75, 90}, {9, 25}, {23, 56}, {6, 12}} a. 6 b. 56 c. 23 d. 12Assume IM = 300 picoseconds . TALU = 150 picoseconds , TAdder = 150 picoseconds , TReg 50 picoseconds Add Axx Mov [ si ] , Ax amp Bt . Bx lodsb And Ax OFFFF end what is the maximum frequency at which of the following code can run atEvaluate the following arithmetic expressions. a. 5 / 2 + 4 - 2 * 7 % 3 b. 5.0 / 2 + 4 - 2 * 7 % 3 c. 17 - 5 * 4 / 10 * 5 / 2