Write a program that prompts the user to enter the side of an octagon and displays its area. The area of an octagon is A = 2 (1+ √2)s², where s is the side of an octagon. Assume that the side entered is positive, and do not import the math module (or use any predefined functions).
Q: 1. List your arguments in favor of this recommendation.
A: Software inspection is a control technique to ensure that the documentation produced in a particular…
Q: In today's world, using electronic mail for communication provides two advantages over using regular…
A: The two advantages of using electronic mail over regular mail are speed and cost. With electronic…
Q: List and discuss the many options there are to interact online. together with their respective…
A: Introduction: Online communication may be profitable and difficult. Online or offline learning…
Q: What does the term "transitive" mean? What is the rule for converting tables in the second normal…
A: Answer is
Q: Wap in to make chess in python(using turtle library)
A: program to make chess using turtle library is:
Q: ACROSS Contains the logical structure of the entire database simply the way the data is stored on…
A: ACROSS: 1. A Data Dictionary is defined as a collection of names, definitions, and attributes…
Q: INPACKING LIST PROBLEM: Unpack the list writeyourcodehere into three variables, being first, iddle,…
A: Code is given below lst = [1,2,3,4,5,6] print('First: ',lst[0]) print('Middle: ',lst[1:-1])…
Q: ASAP Solution needed / Solution You're given a string of words. You need to find the word "Nemo",…
A: SOLUTION:
Q: A static method is also known as a(n) __________ method. a. instance b. public c. private d. class
A: In Java, a static method is a method that belongs to a class rather than an instance of a class.
Q: The first two bytes of a 2M x 16 main memory have the following hex values: Byte 0 is FE Byte 1 is…
A: The answer for the above mentioned question is given in the below steps for your reference.
Q: 5. Use Figure 1.2 (below) to answer the following questions. 1. In the table, how many records does…
A: 1. (a) Data:-Data can be defined as a raw facts or figure. It includes facts and statistics which…
Q: Encode (represent) the decimal value -10.1875 as a 32-bit IEEE -754 floating point field and show…
A: The Answer is :- This question comes from Number Theory which is a paper of Computer Science. Let's…
Q: Define a function CalculateNum() that takes one integer parameter and returns the parameter minus 5.…
A: SOLUTION: Here is code: #include <iostream> using namespace std; int CalcNum(int input) {…
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: This is a real life situation which arises in a company or in a development team. This situation…
Q: The project's organization is an important element of the development plan. 1. List the components…
A:
Q: Someone has attempted to censor my strings by replacing every vowel with a * 1*k* th*s. Luckily,…
A: Algorithm - Take input from the user. Now use the below logic - for (let i=0;i<vowels.length;…
Q: When preparing for and delivering a training session, it's crucial to keep in mind the significance…
A: Introduction: Communication abilities include speaking, listening, moving around, and observing. It…
Q: Hello! I'm using Mozart Oz and I'm trying to answer this question: Write a function Abs that…
A: <code>declare fun {Abs X} if {IsInteger X} then X else if {IsReal X} then X end end…
Q: Question 1 Implement the following logic functions using BJTs. Use the S-Model. Both input and…
A: Here we given the solution using BJT. You can find the solution in step 2.
Q: David Martin just finished his inspection coordinator course. After obtaining his first appointment,…
A: In the given scenario it is not advisable to employ a secretary who is a non - information…
Q: What protocol steps take place, starting from powering on your PC to getting the web page? Assume…
A: The question is a multiple type. Hence the first question has been answered. The question is: What…
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: There are several approaches are possible including these details:- • This project uses a printable…
Q: David Martin just finished his inspection coordinator course. After obtaining his first appointment,…
A: Inspection coordinator case study:This case study deals with inspection coordination. Where David…
Q: Use a layer 3 device! (aka router) -TRUNK- 192.168.1.1/24 VLAN 10 44 Cisco Guru 192.168.2.1/24 VLAN…
A: Here we have given the solution for the above diagram based on VLAN. You can find the solution in…
Q: ASAP Solution needed / Solution You're given a string of words. You need to find the word "Nemo",…
A: Algorithm - Take input from user. Now use the below logic - const index = sentence.split('…
Q: What would I need to change if my a and b must be Ixn+1 - xnI?
A: We need to modify the code as per the given scenario. In the existing code, b=xn+1 and a=xn. The…
Q: Given an array of wine objects, write a function that returns the name of the wine he will buy for…
A: Answer:
Q: Create a function which counts how many lone 1s appear in a given number. Lone means the number…
A: function countLoneOnes(num) { let count = 0; let str = num.toString(); for (let q = 1; q <…
Q: Performing a contract review raises many difficulties. 1. List the "built-in" difficulties to…
A: 1) The basic built-in difficulties that are typical of contract review are Time pressure It…
Q: What elements are necessary to guarantee efficient communication?
A: Communication Communication is the exchange of information or data inside or between PCs or any…
Q: Given an array of wine objects, write a function that returns the name of the wine he will buy for…
A: Input - Array of map Output - name from map In this problem, we need to design the code in the JS…
Q: In today's world, using electronic mail for communication provides two advantages over using regular…
A: answer is
Q: What are some precautions you can take with your router to reduce the risks associated with…
A: Since there are multiple questions, we will answer the first full question for you. If you want the…
Q: The program is supposed to: a) allocate storage for an array of integers of a size specified by the…
A: Answer:
Q: Simplify the expression (a + b)∗c∗(a + b)∗, and explain the language it defines.
A: Here in this question we have given a regular expression and we have asked to explain the language…
Q: reference bandwidth is a default value on Cisco router divide the reference bandwidth by the…
A: Introduction: The reference bandwidth is a default value on Cisco routers which is a 100Mbit…
Q: How much to run a 60 line X 40 column 16 color text screen on a computer. How much video RAM do you…
A: Computer graphics which refers to the sub-field of computer science that deals with the studies and…
Q: "Police Star 1000 System" is the new prestigious software system for recording all the verbal…
A:
Q: Define a function CalcVal() that takes two integer parameters and returns the sum of the two…
A: #include <iostream>using namespace std; /* Your code goes here */ int main() { int input1,…
Q: ASAP Solution needed / Solution You're given a string of words. You need to find the word "Nemo",…
A: Algorithm - Take input from user. Now use the below logic - const index = sentence.split('…
Q: Performing a contract review raises many difficulties. 1. List the "built-in" difficulties to…
A:
Q: Code in C++ Language STRING FLIP ALPHABET One of the simplest cryptography technique is to invert…
A: Here we have given code in c++. you can find the code with screen shot in step 2.
Q: What is the difference between Software Verification and Software Testing?
A: process of determining whether or not software's complies with it's intended use and specifications…
Q: The project's organization is an important element of the development plan. 1. List the components…
A: The coordination, communication and management techniques a team use over the life cycle of a…
Q: Which is the reserved word which is used in structure definition ?
A: The solution is given below with an example
Q: Which network location during Windows 7 installation should you use if you want to join the device…
A: The answer to the question is given below:
Q: Q3/Full the following blanks (15)10 = ( )Gray=( )BCD(5321)=( )EX-3 O O None of them O O (15)10 =…
A: (15)10 = ()Gray First Convert 15 into binary, which is 1111 Now convert the binary of 15 into GRAY…
Q: Assume that you have created a class named MyClass, and that a working program contains the…
A:
Q: A software development firm is planning a new airport luggage control project. The system is to…
A:
Q: Activity 1.2: Conversion of Number System Solve the following problems completely. WRITE your answer…
A: Answer: Introduction: The number system is used for converting one form into the another
Step by step
Solved in 2 steps with 2 images
- Write a program named GuessingGame that generates a random number between 1 and 10. (In other words, in the example above, min is 1 and max is 11.) Ask a user to guess the random number, then display the random number and a message indicating whether the users guess was too high, too low, or correct.Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within the rectangle centred at (1, 1)with width 10 and height 5. For example, (2, 2) is inside the rectangle and (6, 4)is outside the rectangle, as shown in Figure . (Hint: A point is in the rectangleif its horizontal distance to (0, 0) is less than or equal to 10 / 2 and its verticaldistance to (0, 0) is less than or equal to 5.0 / 2. Test your program to cover allcases.) Here are two sample runs. Enter a point with two coordinates: 2 2 ↵EnterPoint (2.0, 2.0) is in the rectangleWrite a program that prompts the user to enter the radius of the rings and draws an Olympic symbol of five rings of the same size with the colors blue, black, red, yellow, and green, as shown in Figure 3.5c.
- Write a program that prompts the user to enter threepoints, (x1, y1), (x2, y2), and (x3, y3), of a triangle then displays its area.The formula for computing the area of a triangle iss = (side1 + side2 + side3)/2; _________________________________ area = √s(s - side1)(s - side2)(s - side3)Here is a sample run: Enter the coordinates of three points separated by spaceslike x1 y1 x2 y2 x3 y3: 1.5 -3.4 4.6 5 9.5 -3.4 ↵EnterThe area of the triangle is 33.6Write a program that simulates flipping a coin twomillions times and displays the number of heads and tails.Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within the circle centered at (0, 0) withradius 10. For example, (4, 5) is inside the circle and (9, 9) is outside the circle, asshown in Figure (Hint: A point is in the circle if its distance to (0, 0) is less than or equal to 10.The formula for computing the distance is __________________√(x2 - x1)2 + (y2 - y1)2. Test your program to cover all cases.) Two sample runs are shown below: Enter a point with two coordinates: 4 5 ↵EnterPoint (4.0, 5.0) is in the circle
- Write a program that prompts the user to enter theside of a hexagon and displays its area. The formula for computing the area of ahexagon is given where s is the length of a side. Here is a sample run: Enter the length of the side: 5.5 ↵EnterThe area of the hexagon is 78.5918Write a program which takes an input from the user, if the input is 1, calculate the area of the circle, if the input is 2 calculate the area of Rectangle, if input is 3 calculate the area of the square, otherwise display "Wrong Input".Write a program that reads tenintegers, and then display the number of even numbers and odd numbers. Assumethat the input ends with 0. Here is the sample run of the program. Enter numbers: 1 2 3 2 1 6 3 4 5 2 3 6 8 9 9 0 ↵EnterThe number of odd numbers: 8The number of even numbers: 7
- Write a program that prompts the user to enter a sequence of numbers until a -999 is entered. It will print the numbers the user entered, five number in a row,with a before the first number and after the last number in each row. For example, Enter a number (-999 to stop): 23Enter a number (-999 to stop): 15Enter a number (-999 to stop): 1Enter a number (-999 to stop): 7Enter a number (-999 to stop): 9Enter a number (-999 to stop): 21Enter a number (-999 to stop): 17Enter a number (-999 to stop): 33Enter a number (-999 to stop): -999[23 15.17 9] [21 17 33]Write a program that takes website names as keyboard input until the user types the word stop and counts how many of the website names are commercial website names (i.e., end with .com), then outputs that count.Write a program that accepts a number corresponding to a plane figure: Right Triangle Rectangle Circle The program will then ask for the following: base and height – if the previous input is 1 (right triangle) width and length – if the previous input is 2 (rectangle) radius – if the previous input is 3 (circle)