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
zepelin [54]
3 years ago
5

Write a C function to output only item names that their beginQty and endQty is the same. The arguments to the function are the a

rray and the number of elements in the array. Use array notation.
Computers and Technology
1 answer:
Nadya [2.5K]3 years ago
5 0

Answer:

Following are the function to the given question:

void same_quantity_inventory(inventory *arr, int size)//defining a method same_quantity_inventory that takes two parameters

{

   inventory *p = arr;//defining a pointer variable that holds array value

   while (p < arr + size)//defining while loop that checks pointer value less than arr and its size

   {

       if (p->endQty == p->beginQty)//use pointer to check array start and end value

           printf("name: %s, start quantity: %d, end quantity: %d\n", p->name, p->beginQty, p->endQty);//print value

       p++;//incrementing pointer value

   }

}

Explanation:

In the given code a method "same_quantity_inventory" takes two parameters that are "arr and size". In the next step, a pointer variable "p" is declared that holds the "arr" value. It defines the while loop that checks pointer value less than arr and its size inside the loop and if block is declared that use pointer to check array start and end value, and prints its calculated value.

You might be interested in
Low-end CRM systems are designed for companies like Boeing because they only have a few, large customers.
Arlecino [84]

Answer: False

Explanation:Low-end CRM system are specifically designed for those companies which are small scale but can connect to many businesses or organization at a time. These are the customer relationship management system that happens to analyze the functioning of the business with high count of small companies with appropriate amount of customers.Thus, the statement given is false.

6 0
3 years ago
Var amount = 100;
IRISSAK [1]

Answer:

0.1

Explanation:

The value of amount is 100.So in the if-else-if ladder first condition in if will be checked since the amount is greater than 50 so the value of discount will become 0.1 and the execution of if else if ladder will be finish.The compiler will not be executing elseif or else.So the answer to this question is 0.1.

4 0
3 years ago
What is PCM system? essay
brilliants [131]

A PCM system consists of a PCM encoder (transmitter) and a PCM decoder (receiver). The essential operations in the PCM transmitter are sampling, quantizing and encoding. All the operations are usually performed in the same circuit called as analog-to digital convert Early electrical communications started to sample signals in order to multiplex samples from multiple telegraphy sources and to convey them over a single telegraph cable. The American inventor Moses G. Farmer conveyed telegraph time-division multiplexing (TDM) as early as 1853. Electrical engineer W. M. Miner, in 1903, used an electro-mechanical commutator for time-division multiplexing multiple telegraph signals; he also applied this technology to telephony.

7 0
3 years ago
Which animation principle is applied to ‘sell’ the beginning of the character jump?
Sunny_sXe [5.5K]
Anticipation I think so but I’m not sure:)
3 0
2 years ago
Please can someone help my assignment.​
sweet [91]

Answer:

my hero academia fan!!!!!!

5 0
3 years ago
Other questions:
  • A ____________ variable is available throughout a program.
    7·1 answer
  • Word 2013 in order to share a document online you must first
    10·1 answer
  • Which of the following can be considered beta testing? A programmer at Linus Systems checks the integration of multiple modules
    14·1 answer
  • There are a few simple rules that you can follow to store and manage files and folders in your computer. What is the most import
    9·2 answers
  •  How does critically analyzing technology add value to interactions with people in personal and professional contexts?
    7·2 answers
  • A USB device used to transfer photos from the memory card to a hard drive is called a _____.
    5·2 answers
  • What is the Microsoft excel window where you work on. And it composed of three worksheet?​
    7·1 answer
  • B. Some of Company X's new practices and systems are unethical. Business ethics is a set of codes
    5·1 answer
  • Which of the following statements best explains how multitasking works in the human mind?
    11·1 answer
  • Question #2
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!