A C++ program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area is given below:
The C++ Code//include headers
#include <bits/stdc++.h>
using namespace std;
//main function
int main() {
//variables to store coordinates
float x1,x2,y1,y2,x3,y3;
cout<<"Please Enter the coordinate of first point (x1,y1): ";
// reading coordinate of first point
cin>>x1>>y1;
cout<<"Please Enter the coordinate of second point (x2,y2): ";
// reading coordinate of second point
cin>>x2>>y2;
cout<<"Please Enter the coordinate of third point (x3,y3): ";
// reading coordinate of third point
cin>>x3>>y3;
//calculating area of the triangle
float area=abs((x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2))/2);
cout<<"area of the triangle:"<<area<<endl;
return 0;
}
Read more about C++ program here:
https://brainly.com/question/20339175
#SPJ1
A piece of data that is written into a program's code is a
Answer:
A piece of data that is written into a program's code is a literal.
Explanation:
PBL projects are graded using what it tells you what you are doing very well and where you may need improvements
Answer: a rubric
Explanation:
A rubric is a scoring tool that explicitly describes the instructor's performance expectations for an assignment or piece of work
............................
Honestly yeah. .-- .... .- -
Answer:
................. kinda?
Explanation:
1. What criteria must be maintained once a clinical record has been created ?
The criteria that must be maintained once a clinical record has been created are:
All vital clinical findings are accurate.A record of the decisions made are true and exact.What is maintained in a medical record?Medical records are known to be any kind of document that helps to tell all detail in regards to the patient's history, as well as their clinical findings, their diagnostic test results, medication and others.
Note that If it is written rightly, the, notes will help to aid the doctor about the rightness of the treatment of the patient.
Therefore, some of the criteria for high quality form of clinical documentation are they must be :
AccurateExactClearConsistentCompleteReliableLegible, etc.Therefore, based on the above, The criteria that must be maintained once a clinical record has been created are:
All vital clinical findings are accurate.A record of the decisions made are true and exact.Learn more about clinical record from
https://brainly.com/question/21819443
#SPJ1
Assume that you are the owner of a small bicycle sales and repair shop serving hundreds of customers in your area. Identify the kinds of customer information you would like your firm's Customer Relationship Management (CRM) system to capture. How migh
this information be used to provide better service or increase revenue? Identify where or how you might capture this data.
Answer:
Bicycle shops specialize in the selling of bicycles. Depending on the shop, they may also buy, special order, rent, or repair bicycles as additional services. The retail space of the shop usually dictates the size of the inventory.
CRM-Customer Relationship Management:
The CRM is the process of integrating the functions of sales of the product, marketing, and services provided in an organization.
The objective of CRM is to help sales associates to plan the relationship development activities required to maintain and expand business.
help me with this
Looking at the example below is the type value equal to a string or an integer?
ball.type = "spike";
a. string
b. integer
The ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.
What is execution?The process by which a computer or virtual machine reads and responds to a computer program's instructions is known as execution in computer and software engineering.
It is given that:
ball.type = "spike';
As we know,
The string cannot be translated into an integer but can only be transformed into another string. The string is a character value enclosed in quotations, whereas the Integer is a numeric value.
ball.type = "spike"; is a string type.
Thus, the ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.
Learn more about the execution here:
brainly.com/question/20493746
#SPJ1
Peter has a box containing 65 red and blue balls. Counting them, he realizes that there is a ratio of 3 red balls to 10 blue balls. How many blue balls does he have in total?
He started out with 47 balls after winning 2 blue balls and losing 3 red balls.
What is equation?The definition of an equation in algebra is a mathematical statement that demonstrates the equality of two mathematical expressions. For instance, the equation 3x + 5 = 14 consists of the two equations 3x + 5 and 14, which are separated by the 'equal' sign. Coefficients, variables, operators, constants, terms, expressions, and the equal to sign are some of the components of an equation.
The "=" sign and terms on both sides must always be present when writing an equation. Equal treatment should be given to each party.
Here,
Let the number of blue balls be x and the number of red balls be y,
after 5 days ,
x + 10 = y - 15
after 9 days ,
x + 18 = 2 * ( y - 27 )
subtracting both,
8 = y - 39
y = 47
The number of red balls in beginning is 47.
He had 47 balls in the beginning as he win 2 blue ball and lose 3 red balls.
Therefore, He started out with 47 balls after winning 2 blue balls and losing 3 red balls.
Learn more about balls on:
https://brainly.com/question/19930452
#SPJ2
how many optical disc of 720mb storage capacity are needed to store 20gb storage of hard disc
The automation paradox states: “The more automated machines are, the less we rely on our own skills.” But instead of relying less on automation to improve our skills, we rely even more on automation.” Elaborate further on the skills we would lose as automation is implemented.
The skills we would lose as automation is implemented are:
Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.What takes place if automation takes over?The Automation can lead to lost of jobs, as well as reduction in wages.
Note that Workers who are able to work with machines are said to be the ones that will be more productive than those who cannot use them.
Note that automation tends to lower both the costs as well as the prices of goods and services, and thus they makes consumers to be able to feel richer as well as loss of some skills for workers.
Therefore, The skills we would lose as automation is implemented are:
Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.Learn more about automation from
https://brainly.com/question/11211656
#SPJ1
Answer: Automation will elimate problem solving skills and communication skills.
Explanation: With the inability to solve problems we lose the skill of using our imaginationa and allowing our brain cells to grow. When you figure out and solve a problem your brain gains more knowledge and you are exercising your brain cells, if you don't use them you will lose them and your inability to make decisions well because there is now AI doing it for you. Also communication one being writing if we no longer have to write with pen and paper we lose the ability to communicate properly in writing our grammer becomes poor and handwriting will no longer be a skill because you never use it.
Write a program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.
Use a Scanner object to read in a double value for the monetary amount
Convert the total monetary amount to an integer representing the total number of cents (there are 100 cents in a dollar)
US monetary denominations
ten dollar bill = 1000 cents
five dollar bill = 500 cents
one dollar bill = 100 cents
quarter coin = 25 cents
dime coin = 10 cents
nickel coin = 5 cents
penny coin = 1 cent
Use integer division (/) and modulus (%) to calculate each denomination and the cents left over
Hint: You will need to successively divide the remaining cents by the number of cents in the denomination, starting with the ten dollar bills.
tens = remainingCents / 1000; // Divide the total cents by the number of cents in $10
remainingCents = remainingCents % 1000; //Remainder of division by 1000 is what is left after $10 bills taken out
When user input appears as shown in Figure 1, your program should produce output as shown in Figure 2.
Figure 1: (input)
37.84
Figure 2: (output)
$37.84 is equivalent to the following:
3 ten dollar bills
1 five dollar bills
2 one dollar bills
3 quarters
0 dimes
1 nickels
4 pennies
import java.util.Scanner;
public class MoneyConversion
{
// This program reads a monetary amount and computes the equivalent in bills and coins
public static void main (String[] args)
{
double total;
int tens, fives, ones, quarters, dimes, nickels;
int remainingCents;
Scanner scnr = new Scanner(System.in);
// Read in the monetary amount
total = scnr.nextDouble();
// Add the remaining code to finish out the program
}
}
Using the knowledge of computational language in python we can write the code as program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.
Writting the code:import java.util.Scanner;
public class Money {
public static void main(String[] args) {
double amount; // This displays user's amount
int one, five, ten;
int penny, nickel, dime, quarter;
// Create a Scanner object to read input.
Scanner kb = new Scanner(System.in);
// Get the user's amount
System.out.print("What is the amount? ");
amount = kb.nextDouble();
// Calculations
ten = (int) (amount / 10);
amount = amount % 10;
five = (int) (amount / 5);
amount = amount % 5;
one = (int) (amount / 1);
amount = amount % 1;
quarter = (int) (amount / .25);
amount = amount % .25;
dime = (int) (amount / .10);
amount = amount % .10;
nickel = (int) (amount / .05);
amount = amount % .05;
penny = (int) (amount / .01);
amount = amount % .01;
// Display the results
//println adds a new line by default
System.out.println(ten + " tens.");
System.out.println(five + " fives.");
System.out.println(one + " ones.");
System.out.println(quarter + " quarters.");
System.out.println(dime + " dimes.");
System.out.println(nickel + " nickels.");
System.out.println(penny + " pennies.");
}
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
Isabelle just purchased a camera with an 18-MP image sensor. Based on this, how many pixels can her camera capture and process?
Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.
What does a pixel on a camera sensor measure?In regards to picture and photography, the more pixels, the higher the detail as well as the sharpness of the image that is display or shown.
Note that the Resolution is seen as the measurement of image sharpness and the fact is that it is one that can be expressed in millions of pixels, as well as in megapixels.
Therefore, Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.
Learn more about image sensor from
https://brainly.com/question/13107084
#SPJ1
Answer:
18 million pixels
Explanation:
connexus quiz
Two examples of a relation and their candidate key.
The two examples of relation and their candidate key are as follows:
STUD_NO in STUDENT relation.FAMIL_EARN in ECoNOMIC relation. What is the Candidate key?The candidate key may be defined as a particular kind of field in a relational database that can significantly recognize each unique record independently of any other data.
The candidate key remarkably illustrates the minimal set of ascribes that can uniquely identify given characteristics of the data. More than one candidate key takes place to represent a given set of data and information on the basis of some attributes.
Therefore, the two examples of relation and their candidate key are well described above.
To learn more about Candidate key, refer to the link:
https://brainly.com/question/13437797
#SPJ1
what do u mean by server ?
what cloud computing storage
Answer:
It's where data is stored on the internet via the cloud servers. This allows for access of your data pretty much anywhere you have internet depending which service you stored your data on.
Examples:
Dropbox
Amazon Web Services (AWS)
iCloud
Mega.nz
User asks you to develop a program that calculates and then prints interest earned on a bank
balance. Program should print interest earned for the same balance when interest is accumulated
annually, semiannually and quarterly.
Interest earned yearly-balance * rate /100
Interest earned semiannually balance*rate/2/100
Interest earned quarterly= balance*rate/4/100
for annual
for semi annual
for quarterly
00 is Current (1) times resistance (R)
The program that calculates and then prints interest earned on a bank balance is given below:
The Program#include <bits/stdc++.h>
using namespace std;
int main()
{
double principle = 10000, rate = 5, time = 2;
/* Calculate compound interest */
double A = principle * (pow((1 + rate / 100), time));
double CI = A- principle;
cout << "Compound interest is " << CI;
return 0;
}
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1
Which statement about the discipline of information systems is true?
A. It involves organizing and maintaining computer networks.
B. It involves connecting computer systems and users together.
C. It involves physical computer systems, network connections, and
circuit boards.
D. It involves all facets of how computers and computer systems
work
Answer:
C.
Personal computers, smartphones, databases, and networks
Answer:
IT'S B
Explanation:
TRUST ME I HAD TO LEARN THE HARD WAY!!
Please write in Python
A program that returns the price, delta and vega for European and American options is given below:
The Programimport jax.numpy as np
from jax.scipy.stats import norm
from jax import grad
class EuropeanCall:
def call_price(
self, asset_price, asset_volatility, strike_price,
time_to_expiration, risk_free_rate
):
The complete code can be found in the attached file.
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1
Most of the devices on the network are connected to least two other nodes or processing
centers. Which type of network topology is being described?
bus
data
mesh
star
Question 15 (1 point)
Saved
Carla is taking a trip to a cabin to write and she's looking for a typewriter that
doesn't need electricity or any other kind of power. What would be the BEST option
for her?
a tablet
a manual typewriter
an electric typewriter
an IBM typewriter
Since Carla looking for a typewriter that doesn't need electricity or any other kind of power, the best option would be: B. a manual typewriter.
What is an electrical circuit?An electrical circuit can be defined as an interconnection of different electrical components, in order to create a pathway for the flow of electric current (electrons) due to a driving voltage.
The components of an electrical circuit.Generally, an electrical circuit comprises the following electrical components:
ResistorsCapacitorsBatteriesTransistorsSwitchesWiresFuseGenerally speaking, a manual typewriter is a mechanical device that is designed and developed to enable an end user to type, especially without the use of electricity or any other kind of power.
Read more on an manual typewriter here: https://brainly.com/question/2939803
#SPJ1
why computer is now considered a commodity.
Answer:
Computers are considered commodities because they are relatively easy to produce and there is a lot of competition in the market. This means that prices are relatively low and there is not a lot of differentiation between products.
Explanation:
Hope this helps!
In Java, System is a:
Answer:
In Java, System is a:
one of the core classes
Question 2(Multiple Choice Worth 5 points)
(2.02 LC)
When asking the user for input of a numeric value that is negative and has decimal, use the function
float()
int()
print ()
str()
Answer:
float()
Explanation:
a) Explain why there are more general-purpose registers than special purpose registers.
Answer:
Special purpose registers hold the status of a program. These registers are designated for a special purpose. Some of these registers are stack pointer, program counter etc. General purpose registers hold the temporary data while performing different operations.
The simplest way to synchronize a dialogue is by using a _____ block found within the Control category.
still
pause
hold
wait
I NEED THE ANWER
The simplest way to synchronize a dialogue is by using a still block found within the Control category.
What is a Dialogue?The term known as Dialogue is said to be a word that connote a form of a written or spoken kind of conversational exchange that tends to exist between two or a lot of people, and a literary as well as theatrical form that shows such an exchange.
Note therefore, that The simplest way to synchronize a dialogue is by using a still block found within the Control category.
Learn more about dialogue from
https://brainly.com/question/6950210
#SPJ1
Which of the following types of networks can be used to connect different office
locations of one large company?
Local Area Network (LAN)
Wide Area Network (WAN)
Metropolitan Area Network (MAN)
Controlled Area Network (CAN)
The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).
What do you mean when you say "WAN" (wide area network)?A wide area network, or WAN for short, is a sizable information network unconnected to a particular region. Through a WAN provider, WANs can make it easier for devices all around the world to communicate, share information, and do much more.
It is a telecommunications network that covers a substantial geographic area is referred to as a wide area network. Leasing telecommunications circuits is a common way to set up wide area networks.
Therefore, The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).
Learn more about Wide Area Network (WAN) from
https://brainly.com/question/14959814
#SPJ1
Type the correct answer in the box. Spell all words correctly.
Complete the sentence describing an analog signal.
An analog video is a video signal transmitted by an analog signal, captured on a _____
.
The table style feature changes the ________ of a table.
a) column width
b) row height
c) appearance
Answer:
Even before seeing the options I thought appearance so option C all the way.Good luck ✅Ace that work
What are some options you can set when adding a border? Check all that apply.
O line type
O border margins
O row height
Ocolumn width
Oline weight
O where to apply the border
A data breach is the protection of secure data in an unsecured environment.
True or False.
IT law is a branch of law that provides a legal framework for collecting, storing, and distributing electronic information. True or False.
Answer: False and True
Explanation:
A data breach is when unsecure data in a secure enviroment gets leaked.
I need help for javascript shopping cart
A program that creates a virtual online grocery website
The PHP file<html>
<head>
</head>
<body>
<?php
$servername = "localhost";
$username = "///";
$password = "///";
$dbname = "assignment1";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection error: " . $conn->connect_error);
}
$product_name = "";
$unit_price = "";
$unit_quantity = "";
$in_stock = "";
$itemId = "";
$showNoItem = "display: none";
$showItem = "";
if (isset($_GET['data'])) {
$itemId = $_GET['data'];
$sql = "SELECT product_id , product_name , unit_price, unit_quantity, in_stock FROM products where product_id=".$itemId;
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$showNoItem = "display: none";
$showItem = "";
while($row = $result->fetch_assoc()) {
$product_name = $row["product_name"];
$unit_price = $row["unit_price"];
$unit_quantity = $row["unit_quantity"];
$in_stock = $row["in_stock"];
break;
}
} else {
$showNoItem = "";
$showItem = "display: none";
}
} else {
$showNoItem = "";
$showItem = "display: none";
}
?>
<div id="noItem" style="<?php echo $showNoItem?>">Select items from categories on the left.</div>
<div id="itemDiv" style="<?php echo $showItem?>">
<div class="item-title">
<span class="item-name"><?php echo $product_name?> </span>
(<span class="item-quatity"><?php echo $unit_quantity?></span>)
</div>
<div class="itemDetail">
<div class="item-desp">
<div class="in-stock-div">In Stock: <span class="item-in-stock"><?php echo $in_stock?> </span> </div>
<div class="price-tag-div">Price: <span class="item-price-red">$<?php echo $unit_price ?></span></div>
<p></p>
<form action="cart.php" method="get" target="cart" class="order-row" onsubmit="return validate_quantity">
<input type="number" class="item-quatity-input spin0" min="1" value="1" name="display" id="display" onkeyup="addCartButtonCtrl()" >
<input type="hidden" name="productId" value="<?php echo $itemId?>">
<input type="hidden" name="productInfo" value='<?php echo "$product_name($unit_quantity)"?>'>
<input type="hidden" name="productPrice" value="<?php echo $unit_price ?>" >
<div class="add-cart-div">
<input id="cart-button" class="btn btn-primary" type="submit" value="Add to Cart" title="Add to cart." onclick="updateShoppingCart()">
</div>
</form>
</div>
</div>
</div>
<?php
$conn->close();
?>
</body>
</html>
Adding the CartButtonaddCartButtonCtrl(){
$action = $_GET['action'];
switch ($action) {
case 'Add':
$product_id = $_GET['productId'];
$product_name = $_GET['productInfo'];
$unit_price = $_GET['ProductPrice'];
if(!isset($_SESSION['cart'])) {
$_SESSION['cart']=array();
}
$index = getItemIndex($product_id);
if ($index < 0) {
$item_array=array('product_id' => $product_id,
'product_name' => $product_name,
'unit_price' => $unit_price,
}
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1