Create a C++ program for the following: Using Herod’s Formula, calculate the area of a triangle with sides 11.7cm, 0.58m and 456mm. Your result should be in one of the units used to measure the sides of the triangle (cm, m or mm).
Q: Consider the following recursive algorithm. 1]) ALGORITHM Riddle(A[0..n â^' 7/Input: An array A[0..n...
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: 16. What will be the output of the following python statement? 1. >>>"a"+"bc" a. bc b. abc C. a d. b...
A: 16. When you will be printing "a"+"bc", it will print abc as these are strings so it will concatenat...
Q: What STP configuration ensures that a laptop connected to a switch cannot alter the STP paths on th...
A: Answer a. BPDU filter
Q: 2. In Python programming language, write a program to input a string and then add the string "progra...
A: Given: We have to write a Python program in the given statements.
Q: List the functions below from the lowest order to the highest order of growth. Indicate any that are...
A: List the functions below from the lowest order to the highest order of growth. Indicate any that a...
Q: 2. Write a function which will take list as a argument and this function will return a reversed list...
A: Given :- Write a function which will take list as a argument and this function will return a reverse...
Q: Suggested Project Topics: Web Security loT Security Cloud Security Moving Target Defense Mobile devi...
A: Project Suggestion Topic is : Web Security : Web security, as broadly, refers to the p...
Q: What is the correct order for converting the source code into an executable file? Answer Choices: a....
A: The correct order is
Q: What is Enumerated Integer providing an example to illustrate your point?
A: Enumerated integer is data type that can only hold a finite number of distinct values. The values ar...
Q: The Confusion Matrix evaluates models on the whole population while lifts charts evaluate model perf...
A: The Confusion Matrix evaluates models on the whole population while lifts charts evaluate model perf...
Q: 4. Define the Circle2D class that contains: > Two double data fields named x and y that specify the ...
A: Program: -------------------------------------------------------------------------------------------...
Q: In a huge corporation, how do you generally obtain permission to change a network?
A: Introduction: People are given a security clearance after completing a thorough background check, al...
Q: You are examining a host with an IP address of 52.93.24.42/20 and want to determine the broadcast ad...
A: INTRODUCTION: A network host is a computer or another device that is linked to a computer network. ...
Q: Recently, your company’s WAN experienced a disabling DDoS attack. Which of the following devices c...
A: WAN stands for wide area network and there are attack could be happen in the network , we have choos...
Q: 3. Design a full subtractor circuit using (i) (ii) (ii) Two half subtractors. Using only NAND gates ...
A:
Q: What is the time complexity for this program?
A:
Q: 5- What is the ROM size requird to implment a circuit that calculates B A2 if A is 4 bits Cflin-flon...
A: The answer of 5 question is givn below:-
Q: What's the difference between sequential and random access devices, to give you an example?
A: Sequential and random access device are used to perform read/write in memory.
Q: Explain specifically why the following instruction set may not work correctly. mov ах, -10 mov сх, 7...
A: Answer: I have done code and also I have attached code.
Q: Consider Bag, SinglyLinkedList, and DoublyLinkedLists classes for integers. Implement and test the f...
A: 5 public int getNthNodeData(int index) { Node current = head; // init...
Q: Given the following sets: A = {2, 3, 4}, B = {1, 5, 10}, C = {-1, 1, 2}, D = {2, 5, 10} What is the ...
A: Note: This is multiple questions-based problem. As per company guidelines, only the first question i...
Q: What is the size in bits of the tag in the cache?
A: Memory blocks are the blocks which are used for storing the address of the variables and the variabl...
Q: Discuss the characteristics of the DIFFERENT TYPES OF ARGUMENT & TYPES OF VARIABLE in Python Program...
A: As we know in python programming there are five Types of Arguments in Python Function Definition:...
Q: Write a subroutine that finds the total number of elements in an array that are divisible by 8. The ...
A: The current scenario here is to find the total number of elements in an array that are divisible by...
Q: 1- For an 8-bit word sized 64K byte memory. The number of address lines required is the number of da...
A: ROM stand for is read only memory.
Q: bläi 3 correct the following program and what the output of inches when the user input data is * [fe...
A: The participant's outcome from the C program: That program determines whether or not someone learner...
Q: Is the ff. argument valid? ( Note: "-" means "-") pv q p→~q p→r ..r O Maybe O Not valid O Yes, it is...
A: We are given an argument and we have to see if it's valid or not. Please refer to image for the solu...
Q: 1. What does it mean by recursion?
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: Create a class named Calculate 2. Add 2 instance variables, Quantity and UnitPrice. UnitPrice can i...
A: As no programming language has been used, Java has been used.
Q: 4. Briefly describe the purpose of each T state listed: (a) T (b) T2 (c) T3 (d) T. (e) Tw
A: State Transition Diagram describes μp’s internal operations, where the circle representsthe states a...
Q: Forward Finite Divided Rule
A: ANSWER: Forward Finite Divided strategy is viewed as one of the most established and least difficult...
Q: 22. Create a C++ function that takes two integers p and q as the parameters and then returns true in...
A: Create a C++ function that takes two integers p and q as the parameters and then returns true in the...
Q: 7. In Figure 4 Unicast Loop-Free Path, replace X and Y with any two digits of your MITID. Calculate ...
A:
Q: l area network (LAN)?
A: given - What are the benefits of having a local area network (LAN)?
Q: One of the major concerns in using freeware is that it can be used as an instrument to compromise se...
A: Synergy is the concept that the whole of an entity is worth more than the sum of the parts. This log...
Q: Run enrollment.sql to create and populate tables Student(s_id, s_name,gender, nationa...
A: Trigger:- Trigger are the SQL codes are automatically executed in response to certain events in a sp...
Q: Explain briefly the importance of data analytics in business and in education?
A: Data analysis can provide a snapshot of what students know, what they should know, and what can be d...
Q: Assume a program has the following variable definitions:a = b = 3c = 5.2 and the following statement...
A: Answer :
Q: 14. What will be the output of the following Python code? x = 'abcd' for i in x: print (i.upper ()) ...
A: #14#lets analyse the code for outputx='abcd'for i in x:#for each character in x print(i.upper())#...
Q: Select between automatic increment or automatic decrement as the addressing mode.
A: Mode of Automatic Incrementation: The operand's effective address is the value of a register provide...
Q: ii) In C programming language, write a program to input a floating-point number and the number of di...
A: The code is given below
Q: What are some of the things to keep in mind when building a mobile application? What, in your opinio...
A: INTRODUCTION: People are spending more time on their smartphones and mobile gadgets as the digital ...
Q: 1.Scilab a. List all commands with their corresponding functions and symbols
A: Due to company policies, I am compelled to solve only one question that is the first question. Pleas...
Q: Create a Java program where the user will have to enter two values(Using JOptionPane) to be divided.
A: Program Explanation: Import the required modules Declare and define a public class Declare an objec...
Q: Make a research about the DIFFERENT TYPES OF ARGUMENT & TYPES OF VARIABLE Discuss the characteristic...
A: 1) 5 Types of Arguments in Python Function Definition: default arguments keyword arguments positio...
Q: What is the size in bits of the tag in the cache?
A: A cache is termed as a type of memory that has the most recent data stored in it. It is used to feas...
Q: Calculate what is the maximum viewing distance for a given setup to be able to distinguish a details...
A: The viewing distance on a led screen is defined as the correct distance so that our eyes generate a ...
Q: What is the CAM table? And what is the command to display the CAM table
A: As per our policy we are allowed to solve single question in multi part question . please upload oth...
Q: Using Java Let |p|2 denote the size of p in bits. Your task is to generate a safe prime q, where ...
A: ANSWER: Here is the program to print Sophie Germain's number beneath n. The answer for this is basic...
Q: Write a program that reads students’ names followed by their test scores. The program should output ...
A: The program will take input number to take that amount of student’s information. Then we have define...
Create a C++ program for the following:
Using Herod’s Formula, calculate the area of a triangle with sides 11.7cm, 0.58m and 456mm. Your result should be in one of the units used to measure the sides of the triangle (cm, m or mm).
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- (General math) Write, compile, and run a C++ program to calculate the distance between two points with the coordinates (7, 12) and (3, 9). Use the fact that the distance between two points with the coordinates (x1, y1) and (x2, y2) is given by this formula: distance=(x2+y2) After verifying that your program works correctly by calculating the distance between the two points manually, use your program to determine the distance between the points (-12, -15) and (22, 5).(Practice) Write a C++ program that displays the results of the expressions 3.05.0,7.18.32.2,and3.2/(6.15). Calculate the value of these expressions manually to verify that the displayed values are correct.(Electrical eng.) a. The voltage gain of an amplifier is given by this formula: voltagegain=[275 23 2 +0.5 f 2 ]n f is the frequency in Hz. n is the number of stages in the amplifier. Using this formula, write, compile, and run a C++ program to determine the value of the voltage gain for a four-stage amplifier operating at a frequency of 120 Hz. Your program should produce the following display: At a frequency of xxxxx hertz, the voltage gain is yyyyy Your program should replace xxxxx with the frequency and yyyyy with the voltage gain. b. Manually check the value your program produces. After verifying that your program is working correctly, modify it to determine the voltage gain of a 12-stage amplifier operating at a frequency of 9500 Hz.
- Q1. Write a program in C++ language to obtain the equation below, for values of x from (1 - 20), by using for statement: 2 X e Y= —+cosix— VX+ — 4 Ix|Q.3 Write a C++ program that calculates the volume of a solid cone. The formula is: volume = ((0 radius20 height)/3 Input the values of height and radius.CREATE A C++ PROGRAM THAT THE USER WILL INPUT 2 COORDINATES TO REPRESENT A LINE IN A CARTESIAN PLANE AND THE OUTPUT IS TO DETERMINE THE ILLUSTRATION OF THE LINE. (POSITIVE SLOPE/NEGATIVE SLOPE/HORIZONTAL LINE/VERTICAL LINE
- You will develop a c++ program to find all prime numbers in the range specified by the user. For instance, the execution of your program should look like the following: Enter the range to find all prime numbers in that range: 10 20 111317 19Write a c program to calculate velocity of a car when distance and time are given by the user.Consider the simple electric circuit above. Write a C program that calculates the current through each resistor. The code must use a constant for the voltage and arrays for the resistor and current values. The program prints each current value for each resistor on a new line in the format: "I1 = x.xx", etc. Ohm's Law states: I=V/R Complete the following C program using the code provided to match the correct lines of code in the correct order to create the C program. //Line 1 //Line 2 //Line 3//Line 4//Line 5 //Line 6//Line 7//Line 8//Line9//Line 10 -//Line 1 -//Line 2 -//Line 3 -//Line 4 -//Line 5 -//Line 6 -//Line 7 -//Line 8 -//Line 9 -//Line 10 1. #include <stdio.h> 2. printf("I%d = %.2f\n", i+1, currArray[i]); 3. void main(char argc, char **argv) 4. currArray[i] = (float)VOLTAGE/resistArray[i]; 5. float currArray[4], resistArray[4] = {10, 20, 30, 40}; 6. for (int i = 0; i < 4; i++) ; 7. int currArray[4], resistArray[4] = {10, 20, 30, 40}; 8. while…
- Design, write and compile, and run a C++ program to convert temperature in degrees Fahrenheit to degree Celsius. This is the equation for this conversion: Celsius = 5.0/9.0 (Fahrenheit – 32.0) Have your program convert and display the Celsius temperature corresponding to 98.6 degrees Fahrenheit. Your program should produce the following display (replacing the underline with the correct values): For a Fahrenheit temperature of _____ degrees, The equivalent Celsius temperature is ______ degrees./*This is a C++ Program. Declare a variable c1 of type float. Then initialize it to 3.75.*/ /* If you can answer this in x code format that would be great! */Write a C++ program to compute for the magnitude and direction of the resultant of 2 forces. The program must also indicate the Quadrant where the angle of resultant is located. The magnitudes and directions of the two forces are to be entered from the keyboard. Use the following formulas: Rx = Acosα + Bcosβ Ry = Asinα + Bsinβ R = sqrt(Rx^2) θ = tan^-1(Ry/Rx)