1.
#include <iostream>#include <string>
using namespace std;
int main(){ string chars; // This is where we will put our @ signs and print them for(int x=0;x < 5; x++){
chars = chars + '@'; // This will concatenate an @ sign at the end of the variable cout << chars << "\n"; }}
2.
#include <iostream>#include <string>
using namespace std;
int main(){ string name; // Our variable to store the name cout << "What is your name? \n"; // Asks the user for their name cin >> name; cout << "\nWell, hello " << name << "!";}
3.
#include <iostream>#include <string>
using namespace std;
int main(){ int number; // Our variable cout << "Enter a number\n"; // Asks for a number cin >> number; cout << "You entered " << number << "%!";}
4.
#include <iostream>#include <string>
using namespace std;
int main(){ int number; // Our variable cout << "Enter a number\n"; cin >> number;
int check = number % 2; // The modulo operator (the percent sign) gets the remainder of the quotient if (check == 0) { cout << number << " is even!"; // If the remainder is 0 then it prints out "x is even" } else { cout << number << " is odd!"; // If the remainder is not 0 then it prints out "x is odd" }}
5.
#include <iostream>#include <string>
using namespace std;
int main(){ float r; // Our variable cout << "Enter a radius\n"; cin >> r; if (r < 0){ cout << "Lol. No."; // If the radius is less than zero print out that message } float circumference=2*3.14*r; float area=r*r*3.14; cout << "\n\n Circumference of circle: " << circumference; cout << "\n Area of circle: " << area;}
Answer:
The control unit of the central processing unit regulates and integrates the operations of the computer. It selects and retrieves instructions from the main memory in proper sequence and interprets them so as to activate the other functional elements of the system at the appropriate moment
An information system is crucial to the success of a business. Itemized below are five benefits of operating an information system in a business.
<h3>What are the benefits of an Information System?</h3>
Information systems are important because:
- They help to increase and enhance operational efficiencies such as accounting, sales, inventory, and HR operations.
- They help to minimize costs. As the business makes more and more informed decisions, its costs will drop.
- It enhances customer service. Information about customers helps the business to tailor its services to the requirements of each customer.
- Information system helps the decision-makers in the business to make better and more informed decisions.
- Information systems help to ensure business continuity.
<h3>What are the requirements for creating an information system?
</h3>
An information system requires the following:
- Hardware for the computer workstation and addendums
- Software
- A network communication amongst the computers and hardware
- a map of the company's processes and the people responsible for such processes
- A procedural manual.
- Existing data from the business.
For the barber's shop, for example, some of the components of the information system he must put in place are:
A workstation that collects information about:
- Clients
- Details of Sales
- Expenses
- Compliance dates and records etc.
Learn more about Information Systems at:
brainly.com/question/25226643