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
Which invention spurred the development of the digital camera?
Igoryamba

Answer:

B) The charge-coupled device

Explanation:

Around 1964 the first CMOS (Complementary Metal Oxide Semiconductor) circuits were developed. This would be the "embryo" of the Charge-coupled Device (CCD), which equips current digital cameras and who is responsible for capturing images.

CMOS is a small circuit that uses very little energy and stores information such as date, time and system configuration parameters.  

The first CCD was developed in 1969 and it is still used today in many portable devices and computers.

4 0
4 years ago
Use the horizontal scroll bar to navigate through the _______.?
soldier1979 [14.2K]
The answer is B, rows. 

You cannot scroll through tabs, you always click them. Worksheets just doesn't make sense and collums are vertical. This leaves your only answer as rows.
7 0
4 years ago
What is a many-to many types of correspondence?
Ann [662]

Answer:

We have many types of correspondences. There are internal correspondences, external correspondences, sales correspondences, and personalized correspondences. By many to many correspondences we mean, a lot of people correspond with a lot many people from another department, company or market, or any set of people in fact. An internal correspondences, sales correspondences, personalized correspondences or external correspondences can be of many to many types, and as well as of others like one to one, many to one and so on.

Explanation:

Please check the answer.

5 0
3 years ago
A user is given Read permission to a file stored on an NTFS-formatted volume. The file is then moved to a different folder on a
Sav [38]

Answer:

Permissions do not apply here.

Explanation:

The reason is that FAT partitions do not have files and folders permissions, only have sharing permissions. Therefore, once the file has been removed from the NTFS partition, the restrictions that once applied to it are now gone.

5 0
3 years ago
you have a small network in your business with just a few network devices connected along with 22 linux computers and you want t
alekssr [168]

Answer: traceroute

Explanation: Hope this helps <3

8 0
4 years ago
Other questions:
  • 7.14 LAB: Word frequencies Write a program that reads a list of words. Then, the program outputs those words and their frequenci
    10·1 answer
  • What is the name of small programs stored on the hard drive that tell the computer how to communicate with a specific hardware d
    5·1 answer
  • What term is used to describe an individual's money and personal property? budget income assets finances
    12·2 answers
  • In the case of a security incident response, the Building and Implementing a Successful Information Security Policy whitepaper c
    13·1 answer
  • In 5-10 sentences, describe how computer networks work.
    6·1 answer
  • Under which menu option of a word processing program does a callout appear?
    7·2 answers
  • Consider a direct-mapped cache with 256 blocks where block size is 16 bytes. The following memory addresses are referenced: 0x00
    7·1 answer
  • Which formatting options can be changed by selecting the Design tab? Check all that apply.
    7·2 answers
  • The set Canvas.PaintColor to block sets the paint color for the _____ .
    5·1 answer
  • which of the following statements about the evolving relationship between traditional newspaper operations and blogging is true?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!