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
Amiraneli [1.4K]
3 years ago
5

write an algorithm that gets the price for item A plus the quantity purchased. The algorithm prints the total cost, including a

6% sales tax.
Computers and Technology
1 answer:
I am Lyosha [343]3 years ago
4 0

Answer:

<u>Algorithm() </u>

1. p = Enter the price of item A.

2. c = Enter the number of A’s purchased.

3. Now the price per item with tax is:

              t= p+(p*6/100)

4. The total cost of c items:  

             ct= t * c.

5. Print ct.

In this algorithm, we are taking the price per item and counting it’s cost including tax. Then we are multiplying the price per item with tax with the number of items we purchase, to find the overall cost with tax.

You may calculate the overall cost without tax as (p*c). Then you can find the overall cost with tax as ((p*c)+(p*c*6/100)), as in both way, we will get the same result.

You might be interested in
What is the difference between C and C++ programming Language?
Elena L [17]

Answer:

 The main difference between the c and the C++ programming language are as follows:

  • The C language is the type of procedure programming language and on the other hand, C++ is the combination of object oriented (OOPS) and the procedure programming language.
  • The C programming language does not support any type of object and class in the system. While the C++ programming language is also known as hybrid programming language.
  • The C programming language does not support any type of operator overloading and function. On the other hand, the C++ programming language supported both the function overloading and the function.  

4 0
3 years ago
Cuales son las intenciones de la tecnología para el desarrollo social y calidad de vida
Nuetrik [128]

Answer:

jgiofhkjufihojsfguisjkdghsufijk

Explanation:

eafijbuiaoehfkjhadufyhbjadnifujkhmadjnigjkmhadfngkjadhmfj

7 0
3 years ago
Complete the statement below with the correct term. The best place to start when you are looking for information about a device
nexus9112 [7]

Answer:

website

Explanation:

The best place to start when you are looking for information about a device or an application is the website of the company that manufactured the device or programmed the software.

7 0
3 years ago
Read 2 more answers
Consider this data sequence: "fish bird reptile reptile bird bird bird mammal fish". There is a CONSECUTIVE REPETITION of length
ioda

Answer:

The code is given below. Follow the question and the code definitions for better understanding.

Explanation:

#include<iostream>

#include<string>

using namespace std;

int main(){

string pastWord="";

string currentWord,nextWord;

int n,t;

int singleton=0;

int consecutive=0;

cout<<"Enter words. ('xxxxx' to exit):\n";

cin>>nextWord;

do{

currentWord=nextWord;

cin>>nextWord;

if ( (currentWord!=pastWord)&&(currentWord!=nextWord) )

singleton++;

else if((currentWord==pastWord)&&(currentWord!=nextWord))

consecutive++;

pastWord=currentWord;

}while(nextWord!="xxxxx");

n=singleton;

t=consecutive;

cout<<"There were "<<n<<" singletons and "<<t<<" consecutive repetitions.";

cin.get();

return 0;

}

8 0
3 years ago
What is the difference between organizing your data in a list and organizing it in a data extension?
azamat

The difference between organizing your data in a list and organizing it in a data extension is that in a list, you organize subscribers by name. In a data extension, you organize them by region.

<h3>What is Data extension?</h3>
  • A data extension contains contact information. A data extension is just a table with fields for contact information.
  • Data extensions can work independently or in conjunction with other data extensions.
  • The data may be used for searches, information retrieval, and sending to a selection of subscribers.
  • You have two options for importing data extensions: manually or automatically using Automation Studio or the Marketing Cloud API.
  • Both Contact Builder and Email Studio allow the usage of data extensions, but Email Studio is the only place where sharing, permissions, and other features are available.

To learn more about data extension, refer to the following link:

brainly.com/question/20388719

#SPJ4

7 0
2 years ago
Other questions:
  • An object reference provides a(an)______for an object and is used to gain access to the object (Points : 2) entry
    11·1 answer
  • Which function prompts the user to enter information?
    10·2 answers
  • How does adding additional light bulbs affect a series circuit?
    10·1 answer
  • Is regular Facebook use healthy? Why or why not?
    10·2 answers
  • How to change screen resolution in windows 10?
    5·1 answer
  • Why do you think Jacinda believed what people told her about her own beauty? Even if you understand that what you see on social
    13·1 answer
  • (14) Click on the
    7·2 answers
  • What are the advantages of mine shaft gear and the disadvantaged​
    9·1 answer
  • What is contained in the Open Files section of Shared Folders? ​
    13·1 answer
  • Which type of game requires you to read people’s expressions to anticipate their moves?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!