You have to create a program in C language in which the user enters the mass m and radius R of a circular disc and the program hould diala, the 0. the dis
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: Identify five (5) threats to modern security architecture and design and Identify the possible…
A: Five threats are given below: - 1. Spyware: - Typically, spyware tries to attack computers by…
Q: Assume you need to store book data in a structured manner. Either more books should be added, or…
A: The answer is given in the below step
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: Introduction: A processor, often known as a processing unit, is a digital circuit that conducts…
Q: pls i want good cv for software engeineer
A: The question has been answered in step2
Q: Recall that TCP can be enhanced with SSL to provide process-to-process security services. including…
A:
Q: Main memory is byte addressable? 2^20 bytes Main memory is word addressable( a word size b. How many…
A: Here We have to Need to find the number of bits required to address a 32M x 32 memory if: - Main…
Q: QUESTION 13 In a 5 stage pipeline, 200 instructions are executed, the speedup factor is: 4.90 4.87…
A:
Q: Step 3. Test your program by computing the distance between Orlando and Tampa. The latitudes and…
A: We need to write a Java code for the given scenario.
Q: Question 14 of 20: Seker te best an 14 Use Gauss-Jordan elimination to solve the following linear…
A: Gauss Jordan method is a matrix form method in which row reduced and element get eliminated…
Q: Why is a two-stage instruction pipeline unlikely to cut the instruction cycle time in half, compared…
A:
Q: Many commands in Linux work exactly as they do in Linux, but why and how does this happen?
A: A Linux command is a program or utility that runs on the command line.
Q: A memory system consists of a cache and a main memory. It takes 25ns to access the cache, and 100ns…
A: Answer the above question are as follows
Q: Solve using JAVA only Given a square chess board of size N, solve the N queens problem.…
A: The Java Code for the given problem is provided below: We are using multi-dimensional array to…
Q: Assume you need to store book data in a structured manner. Either more books should be added, or…
A: The answer is given in the below step
Q: Use 4-bit version(result 8-bit), do the division with the given data: 9 (dividend) and 3 (divisor).…
A: Binary division must be performed where 9 (dividend) and 3 (divisor) Using the division algorithm.…
Q: Build a Node class. It is should have attributes for the data it stores as well as its left and…
A: Python which refers to the it is a high level, and it is interpreted with the general-purpose…
Q: components should be mentioned and briefly characterised.
A: Introduction: It is a digital circuit that processes data from an external source, such as memory or…
Q: 1 Question 1 A Deep Neural Network is shown in Figure 1. The aim of this network is to classify…
A: To update the layer 1 weights (w1, w2, w3, and w4) and then estimate the error. The solution for…
Q: Why and how do numerous Linux commands behave in the same way on Macs and Linux systems,…
A: Linux is the most popular open-source operating system, and it is also one of the most well-known.…
Q: 4. Create two column vectors x and y of 100 elements with random values between 10 and 10. To create…
A: We need to write a Python code for the given scenario.
Q: Convert the decimal signed number -7 into 8-bit signed binary number. The signed binary number is…
A: Here in this question we have given a decimal number (-7) and we have asked to convert it into…
Q: Write an SQL query to fetch the count of employees working in project ‘P1’.
A: So in order to fetch the count of employees working in project ‘P1’ we mainly use an aggregate…
Q: Add the following numbers in this order to an initially empty hash table with m = 11, h(x) = x % 11,…
A: The solution is provided below using Hand calculation.
Q: Write a struct that defines a binary tree node
A: In C, we can use structures to represent a tree node. We can use classes as a component of other…
Q: Where does Windows store deleted files when you use File Explorer or Windows Explorer to remove them…
A: The question is Where does Windows store deleted files when you use File Explorer or Windows…
Q: Create a function that takes two "sorted" arrays of numbers and returns an array of numbers which…
A: 1. Create a method that accepts 2 array arguments 2. create the common array 3. Iterate for loop on…
Q: This is for C++ A C++ program that reads the records from a golf.txt file and displays them. Quick…
A: #include <iostream>#include<fstream>//to read input#include<cstring>using…
Q: Question 12 of 20: 12. Peter Gass-Jordan elmination on the augmented mat shown 142 AP1 ** 0.99 9.…
A: ANSWER:
Q: Suppose Alice and Bob are sending packets to each other over a computer network. Suppose Trudy…
A: Given: There is a transfer of packets taking place between two clients present in a network, i.e.,…
Q: Give a thorough explanation of how the DNS operates, including topics like authoritative and root…
A: Domain Name System: The domain name system, often known as DNS, can be considered the Internet's…
Q: b. How many bits are required to address a 16M x 8 memory
A: The answer is
Q: P and Q are two processes that share a set of variables that is common. The variable includes: seq,…
A: Here either of the process can execute first. Also a process can be preempted by another process.…
Q: Regardless of how user level threads are implemented, if a programme has two or more user level…
A: Introduction: Kernel: A kernel is the heart of a computer's software or operating system. Provide a…
Q: 1. One of the advantages of a Hadoop implementation is that it provides a high level of computing…
A: 1. → Hadoop : - Hadoop is a Java based, open source software framework that is used for distributed…
Q: sum = 0 i=0 j = 12 var1 = 3 var2 = 3 var3 = 0 while(i var3){ var1 =var1 - i; } else { var3 = var3+…
A: Assembly language: Assembly language is a low level programming language. It is used to directly…
Q: What effects will the internet of things (IoT) have on how we live our lives? Give an illustration…
A: IoT The Internet of Things (IoT) is an arrangement of interrelated registering gadgets, mechanical…
Q: 3.10 Using the DUP directive, allocate space for 5 doublewords and 2 bytes in a data segment, then…
A: Using the DUP directive, allocate space for 5 doublewords and 2 bytes in a data segment, then fill…
Q: Given an object that contains several adjectives as values, return a new object where you count the…
A: Program Plan: Define the function countNumberOfOccurrences with a parameter obj as follows:…
Q: Which of the following numbers can be the order (aka the number of elements) of a finite field?…
A: A number can be the order of a finite field if it can be expressed as a power of prime number, which…
Q: Question 8: The following statement is a right way to link to an e-mail address: Say HELLO!!!.
A: Question 8 The link <A HREF="name@website.ext">Say HELLO!!!</A> is not a right way to…
Q: Give a brief explanation of what machine language is. What are the causes of the inability of…
A: To Do: To describe machine language. Machine Language: Machine language is a collection of numerical…
Q: describe
A:
Q: A number is said to be Harshad if it's exactly divisible by the sum of its digits. Create a function…
A: Calculate the sum of digits Check whether sum is exact divisor of input number and return whether…
Q: 2. Matrix Quantum Mechanics. Use python matrix and algebraic tools for this problem. Consider…
A: Yes, the operators C and P commute. To find the eigenvalues and normalized eigenvectors of given…
Q: How do stored procedures and scripts vary from one another? Why are stored procedures advantageous?
A: answer is
Q: How can a client predict that a server request will fail?
A: A client is a program that uses services that other programs provide. The programs that provide the…
Q: What fundamentally distinguishes the telephone network from the Internet?
A: In the given question the internet and telephone networks are both switched networks, with circuit…
Q: 1 Turing Machines Produce a Turing Machine state diagram that decides the following language. You do…
A: Here we have given solution to produce a Turing Machine state diagram that decides the following…
Q: What challenges does implementing mobile technologies present? The savings compared to web-based…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. To make…
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
Step by step
Solved in 3 steps with 2 images
- write a program in C++ that A user needs to determine the size of squares (let say delta) in a grid, the center of the circle (does not have to lie on a grid but it can!) and the radius. (for example use "cin>>" ) Then you need to plot a circle using parametric equations of circle (you need to increase angle and plot these (in my picture black) points). First plot the first point of the circle and determine in which square of grid it is. (in my picture it is an orange square) and plot the left bottom vertex of this square (in my picture it is a blue point). Then increase an angle and plot next point of circle - check if it lies in different square. -If it is not in different square, you need to increase angle and check again. (because an angle was too small) -If it is the different square, then check, if this square has THE COMMON EDGE with the previous one -> if it has the common edge, then print new left bottom vertex of this square (if does not have common edge,…Write a C++ program, that asks a user to enter the width and length of the rectangle and then find the perimeter and area of the rectangle. area=Width * length Per= 2*(width+Length)The aim of this program is to ask for inputting the three sides of two triangles, constructs the two corresponding triangle objects in C++ using the class Triangle, compare the areas of these two triangle objects, and print whether or not the areas of these two objects are the same. Find the bugs in the code #include <iostream> using namespace std; class Triangle { int sideA, sideB, sideC; public: int area(); }; int Triangle::area() { return sideA * sideA * sideA; }; int main() { int a1 = 0, b1 =0, c1 =0, a2=0, b2=0, c2=0; cin >> a1 >> b1 >> c1; // for triangle one cin >> a2 >> b1 >> c2; // for triangle two Triangle t1(a1, b1, c1); Triangle t2(a2, b2, c2); if (t1.sideA == t2.sideA && t1.sideB == t2.sideB && t1.sideC == t2.sideC) cout << "same size" << endl; else cout << "different size" << endl; }
- Write a c++ program to display a calendar for a given year Ask a user to enter the year and the new year's day of the year entered. cout <<"Enter a calendar year to display?"; cout <<" what is the new year's day?"; a leap year is: IF year%4 = 0 AND year%100 != 0 OR year%400 = 0 example of what the program should display is in the images attached.Project 2: Truth Table: Write a program that displays the truth table for a proposition with two Boolean variables. Have a function for each operation Λ, V, and ~. in c++ with commentsPlease write a C++ program;Use " class cone {}"to output the "radius" and "circumference" of the bottom of the cone, and the 'height" and "volume" of the cone.Thanks for your help.
- Write a C++ Program to find Factorial of a number using class. int main() is provided, all you have to do is to create the class. #include <iostream>using namespace std; int main(){ factorial f; f.input(); f.calc(); f.display(); return 0;}Write a program in c++ that takes in a year as input (as a command line argument) and prints the string "{year} was a leap year'' if true and "{year} was not a leap year'' if false.Note: background on leap year https://en.wikipedia.org/wiki/Leap_yearHere is a possible example call to the program .\isleapyearc 1896 output: 1896 was a leap year Here is a negative example call to the program .\isleapyearc 1897 output: 1897 was not a leap yearIn this c++ program you are asked to design a 2 x 2 x 2 Rubik's cube that is filled with numbers instead of colors. The cube, naturally, has six sides that are identified as follows: The front side is side 0 The right side is side 1 The backside side is side 2 The left side is side 3 The Up side is side 4 The bottom side is side 5 The squares on every side are initially filled with the same side index. This means that the four squares on the front side are filled with 0's, the four squares on the right side are filled with 1's, etc. You are allowed to move the cube in two directions only: Horizental move (H or h): The first row moves one step in four sides in this order (0 -> 1 -> 2 -> 3 -> 0) Vertical move (V or v): The left column moves one step in four sides in this order ( 0 -> 5 -> 2 -> 4 -> 0) The program accepts from the the user the number of moves he/she wants to make, accepts the sequence of desired moves as shown in the sample case below.…
- You must implement a C++ program that calculates the position and velocity of a body thrown with an initial velocity (v0) and with an angle to the horizontal (angle). The results should be displayed on the screen every some time (0.1 seconds) in a horizontal row. To validate your program, use the following example run where v0=10 and angle=53o as shown in the image: The data must be printed with two decimal places, find out how to do this in C++.Once all the calculations are printed, the program must ask if you want to repeat or if you want to exit the program. You implement the way to do it.As always the report should include (use the standard report): Cover page with title, course and section, names and student numbers of your team members in alphabetical order by last name.Introduction indicating in one paragraph what the program does and pseudocode/algorithm of the program. Detailed flowchart. Source code. Pictures of a running example. Next, the theory of ballistics problems:…Write a C++ program that asks the user to enter the radius of the circle and then find the Circumference and area of the circle. Cir= 2* pi *R Area= pi*R*R(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!