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
Andrew [12]
3 years ago
12

Write a statement that calls a function named IncreaseItemQty, passing the variable addStock. Assign mugInfo with the value retu

rned by IncreaseItemQty.
Computers and Technology
1 answer:
PolarNik [594]3 years ago
8 0

Answer:

Explanation:

#include <stdio.h>

#include <string.h>

typedef struct ProductInfo_struct {

char itemName[30];

int itemQty;

} ProductInfo;

ProductInfo IncreaseItemQty (ProductInfo productToStock, int increaseValue) {

productToStock.itemQty = productToStock.itemQty + increaseValue;

return productToStock;

}

int main(void) {

ProductInfo mugInfo;

int addStock;

addStock = 10;

scanf("%s", mugInfo.itemName);

scanf("%d", &mugInfo.itemQty);

**** /* Your solution goes here */ ****

printf("Name: %s, stock: %d\n", mugInfo.itemName, mugInfo.itemQty);

return 0;

}

You might be interested in
Company ABC has always used passwords to protect the highly confidential information in their company. Recently, someone who was
Leno4ka [110]
Company ABC should use passwords but also have them use a code so that not just anyone can get in. Kinda like facebook.
3 0
3 years ago
How many possible password of length four to eight symbols can be formed using English alphabets both upper and lower case (A-Z
Fynjy0 [20]

Answer:

In a password, symbol/characters can be repeated. first calculate the total

symbols which can be used in a password.

So there are total 26(A-Z),26(a-z),10(0-9) and 2(_,$) symbols.

that is equal to 26+26+10+2=64.

Total number of password of length 4:

here at each place can filled in total number of symbols i.e 64 way for each

place.Then total number of possible password is:

64*64*64*64=16777216

Total number of password of length 5:

here at each place can filled in total number of symbols i.e 64 way for each

place.Then total number of possible password is:

64*64*64*64*64=1073741824

Similarly,

Total number of password of length 6:

64*64*64*64*64*64=68719476736

Total number of password of length 7:

64*64*64*64*64*64*64=4398046511104

Total number of password of length 8:

64*64*64*64*64*64*64=281474976710656

Hence the total number of password possible is:285,942,833,217,536

7 0
4 years ago
Please Help!<br><br>in return brainliest and special thanks
hichkok12 [17]
1. 3
2. 2
3. 3

Good luck!
6 0
4 years ago
Dns (domain name system) servers translate all domain names into _____.
pshichka [43]
They translate them into ip addresses.
5 0
4 years ago
Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Rom
ELEN [110]

cout<<"Enter a number in the range of 1 - 10 ";

cin>>num;

// check if the input is valid

if(num<0 || num > 10)

cout<<"Invalid Number"

// checking for appropriate output

switch(num){

case 1:

cout<< "|";

case 2:

cout<< "||";

case 3:

cout<< "|||";

case 4:

cout<< "|V";

case 5:

cout<< "V";

case 6:

cout<< "V|";

case 7:

cout<< "V||";

case 8:

cout<< "V|||";

case 9:

cout<< "|X";

case 10:

cout<< "X";

default :

cout<<" Nothing found";

}

8 0
3 years ago
Other questions:
  • Transcription in a virus that has an rna genome is complex because __________.
    11·1 answer
  • In the Dread Pirate Roberts case, U.S. Ulbricht, 31 F. Supp. 3D 54D (S.D.N.Y. 2014), one of the issues that the court addressed
    10·1 answer
  • Construct a regular expression that recognizes the following language of strings over the alphabet {0 1}:
    10·1 answer
  • Implement the function is_maxheap which takes a list of integers and returns True if the list represents a valid max-heap, and F
    6·1 answer
  • Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo
    13·1 answer
  • The four smallest numbers (40 points) Write an ANNA assembly program (smallest_four.ac) that finds the four smallest numbers ent
    11·1 answer
  • Computers are able to think like human beings true or false?
    10·1 answer
  • Why can a bank afford to pay an interest rate on a savings account?
    11·1 answer
  • Name the contributory components that are considered when determining an E/M code; they are not considered key components:
    15·1 answer
  • Explain in detail what it means to synchronize computers and mobile devices and include at least two strategies for keeping your
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!