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;
}
Google, would be the best because of all of the different site, hope this helps!
: )
Answer:
Encapsulation
Explanation:
Encapsulation is referring to the concept that data buding with some approach or method that is applied to that selected data. it also restricts the use of some internal data of an object. The motive behind restricting the data is to prevent the misuse of the data.
For example- in java, encapsulation is refer to the wrapping of code with the data in one unit.
Answer:
50
Explanation:
He bought 25 dozens of eggs:
25 (12) = 300
He used 6 eggs to make 1 cake, so:
300 eggs/6 eggs per cake = 50 cakes
Answer: ensuring that a system is not changed by a subject that is not authorized to do so
Explanation: Access control refers to pribcues which are employed in the bid thlo ensure the security of data and information. It provides the ability to authenticate and authorize access to information and data thereby preventing unwarranted access and tampering of the information. Integrity in terms of data security and access control is is concerned with modification to an existing or original data by unauthorized sources. When unauthorized addition or subtraction occurs on a data, the integrity of such data has been compromised. Therefore, authorization is required whenever a source is about to access certain information whereby only those with the right authorization code will be allowed, Inputting an incorrect pass code after a certain number of tries may result in system lock down as access control detects a a possible intrusion