A Circle and Two Squares Imagine a circle and two squares: a smaller and a bigger one. For the smaller one, the circle is a circumcircle and for the bigger one, an incircle. Create a function, that takes an integer (radius of the circle) and returns the difference of the areas of the two squares. Examples square areas difference (5) → 50
Q: ime you are part of the IEEE committee that will revise the IEE task of modeling communication as an…
A: Q SummaryLogging practices IEEE automatically records the Internet Protocol( IP) addresses of…
Q: FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz",…
A: NOTE - I have used python programing language for solving the problem. Here I have defined the…
Q: Why do we utilise MATLAB to solve difficulties in Computational Geometry?
A: In the world of business and science, MATLAB is used by many experts and experts for deep learning…
Q: What will the output be for the following nested for loop? for k <= 5 for m <= 10…
A: for k <= 5 for m <= 10 display (k * m) + “ “ next m next k
Q: Find (49.3) -(00110110.0010) 10 BCD - = (?). BCD Y with BCD weight (8421)
A: The conversion of a decimal number to binary coded decimal requires separation of the decimal number…
Q: Given the 1101011011 data frame and generator polynomial G(x)=x^4+x+1. Derive the transmitted frame.
A: Transmitted frame: 1101011011 Generator polynomial: G(x) = x^4+x+1 Derived frame: 1101011011…
Q: A Circle and Two Squares Imagine a circle and two squares: a smaller and a bigger one. For the…
A: In this problem, we need to design the code in the Python programming language. Input - Integer…
Q: How many times would “Programming is fun” be displayed when the following is executed?…
A: Given code: ProgrammingIsFun x = 2 y = 3 do x = x + 1 do while y <=5 display…
Q: Write a MATLAB program to plot the curve of the function tan³(x), given x = -2*pi:0.01:2*pi. Attach…
A: The complete code in Matlab is below:
Q: Prove that the height of a complete binary tree with n nodes is exactly ceil(lg(n+1))-1 using…
A:
Q: n of a parent who
A: Solution - In the given question, we have to tell the practices/procedures for a child to start…
Q: What does ESP add to the IP packet?
A: Let's first see about the ESP(encapsulating security payload):- ESP ESP means encapsulating security…
Q: Q: One way to handle parameter conversion in RPC systems is to have each machine send parameters in…
A:
Q: The following example is a valid compound do-while condition: do while time 0 Select one: True…
A: Basically a do-while loop synatx is a do loop is followed by a while condition. But in the above…
Q: A. Write a C++ program that create struct to read an informations of 20 Students (Name, 7 Degrees,…
A: Hello student I am giving this code as per my best of knowledge :-
Q: 19. At present, the LAN used basically adopts star topology. a. Right b. Wrong 20. TCP/IP protocol…
A: Q-19) In star topology, all the client station is connected to the central device such as hub or…
Q: Write and test a function to meet this specification.squareEach (nums) nums is a list of numbers.…
A: Write and test a function to meet this specification.squareEach (nums) nums is a list of numbers.…
Q: Q: Consider Globe. Outline a simple protocol by which a secure channel is set up between a user…
A: Consider the replica R that we found on the other side, in that case, we execute some steps that are…
Q: Write a function that returns True if two arrays, when combined, form a consecutive sequence. A…
A: Algorithm - Take input from the user. Now use the below logic - c = a + b x,y =…
Q: Older compilers were designed according to a pipe and filter architecture, in which each stage would…
A: A compiler is a special program which translates the high level source code into machine…
Q: Describe how testing activities can be initiated well before implementation activities. Explain why…
A: Testing activities can be carried out using a model known as the V-model. The V-model actually…
Q: When calling a sub procedure, parentheses are optional if there are no arguments. Select one: True…
A: True
Q: Uniform Electronic Transactions Act (UETA), E-SIGN Act, and the Principles of the Law of Software…
A: The 1999-adopted Uniform Electronic Transactions Act (UETA) is known by the initials UETA. It was…
Q: What are the major achievements of computer vision? What are the major problems that remain to be…
A: Essentially, computer vision problems include teaching computers to comprehend both digital images…
Q: Find (49.3)10 - (00110110.0010) BCD = (?), BCD
A: The answer is
Q: 90 Q6.1 Kruskal 0 40 50 80 130 110 70 S 150 60 30 10 120 140 20 100 List the weights of the MST…
A: Steps: 1. Sort all the edges in non-decreasing order of their weight. 2. Pick the smallest edge.…
Q: Specify which of the following statements are functional requirements and which are non- functional…
A: Before answering this question I want to discuss what is functional and non-functional requirements…
Q: Q: Does totally ordered multicasting by means of a sequencer and for the sake of consistency in…
A: Introduction: total order multicast There is a substantial amount of literature on total order…
Q: Using python, Write a program that generates a list of 10 valid lottery tickets and then prints out…
A: The following solution to generate a list of valid lottery tickets has been done using Python…
Q: Briefly describe the services provided by the data link layer.
A:
Q: Write code to get the following output using c++ languange. Unsure how to write the code in order…
A: There are three programs in the above question. Program 1: To print "Hello" along with your name.…
Q: Someone has attempted to censor my strings by replacing every vowel with a Luckily, I've been able…
A: You have not mentioned any specific language so I provide the code in JavaScript along with output…
Q: The caret^. when found at the start of a character set, is the equivalent to "not" in RegEx. The…
A: Here i write code to check according the question: code: import re txt = " alice15@gmail.com " x =…
Q: The need to carry out work by a team demands additional investment in coordination of the team…
A:
Q: Describe how testing activities can be initiated well before implementation activities. Explain why…
A:
Q: Given positive integer numInsects, write a while loop that prints that number doubled without…
A: Here I have taken input from the user and stored it into a variable. Next, I have created an…
Q: A Circle and Two Squares Imagine a circle and two squares: a smaller and a bigger one. For the…
A: The following are steps need to be taken for the given program: Since the side of the outer square…
Q: Consider a program that accesses a single I/O device and compare unbuffered I/O to the use of a…
A: In this question we have given a program which has access to single Input / Output device. We need…
Q: How does IPSec create a set of security parameters?
A:
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: Program : #include <bits/stdc++.h>using namespace std; int…
Q: Question 2: a) Build a cluster model to classify diabetes dataset (The one used in our class) after…
A: Q2A). A three-cluster cluster model would work best with this data set. It is unnecessary to keep…
Q: What is the shortest path from node A to node D, where shortest path is defined as the path with the…
A:
Q: Create a program that will accept a number n. Display whether the number is positive or negative.
A: Note: The programs both(compiler and interpreter) are given by numbered 1 and 2 respectively by…
Q: Does totally ordered multicasting by means of a sequencer and for the sake
A: The end-to-end argument is a design principle that states that functionality should be implemented…
Q: What is the difference between connectionless and connection-oriented services? Which type of…
A:
Q: What are the relative advantages of flat staffing versus gradual staffing?
A:
Q: Use the functions from the previous three problems to implement a pro-gram that computes the sum of…
A: Use the functions from the previous three problems to implement a pro-gram that computes the sum of…
Q: Older compilers were designed according to a pipe and filter architecture, in which each stage would…
A: The design goals that may have triggered the shift from pipe and filter to repository architecture.
Q: Create a program in C that allows the user to prompt for the input of the author's last name, the…
A: As per the given question, we need to create a c program that allows the user to enter author's last…
Q: How does IPSec create a set of security parameters?
A: Introduction: IPsec was at first evolved on the grounds that the most well-known web convention,…
SOluton should be provided ASAP
Step by step
Solved in 3 steps with 1 images
- (Physics) Buoyancy is the upward force a liquid exerts on a submerged object, as shown in Figure 6.9. The buoyancy force is given by this formula: B=pgV Bisthebuoyancyforce( lbforN).isthefluiddensity( slug/f t 3 orkg/ m 3 ).gistheaccelerationcausedbygravity( 32.2ft/se c 2 or9.8m/ s 2 ).Vistheobjectsvolume( f t 3 or m 3 ). a. Using this formula, write a function named buoyantForce(double ro, double vol, int units) that accepts a fluid density, the volume of an object placed in the fluid, and the units to be used(1=U.S.Customaryunits,2=metricunits), and returns the buoyancy force exerted on the object. b. Include the function written for Exercise 6a in a working C++ program, and use your program to complete the following chart:complete the fruitful function below. The string parameter, aString, is in the form "age last,first", where last and first are separated by a comma, and age and last are separated by one or more space. The function should return a string containing first and last, separated by exactly one space. For example, if aString has the value 22, Swift, Taylor', then the function would return the string 'Taylor Swift'. def get_first_last (aString): Python ProgrammingTo translate a sentence into pig Latin, create a function. When a word is written in pig Latin, its first character is dropped, shifted to the word's tail, and the letters "ay" are added. For instance, "hello world" would be "ellohay orldway" in pig Latin. Your function can be written to assume that each word has at least two characters, is separated by a space, and is free of punctuation.
- 1. Write a function that converts a phrase into pig Latin. A word is convertedto pig Latin by removing the first character of the word, placing it at theback of the word, and adding the characters “ay” to the word. For example,“hello world” in pig Latin is “ellohay orldway.” Your function can assumethat each word consists of at least two letters and that each word is separatedby one space, with no punctuation marks.2. Write a function that counts the occurrences of a word in a string. Thefunction should return an integer. Do not assume that just one space separates words and a string can contain punctuation. Write the function sothat it works with either a String argument or a StringBuilder object.3. Write a function that takes a number, such as 52, and returns the numberas a word, as in fifty-two.4. Write a subroutine that takes a simple sentence in noun-verb-object formand parses the sentence into its different parts. For example, the sentence“Mary walked the dog” is parsed into…Hi, OCaml programming 1. Create a type slidingTile, consisting of a char matrix and two integers xand y. The integers x and y are the coordinates of an empty tile. 2. Create a function val slide : slidingTile -> int -> int -> slidingTile = <fun> that given a slidingTile and two integers, that represent a location in thematrix, it slides the tile from the specified location to the empty tile, thenreturns the altered slidingTile. If provided location is not adjacent to theempty tile, or out of bounds, then return the slidingTile unaltered. 3. Create a function val print_tile : slidingTile -> unit = <fun> that prints a slidingTile on screen with the corresponding characters fromthe matrix. However, print an empty space where the empty tile is instead.Create a function to convert a sentence to pig Latin. Pig Latin involves dropping the initial character from a word, moving it to the tail, and adding the letters "ay." In pig Latin, "hello world" would be written as "ellohay orldway." You may write your function such that it assumes that there are at least two letters in each word, one space between each word, and no punctuation.
- Create a function that translates a sentence into pig Latin. To convert a word to pig Latin, remove the initial character, move it to the rear of the word, then add the characters "ay" to the word. In pig Latin, "hello world" is "ellohay orldway." Your function can presume that each word has at least two characters and is separated by a single space with no punctuation marks.use c#14. In written text small numbers are often written out, e.g. you'd write 'I have twobrothers and one sister', rather than 'I have 2 brothers and 1 sister'. Here we want toimplement one (1?) function that helps us realize this. Write a function smallnr() thattakes a number x and if x is an integer between 0 and 6 it returns the name of thenumber, otherwise it simply returns x as a string.>>> smallnr(2)'two'>>> smallnr(0)'zero'>>> smallnr(7)'7'For this C++ hw Create a function called time2Greeting. It takes a time (in military time) and returns a string with the right greeting. Good Morning 4AM to before noon. Good Afternoon Noon to before 5PM Good Evening from 5PM to 11PM What are you doing up at this hour? between 11 and 4AM For illegal values, say: That is not a valid time. Example: What is your name? John What time is it? 1315 Good afternoon, John.
- To translate a sentence into pig Latin, create a function. When a word is written in pig Latin, its first character is dropped, shifted to the word's tail, and the letters "ay" are added. For instance, "hello world" would be "ellohay orldway" in pig Latin. Your function can be written to presume that each word has at least two letters, that there is one space between each word, and that there are no punctuation marks.solve all the program in java 1. Write a Java program to print 'Hello' on screen and then print your name on a separateline.Expected Output:HelloDonald Trump2. A school has following rules for grading system:a. Below 25 - Fb. 25 to 45 - Ec. 45 to 50 - Dd. 50 to 60 - Ce. 60 to 80 - Bf. Above 80 - AAsk user to enter marks and print the corresponding grade.3. Create a function that takes two numbers as arguments and returns the GCD of the twonumbers.Examplesgcd(3, 5) ➞ 1gcd(14, 28) ➞ 14gcd(4, 18) ➞ 24. Given an integer, create a function that returns the next prime. If the number is prime,return the number itself.ExamplesnextPrime(12) ➞ 13nextPrime(24) ➞ 29nextPrime(11) ➞ 11// 11 is a prime, so we return the number itself.5. Write a Java program that takes two numbers as input and display the product of twonumbers.Test Data:Input first number: 25Input second number: 5Expected Output:25 x 5 = 125 6. Write a Java program to print the sum (addition), multiply, subtract, divide and…‘Write a function get_names(), which prompts the user for a sequence of names, where each name can contain an arbitrary mix of uppercase and lowercaseletters and space characters, until the user enters "exit". The function should then return a list of capitalized names, whith no leading or trailing space, and with‘one space character separating adjacent words, Write a main() function to test the get_names() function. For example: Enter a name (exit to stop): bill clintonEnter a name (exit to stop): john tigER sMith Enter a name (exit to stop): mary beautiful Graceland Enter a name (exit to stop): exit [Bill Clinton’, “John Tiger Smith’, ‘Mary Beautiful Graceland’ ]