C CODE
Q: LAB WORK How can I check whether the user entered string is palindrome or not? If it is a palindrome...
A: Given: JAVA program to check whether the user entered string is palindrome or not.
Q: Which component is in charge of controlling the computer's other components?
A:
Q: When a buffer is used, what happens to the data it contains?
A: An information technology term for a section of memory used to temporarily hold data while it is tra...
Q: d by more than one person concurrently. This is an example of: Options: A separation of d duties. B ...
A: given - A company requires a task to be carried by more than one person concurrently. This is an e...
Q: 2. Using the binary search tree algorithms discussed in class and alphabetical order: A. Draw the bi...
A: (A)- First we will be having an empty BST. We wil add Matt, it will become root. Now we wil add Zeke...
Q: The deployment of firewall equipment and software is another essential technique of regulating and s...
A: INTRO The question is about firewall and here is the solution in the next step.
Q: Computer Science Program in C++ or Java Simple simulation to estimate your likelihood of winning in ...
A: check further steps for the answer :
Q: Explain what a webcam is. What are some pros and disadvantages?
A: A webcam is a kind of digital video equipment that is often integrated into a computer, Its primary ...
Q: What exactly is optimum performance in computer terms?
A: The Answer is in step2
Q: grayscale image in term of bit depth, colour model being used and allowable colours.
A: given - Theoretically, describe how colour image differs from grayscale image in term of bit depth, ...
Q: Q1/ A- Express the following numbers in decimal? a- (1234567)8 b- (1A.5)16 c- (10110.0101)2 B- Use t...
A: The technique used to work and represent number in computer terms is called as number system. The mo...
Q: Program71.java Write a program that creates a 32-element array of random integers all from 1 to 100...
A: Solution
Q: Hybrid Cloud Storage is a type of storage that can be used with both public and
A: The answer is
Q: What is primary memory and secondary memory?
A: Given To know about the primary memory and secondary memory.
Q: What is the difference between a central processing unit (CPU) and a system unit (SPU)?
A: Introduction: Hardware: In computer science, hardware refers to the various components that a user o...
Q: Convert -123.075 to the floating-point binary representation.
A: The given decimal number is = -123.075 The equivalent binary number is 1111011.00 The above number c...
Q: A:Ao and BiBo are 2-bit binary numbers, output binary number Y3Y2Y Yo (LSB) equals to AAo * B.Bo + B...
A: According to the information given:- We have to design logic circuit using decoder.
Q: Describe characters and strings in java.
A: The answer is given below:-
Q: Write a Java Program to Find Area of Square, Rectangle and Circle using constructor Overloading.
A: Constructors have same name of the class but with number of arguments. Constructors can be overloade...
Q: Convert the expression F = A + B'C to standard SOP form. О АВС + АВС + АВС + АВ'С + A'вс АВС + АВС +...
A: SOP or Standard Sum of products form. In the SOP form, all literals are not supposed to be there in ...
Q: Part III: Combinational Logic Design Question Given F = Im (1, 2, 6, 7) a) Write the corresponding t...
A:
Q: How many trees are there with n vertices that are a simple path?
A: When there are two or more nodes connected with each without forming a cycle is know as tree. There ...
Q: This is a tic tac toe program i made. Help me debug it. This is in c programming. Here is the code:...
A: The game is to be played between two people. One of the player chooses ‘O’ and the other ‘X’ to mar...
Q: In computer science illuminated contains various predictions for the future of computing. Which one ...
A: Introduction:- Computer science is the branch of science which is related to the computer this plays...
Q: Exercise 1: Ask for a birthday, a favorite gift, and their dream job is and display that information...
A: Since programming language was not mentioned so, I chosen PYTHON . I have provided PYTHON CODE ...
Q: Create a view called gl_stdV1 that returns the required data • Create an anonymous block that: o A...
A: Step 1 The answer is given in the below step.
Q: Review Qu Multiple Choice 1. A group of statements that exist within a program for the purpose of pe...
A: Find the answers given as below : We are supposed to answer only first three MCQs repost other MCQs ...
Q: Describe the number of ways we can make a field required in the salesforce. Please just provide the ...
A: Custom field is the universally required field. A value has to be there and is must when the record ...
Q: 2. Suppose you want to interchange the values stored in memory cells 2 and 3. What is wrong with the...
A: : Memory Cell The memory cell is the major structure block of PC memory. It is an electronic circui...
Q: Consider he oloin gagh whch s te lstethon o he Enaryton of cd mesags. The encryphon can be done by p...
A: Hey champ you solution is ready Please check the step 2 for the solution
Q: MATHLAB, please write a script finding the roots of y=sin(10x) + cos(3x) from 0 to 20
A: We need to define the given function and find the root using bisection method
Q: Crate Student class with the bellow information and create three objects of this class in main funct...
A: C++ is a compiled language which follow the concept of oops to make projects. It is used on multiple...
Q: When configuring PPP authentication, you have the option of using PAP or CHAP. Which is the most sec...
A: Your answer is given below
Q: b. Design and reflect on a suitable pipeline technique using which time taken for executing all 3 pr...
A: It is an activity of collecting instructions with the help of processor with pipeline. This would le...
Q: Cryptography involves five important concepts, integrity, confidentiality, authentication, non-repud...
A: ANSWER:-
Q: how can transport matrix
A: The transpose of a matrix is found byinterchanging its rows into columns or columns into rows. The t...
Q: etween
A: 32-bit processorIt is a CPU architecture type capable of transferring 32 bits of data. It refers to ...
Q: Gilbert, Stephen: Sphere Calculator Your name Same length as title Enter the radius of the sphere: 8...
A: C++ Code to calculate volume and surface area of sphere #include <iostream> using namespace st...
Q: QUESTION Using basic gates ONLY, simplify and convert the circuit below. Show all your workings. D-D
A:
Q: In terms of the CE signal, what is the difference between single-byte and burst modes?
A: Difference between single-byte and burst modes are as follows:
Q: Java
A: In Java, we can create our own exceptions by extending Exception class that belongs to java.lang pac...
Q: Suppose a color monitor has a 1600x900 frame size and uses 8 bits for each of the three primary colo...
A:
Q: Individual visual components or dots, known as_, make up monitors.
A: Introduction: Display Devices: Display devices are the output devices used in computer systems to di...
Q: 3- give the difference between who and whos Your answer
A: differerence between who and who's
Q: ing statements are true about the Rapid Application Development (RAD) and the waterfall methods of t...
A: ANS- 1- In SDLC we have 8 models in each one of the eight waterfall is the older one. 2- Only wate...
Q: How do a computer's keyboard, mouse, and hard drive work?
A: INTRODUCTION: Computers are electronic devices that may be used for various tasks. They frequently i...
Q: What exactly is MIPS?
A: MIPS stands for Million instructions per second. It measures the raw speed of a computer's processo...
Q: 2. Write a JAVASCRIPT program to print natural numbers from 1 to 100 in the output and print only 5 ...
A: Write a JAVASCRIPT program to print natural numbers from 1 to 100 in the output and print only 5 num...
Q: Who did Mark Dean tie the knot with
A: Introduction: Mark Dean, a computer scientist, and engineer assisted IBM in developing various groun...
Q: In which modulatio technique is bit rate equal to baud rate? a. ASK b. BPSK c. all of the choices...
A: option D FSK, modulation technique is bit rate equal to baud rate as it generally uses two different...
C CODE
3.22 LAB: Remove gray from RGB Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is: 130 50 130 the output is: 80 0 80 Find the smallest value, and then subtract it from all three values, thus removing the gray.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- (Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point numbers with random numbers that have been scaled to the range 1 to 100. Then determine and display the number of random numbers having values between 1 and 50 and the number having values greater than 50. What do you expect the output counts to be?code in java pls Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is: 130 50 130 the output is: 80 0 80 Find the smallest value, and then subtract it from all three values, thus removing the gray.Q_4.*. A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers. Given a string s, return true if it is a palindrome, or false otherwise. Example 1: Input: s = "A man, a plan, a canal: Panama" Output: true Explanation: "amanaplanacanalpanama" is a palindrome. Example 2: Input: s = "race a car" Output: false Explanation: "raceacar" is not a palindrome..
- In CORAL LANGUAGE please and thank you! Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is: 130 50 130 the output is: 80 0 80 Hint: Find the smallest value, and then subtract it from all three values, thus removing the gray.(C++) A robot is initially located at position (0, 0) in a grid [−5, 5] × [−5, 5]. The robot can move randomly in any of the directions: up, down, left, right. For each move, print the direction of the move and the current position of the robot. If the robot makes a circle, which means it moves back to the original place, print “Back to the origin!” to the console and stop the program. If it reaches the boundary of the grid, print “Hit the boundary!” to the console and stop the program. A successful run of your code may look like: Down (0,-1) Down (0,-2) Up (0,-1) Left (-1,-1) Left (-2,-1) Up (-2,0) Left (-3,0) Left (-4,0) Left (-5,0) Hit the boundary! or Left (-1,0) Down (-1,-1) Right (0,-1) Up (0,0) Back to the origin!Let A = {a, b, c} and B = {u, v}. Write a. A × B b. B × A
- 6.38 LAB: Convert to binary - methods (JAVA) Write a program in java that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is: As long as x is greater than 0 Output x % 2 (remainder is either 0 or 1) x = x / 2 Note: The above algorithm outputs the 0's and 1's in reverse order. You will need to write a second function to reverse the string. Ex: If the input is: 6 the output is: 110 The program must define and call the following two methods. Define a method named intToReverseBinary() that takes an int as a parameter and returns a string of 1's and 0's representing the integer in binary (in reverse). Define a method named stringReverse() that takes a string as a parameter and returns a string representing the input string in reverse. public static String intToReverseBinary(int integerValue)public static String stringReverse(String inputString) Code starts here: import java.util.Scanner; public…for my python class I am to write a program to modify immages. the image format being used is a PPM. the PPM image format is encoded in human readable plan text. PPM image has two parts (1. header and 2. body PPM BodyBelow the header is the body of the PPM file. Each pixel has a red,green, and blue value as indicated by an integer number between 0 and255. For example, the pixel with a RGB value of (255, 0, 0) representsthe color Red.Example PPM ImageDownload the PPM image of the NY sky line. You can open theimage with a PPM image reader software such as Ifranview. The imagefile can also be opened as plain text in a text editor, which allows us toedit the image.Tasks:Write a program to modify a PPM image in the following ways:1. Negate the colors in the image2. Apply a high contrast to the image3. Apply a gray scale to the image4. Remove a primary color (red, green, blue) from the imageYour program should follow the steps below:1. Prompt the user to enter the input PPM file name, the…[#165] Adding vectors |\vec{\textbf{A}}| = |\vec{\textbf{B}}| = |\vec{\textbf{C}}|∣A∣=∣B∣=∣C∣. Further, \vec{\textbf{A}} + \vec{\textbf{B}} + \vec{\textbf{C}} = 0A+B+C=0. What is the angle between \vec{\textbf{A}}A and \vec{\textbf{B}}B ?
- C programming( I have asked this in C programming not C++. I have gotten this in C++ I want it in C programming) The field of astronomy has been significantly advanced through the use of computer technology. Algorithms can automatically survey digital images of the night sky, looking for new patterns. For this problem, you should write such an analysis program which counts the number of stars visible in an bitmap image. An image consists of pixels, and each pixel is either black or white (represented by the characters # and -, respectively). All black pixels are considered to be part of the sky, and each white pixel is considered to be part of a star. White pixels that are adjacent vertically or horizontally are part of the same star. Input Each test case begins with a line containing a pair of integers 1≤m, n≤100. This is followed by mm lines, each of which contains exactly nn pixels. Input contains at least one and at most 50 test cases, and input ends at the end of file. Output…10. Examine the following code segment. What will be printed? If there are any errors indicate the nature of the error. int a[9] = { 1, 12, 3, 14, 25, 16, 7, 8, 9 }; int *ptr ; ptr = & a[ 2 ] ; for( i = 1; i <= 5; i = i + 2) cout << a[i] << *( ptr + i ); cout << ” ” << a[0] << ” ” << *ptr << ” ” << *ptr - 1 << ” ” << *(ptr - 2));C++ - When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by subtracting the smallest value from all the values. The input begins with an integer indicating the number of integers that follow. Ex: If the input is: 5 30 50 10 70 65 the output is: 20 40 0 60 55 The 5 indicates that there are five values in the list, namely 30, 50, 10, 70, and 65. 10 is the smallest value in the list, so is subtracted from each value in the list. For coding simplicity, follow every output value by a space, including the last one.