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
yKpoI14uk [10]
3 years ago
7

A customer in a store is purchasing seven items. Develop pseudo code for a program that asks for the item purchased, and price o

f each item. It then displays the subtotal of the sale, the amount of city, country, and state sales tax, and the total.
Computers and Technology
1 answer:
Sunny_sXe [5.5K]3 years ago
8 0
$items = array['item 1', 'item2', 'item3', 'item4', 'item5', ' item6', 'item7']; <-- Items
$ = i;
while($items >= $i){ <-- Loop through the items
     connect_db(); <-- Connect to database where the info is stored;
     run_query("SELECT * FROM table_name WHERE item_name=$item[i]"); <-- run the query to find info
$subtotal = array[0] + array[1] + array[2] + array[3] + array[4] + array[5] + array[6]; <-- Adding total price of each item
$total += $row['price'] * $city_tax; <-- calculating city sales tax
$total += $row['price'] * $state_tax; <-- calculating city sales tax

echo $row['name'];
echo $subtotal;
echo $total;
}


You might be interested in
This refers to the people involved in the data processing operation.
yawa3891 [41]
The people involved in the data processing operation are known as <span>Peopleware.</span>
6 0
3 years ago
Help!! Best answer will get Brainliest!!
Eddi Din [679]

Answer:

answer(s):

-set goals

-select a topic

-write down research questions

Hope this helped and sorry for the bold. <3

Explanation:

6 0
3 years ago
Read 2 more answers
Which directive is used when defining 64-bit IEEE long reals?
Taya2010 [7]

Answer:

The answer is "Option b".

Explanation:

In the project of IEEE-754 to define 64 -bit we require a REAL8 double precision that is equal to 8 bytes and 64 bit, and it is also used for floating-point arithmetic, and other options were not correct that can be described as follows:

  • In option a, REAL4 is used to define 32-bit, that's why it is not correct.
  • In option c, This type of declaration is not valid in IEEE, that's why it is wrong.
  • In option d, The REAL is a keyword that is used to define a value but in this, there is no value to define, that's why it is wrong.

7 0
3 years ago
If a database table is to hold data on 52 students it must have 52?
Marina CMI [18]

Answer:

yes

Explanation:

6 0
3 years ago
Why do people yeet yeet and ree
DiKsa [7]

Answer:

Cause they are trying to be annoying

Explanation:

Something is wrong with them :)

8 0
3 years ago
Read 2 more answers
Other questions:
  • If you turn off system protection on a disk, windows ____ the restore points that are on your computer.
    13·1 answer
  • MSSQL
    10·1 answer
  • ____________________ parameters are useful in three situations: • When the value of the actual parameter needs to be changed • W
    5·1 answer
  • What are some disadvantages of using a word processor over a type writer?​
    7·1 answer
  • Why does Microsoft release new versions of its Windows operating system every few years?
    9·2 answers
  • Lucy wants to add some notes in her research paper that provide additional information to the reader. She also wants to display
    14·1 answer
  • Demonstrate the register addressing mode for the following instructions. Also what addressing mode belongs to these instructions
    11·1 answer
  • I have a question about Java Script How do I make gravity working on a game and need to know not in a rush though
    15·1 answer
  • How has the dependence on technology made humanity less intelligent?​
    15·1 answer
  • Which group scope can be used to assign permissions to resources only in the domain in which the group is created
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!