Write a program in C++ to find the area of any triangle using Heron's Formula: Side = (a+b+c)/2 Area= sqrt (Side *(side-a) *(Side-b)*(Side-c) Note: use #include to run/recognize the sqrt Sample Input: Input the length of 1st side of the triangle : 5 Input the length of 2nd side of the triangle : 5 Input the length of 3rd side of the triangle : 5 Sample Output: The area of the triangle is : 10.8253
Q: QI/ A- (by Visual Basic 2010) Create a compressed or uncompressed flow examination program (project)...
A: (A) (by Visual Basic 2010) Create a compressed or uncompressedflow examination program (project)? T...
Q: Translate the following C++ program into MAL (MIPS Assembly Langage). Your solution should have all ...
A: $g++ -o main *.cppmain.cpp:2:7: error: expected nested-name-specifier before ‘std’ using std: : cin...
Q: What is the goal of IS planning? What steps are involved in IS planning? What is the result or outco...
A: Planning is the essential capacity of the executives that goes before every other function. The arra...
Q: What is an example of a proper use of one of these utilities: awk, sed, tr, grep? Show syntax and ou...
A: grep: - grep stands for global regular expression point. It searches the input file for a search st...
Q: Hi, I need help in automata Please, Regards.
A: Automata Theory is a part of software engineering that manages planning conceptual self-propelled co...
Q: why has digital become so popular?
A: Digital:- Digital describes electronic technology that generates, stores, and pr...
Q: Write the code to create android application class?
A: Application class is the base class where you can maintain global variables. One can override Applic...
Q: I have no idea how to start this problem. This is the question - Write a program that declares two L...
A: PROGRAM: //Importing time header file to access the functions import java.time.*; //Defining the c...
Q: What is an example of a proper use of one of these utilities: awk, sed, tr, grep on VirtualBox - Ubu...
A: grep: - grep stands for global regular expression point. It searches the input file for a search st...
Q: // This class discounts prices by 10% public class DebugFour4 { public static void main(String ar...
A: In this problem, to compute new price, we need to subtract discount amount from old price. The updat...
Q: Write a class named Employee that has the following fields:• name. The name field references a Strin...
A: Employee.java package com.company;public class Employee { private String name; private int idNumber;...
Q: Briefly describe the purpose of solution explorer snd properties windows
A: Purpose of the Solution Explorer window: The Solution Explorer window is considered as one of the s...
Q: Variables and constants must be declared before they can be used in a program. Why is it important ...
A: 1. A variable is just a place in memory (in the running program) that helps to holds a value based o...
Q: Assume that we have 10 threads, then the number of program counter is ??
A: Each CPU has a single hardware program counter. Each thread has a program counter VALUE that is only...
Q: what are different examples of physical controls and displays in Human-computer interaction?
A: Human-computer interaction (HCI) is characterized as a dialogue or interchange between the human and...
Q: (FROM DATABASE SYSTEMS, 13TH ED.) Problem 15. Use a query to compute the total of all purchases, the...
A: Step 1:- Introduction:- Create command is used to create the structure of the table. In this command...
Q: Determine how many minimum Configurable logic block (CLB) you would need for 3-bit subtractor regist...
A: Explanation: The 3-bit subtractor register in FPGA need one borrowed output and 3 different output ...
Q: 12. Using a 6-bit cell to store integers in 2's complement, what will be stored for -5? Questio...
A: Steps to find: 1. Convert -5 to 6-bit binary 2. Then find it's 1's complement 3. And at last add 1 t...
Q: Reviewing this program address the following points: Design/Implementation: Are there noticeable is...
A: Multiple questions are asked so the first question will be answered. Please upload question again to...
Q: C++ Programming Problem: To make telephone numbers easier to remember, some companies use letters to...
A: A required C++ program is as follows, File name: “main.cpp” #include <iostream> using namespa...
Q: Write a program in C++ to find the area and circumference of a circle. Formula:circumference = 2*PI*...
A:
Q: what is output by each of the psuedocode segments? A) a=1 b=2 c=5 while a < c a = a+...
A: A) initially a=1 ,b=2, c=5 after itercondition a b c 1 < 5 2 7 5 2 < ...
Q: Write a program that prompts the user to enter the weight of a person in kilograms and outputs the e...
A: To solve the given problem, first we need to read weight in kilogram, then use the relation: 1 kilog...
Q: Fix the code below to set the default value to 15. <p> 0 < meter min=”0” max=...
A: <p> 0<meter min="0" max="100" low="1" high="20" optimum="10" default value="15...
Q: Create a view that lists the ISBN and title for each book in inventory along with the name and phone...
A: Create and Use a Database View A view is created from a query using the CREATE VIEW command. In the...
Q: Flag is known as Program Status Word (PSW) what does it means and defined 8088 FLAGS register? List ...
A: PSW: PSW stands for Program Status Word. This is basically a collection of the data of the 64 bits ...
Q: Computer Science Question
A: PROGRAM: //Adding the header files #include <iostream> #include <fstream> #include <i...
Q: answer for part 1 is provided.I need answer for part 3 context switching At arrival time 0, we hav...
A: Waiting time: A waiting time is the time that a process spends in the run queue. It is amount of tim...
Q: IN JAVA. Write a program that takes in a line of text as input, and outputs that line of text in rev...
A: Program description: The java program objective is to reverse the user input string into reverse ord...
Q: Which of the following sentences is not a proposition. Select one: O A. The sky is sunny now O B. It...
A: Proposition is a statement or assertion that is either True or False. If you cannot determine whet...
Q: After reading the information presented in this chapter and other sources, write a one-page paper th...
A: Five recommendations for improving the privacy of e-mail in an organization- 1) Having a good antivi...
Q: What actions need to be taken by EHR software vendors, patient monitoring device vendors, government...
A: An Electronic Health Record is a computer-readable record of health-related information of an indivi...
Q: I need to write a java program that will print out the prime number from 0-1000. Can you help?
A: A prime number is a number that is only divisible by 1 or itself i.e. a prime number is the number t...
Q: Write a program in C++ to swap two numbers. Sample Input:Input 1st number: 25Input 2nd number: 39Sam...
A: Program: #include <iostream> using namespace std; int main() { int a, b, temp; cou...
Q: 2. Given the language L = {w: w begins with an odd number of 0's and after that has an even number o...
A: 2 a. The regular expression for L can be given by: Regular expression = 0(00)*(11)* The expression (...
Q: Hi, I need help in automata Please, Regards.
A:
Q: 2. Draw the directed graph of the reflexive closure of the relations with the directed graph shown.
A: to make reflexive closure,we have to add all selfloops of the edges .
Q: In java Reprogram the following iterative function with recursion. int f(int N) { int count...
A: The equivalent recursive function for the given iterative function is as follows, //Define recursive...
Q: Please I need to answers these questions in C++. Thank you. Question: Does the if-else if structure ...
A: If-else-if structure allows to create a chain of if-else statements. This statement is used when eva...
Q: What does Looping mean? Explain different loops in C++.
A: Loop: Looping is control structure that is used to execute a block of code a finite number of time...
Q: C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, s...
A: #include <iostream>#include <fstream>#include <cmath>#include <iomanip>using...
Write a
Formula:
Side = (a+b+c)/2
Area= sqrt (Side *(side-a) *(Side-b)*(Side-c)
Note: use #include <math.h> to run/recognize the sqrt
Sample Input:
Input the length of 1st side of the triangle : 5
Input the length of 2nd side of the triangle : 5
Input the length of 3rd side of the triangle : 5
Sample Output:
The area of the triangle is : 10.8253
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- i want code in python Rahul is a maths genius so he came up with a game and as raj is Rahul's best friend so Rahul decided to play the game with raj. Rahul gives raj two numbers LL and RR and asks raj to find the count of numbers in the range from LL to RR (LL and RR inclusive) which are a digit palindromic. A number is a digit palindromic if its first digit is the same as its last digit. As raj is not very good at maths so your task is to help Raj find out how many numbers are a digit palindromic in the range LL to RR. For example if LL = 88 and RR = 2525 .The following numbers are a digit palindromic in the range of LL to RR: 8, 9, 11, and 22. If LL = 12511251 and RR = 12661266. The digit palindromic numbers are 1251 and 1261. Input format The first line contains an integer denoting the number of test cases. Each test case is described by a single line that contains two integers LL and RR. Output format For each test case output, an integer denoting how many a digit palindromic…: Write a program in C++ to input attendance as 0 (for absent) and 1 (for present) for 25 students in 32 lectures and store it in a 2-D array. After the input, write loops for calculating and displaying the index numbers of the students who has short attendance (i.e. less than 75%). Output should be like this:Please enter attendance of all 25 students for given lecture (total 32 lectures):Enter attendance of Lecture “1”Student 1: <user enters 0 or 1>Student 2: <user enters 0 or 1> and so on….caleulator Create four-function. 4. f using fallowing for fractions by foomu20s Addilion: alb + cld = (a'd + b'c)/(6'd). %3D Subtraction: a/b - cld = (a*d- b'c) |(b"d). Multiplication: a|b* c/d = (a*c) / (b"c) %3D %3D • The m should display above mentioned formulas first. The should take the values of user from should then display user. The the piogram desult of each process Addition, subtraction Multiplication and Division. lines separate an on Screen.
- computer science | c++ code | it's not graded. Correct answer will upvoted else downvoted. It is given a non-negative integer x, the decimal portrayal of which contains n digits. You need to shading every its digit in red or dark, so the number shaped by the red digits is separable by A, and the number framed by the dark digits is detachable by B. No less than one digit should be shaded in every one of two tones. Consider, the include of digits hued in red is r and the include of digits hued in dark is b. Among all potential colorings of the given number x, you need to output any to such an extent that the worth of |r−b| is the base conceivable. Note that the number x and the numbers shaped by digits of each tone, may contain driving zeros. Input :The principal line contains one integer t (1≤t≤10) — the number of experiments. Then, at that point, t experiments follow. Each experiment comprises of two lines. The main line contains three integers n, A, B (2≤n≤40, 1≤A,B≤40).…ISP- Java Write a program that will output a right triangle based on user specified input height (int) and specified input symbol (char). The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches specified input height. Output a space after each user-specified character, including after the line's last user-specified character. Hint: Use a nested for loop. Ex: If the input is: Enter a character: * Enter triangle height: 8 the output is: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *[Fish Tank] You play with a clown fish that has an initial size so. The fish can eat other fish in a tank organized in m columns and n rows. The fish at column i and row j has a positive size si,j. When your fish eats another fish, it grows by that amount. For example, if your clown fish has a size of 10 and eats a fish of size 5, it becomes of size 15. You cannot eat a fish that is bigger than your size. The game starts by eating any fish in the first (left-most) column that is not bigger than yours. After that, you advance one column at a time by moving right. You have only three allowed moves. You either stay at the same row, move one row higher or one row lower. You will always move to the right. Thus, you will make exactly m moves to advance from left to right. Your goal is to exit the fish tank from the right with the biggest possible size. The figure below shows an example with the best answer highlighted. In this case, the final fish size is 71 (10+8+7+24+22). You are required…
- /*code Kth Largest Factor A positive integer d is said to be a factor of another positive integer N if when N is divided by d, the remainder obtained is zero. For example, for number 12, there are 6 factors 1, 2, 3, 4, 6, 12. Every positive integer k has at least two factors, 1 and the number k itself.Given two positive integers N and k, write a program to print the kth largest factor of N. Input Format: The input is a comma-separated list of positive integer pairs (N, k). Output Format: The kth highest factor of N. If N does not have k factors, the output should be 1. Constraints: 1<N<10000000000 1<k<600. You can assume that N will have no prime factors which are larger than 13..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…Problem Statement: Consider a permutation of numbers from 1 to N written on a paper. Let's denote the product of its element as 'prod' and the sum of its elements as 'sum'. Given a positive integer N, your task is to determine whether 'prod' is divisible by 'sum' or not. Input Format: First input will be an integer T. It depicts a number of test cases. Followed by the value for each test case. Each test case will contain an integer N (1<= N <=10^9). It is nothing but the length of the permutation. Output Format: For each test case, print "YEAH" if 'prod' is divisible by 'sum', otherwise print "NAH".
- int i=0; while(i<10) { printf(“I am inside the loop”); } What is wrong with this block of C code? Mark the errors and fix them.LISP Function help please A function that generates a random day of the week, then displays a message saying that "Today is ... and tomorrow will be ...". Then use the built-in function random first to generate a number between 0 and 6 (including). The expression (random) by itself generates a random integer. You can call it with one parameter to return a value within the range from 0 to the value of the parameter-1. For example, (random 10) will return a value between 0 and 9. Next, use the number generated at the previous step to retrieve the symbol for the day of the week from the list. Use the built-in elt. Extract the symbol-name of the day first, then apply the built-in function capitalize to it. Use the result in the princ function call, and do the same thing for the next day. Make the function return true (t) instead of the last thing it evaluates, to avoid seeing the message printed more than once.Problem specification: There is a grid of NXN squares. We can easily determines how many different rectangles (squares are excluded) there are in the grid. For example, in a 3X3 grid, you can find 22 different rectangles, marked as the green rectangles. You can see that we did not count the red ones as they are squares. In this assignment, you will write a Java program that takes the value of N as input and determines the total area of all the rectangles in the grid. Assume that the smallest squares in the grid have length 1. So a 3X2 rectangle will have an area of 6. For example, the total area of all the rectangles in the 3X3 grid is 66.…
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)