Answer:
Following are the code to this question:
#include <iostream>//header file
using namespace std;
int triplebyValue(int count)//defining a method triplebyValue
{
int x=count*3;//defining a variable x that multiply by 3 in the count
return x;//return value of x
}
void triplebyReference(int& count)//defining a method triplebyReference that hold count variable as a reference in parameter
{
count*=3;//multipling a value 3 in the count variable
}
int main()//main method
{
int count;//defining integer variable
count=triplebyValue(3);//use count to call triplebyValue method
cout<<"After call by value, count= "<<count<<endl;//print count value with message
triplebyReference(count);//calling a method triplebyReference
cout<<"After call by reference, count= "<<count<<endl;//print count value with message
return 0;
}
Output:
After call by value, count= 9
After call by reference, count= 27
Explanation:
In this code two methods "triplebyValue and triplebyReference" are declared, which accepts a count variable as a parameter, and in both multiply the count value by 3 and return its value.
Inside the main method, an integer variable "count" is declared that first calls the "triplebyValue" method and holds its value into count variable and in the next, the method value is a pass in another method that is "triplebyReference", and use print method to print both methods value with a message.
ERIC'S Company sells cement at 30.0 Ghana Cedis per bag. The company
however gives discount of 15% for customers that buy 100 or more bags, and 0% for
customers that buy less than 100 bags.
Write a pseudo code and present a flowchart that
will display the discount percentage when the quantity of bags purchased is entered.
Answer:
The pseudocode is as follows:
Input Quantity
Discount = 0%
If Quantity >= 100:
Discount = 15%
Print Discount
See attachment for flowchart
Explanation:
This line gets the quantity from the user
Input Quantity
This line initializes the discount to 0%
Discount = 0%
This checks if quantity is more than or equal to 100
If Quantity >= 100:
If yes, discount is set to 15%
Discount = 15%
This prints the discount percentage
Print Discount
See attachment for flowchart
System software includes all of the following except
Answer:
System software includes all of the following except Browsers.
Explanation:
I just know
System software includes all the following except Browsers. There are the based on the system software are the important parts.
What is software?
Software is the term for the intangible. The software is the most significant aspect. Software is a collection of rules, data, or algorithms used to run machines and perform certain tasks. Apps, scripts, and programs that run on a mobile device are referred to as software.
According to the system software, are the based on the operating system, management system, are the networking, translators, software utilities, are the networking. They are the browsers are not the used of the software, the significant components are the configuration.
As a result, the system software includes all the following except Browsers.
Learn more about on software, here:
https://brainly.com/question/985406
#SPJ2
BitTorrent, a P2P protocol for file distribution, depends on a centralized resource allocation mechanism through which peers are able to maximize their download rates.
True or False?
Answer:
yes. it is true. mark as brainlest