1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
serg [7]
4 years ago
7

You are given two variables, already declared and assigned values, one of type double, named price, containing the price of an o

rder, and the other of type int, named totalNumber, containing the number of orders. Write an expression that calculates the total price for all orders.
Computers and Technology
1 answer:
Oksi-84 [34.3K]4 years ago
7 0

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main() {

//variable to store input

double price;

int totalNumber;

// variable to store total price

double total_price;

cout<<"Enter the price of an order:";

// read the price of an order

cin>>price;

cout<<"Enter the number of orders:";

// read the total number of orders

cin>>totalNumber;

// calculate total price of all orders

total_price=price*totalNumber;

cout<<"total price of all orders: "<<total_price<<endl;

return 0;

}

Explanation:

Declare three variables "price" of double type,"totalNumber" of int type And "total_price" of type double.Read the value of an order and number of orders. The calculate the total price by multiply "price" with "totalNumber" and assign it to variable "total_price". Print the total price.

Output:

Enter the price of an order:12.5                                                                                                                              

Enter the number of orders:3                                                                                                                                  

total price of all orders: 37.5

You might be interested in
Help fast pls will mark brainliest - What model is best to use for large complex accounting software that can be broken down int
Nata [24]
The answer is RAD model
6 0
3 years ago
A carver begins work on the following block of granite that weighs 2700 g. What is the density of the granite?
bogdanovich [222]

Given that,

Mass of the block, m = 2700 g

Let the dimensions of the block are 20 cm, 5 cm and 10 cm.

To find,

The density of the granite.

Solution,

Let d is the density of the granite. We know that the density of an object is equal to the mass per unit volume. So,

d = m/V

or

d=\dfrac{2700\ g}{20\ cm\times 5\ cm\times 10\ cm}\\\\d=2.7\ g/cm^3

So, the density of the block is 2.7 m/s².

8 0
3 years ago
Can you sue someone in brainly? How is this not relate to education?
Harman [31]

Answer:

Ima say no you cant but you can probably email the person in charge of brainly and tell them and then i do not know the answer to the 2nd question.

6 0
3 years ago
A tripod head can move vertically or horizontally. What term describes these movements?
AnnyKZ [126]

The term for vertical movement of a tripod is Tilt. The term for horizontal movement is Pan.

Vertical movement of the camera angle involves pointing the camera up and down. This sort of movement is achieved so as to follow a subject or show the top and bottom of a still object. With Tilt, you can show how tall objects are. On the other hand, the tripod’s horizontal movement is used for a smooth effect. Like Tilting, it shows a subject or show the distance from left to right between two objects. Pan shots are great for panoramic views .

7 0
4 years ago
Read 2 more answers
What specific record type is found in every zone and contains information that identifies the server primarily responsible for t
ValentinkaMS [17]

The SOA is the specific record type found in every zone and contains information that identifies the sever primarily responsible for the zone as well as some operational properties for the zone.

Explanation:

The Start of Authority Records (SOA) has the following information they are

Serial Number: This number is used to find when zonal information should be replicated.

Responsible person: The Email address of a person is responsible for managing the zone.

Refresh Interval: It specifies how often a secondary DNS server tries to renew its zone information.

Retry Interval: It specifies the amount of time a secondary server waits before retrying the zone information has failed.

Expires After: IT specifies the amount of time before a secondary server considers its zone data if it can't contact with the primary server.

Minimum TTL: It specifies the default TTL value for a zone data when a TTL is not supplied.

4 0
4 years ago
Other questions:
  • Assume that circle and objects are created as follows Circle circle = new Circle(1); GeometricObject object = new GeometricObjec
    15·1 answer
  • How to write a program converting RGB to CMYK in python
    6·1 answer
  • You have begun a new project and want to keep all of the work you're doing on the project in its own directory. You will create
    8·2 answers
  • How do Filament 3D printers build a model?
    8·1 answer
  • What is used to determine when the communications channels are clear and when a device is free to transmit data
    6·1 answer
  • An image can be copied from the Internet or another location and pasted into Paint.
    13·1 answer
  • What are the uses of plotters​
    7·2 answers
  • Which two statements describe benefits of a block-based coding language
    11·2 answers
  • Who is the traitor of UA?<br><br>1 Karishma<br><br>2 Yuga Aoyama<br><br>3 Denki <br><br>4 Mineta
    6·1 answer
  • Fill in the blanks to help write this professional e-mail:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!