Answer:
Here is the C++ program.
#include <iostream> //to use input output functions
using namespace std; //to identify objects cin cout
void print(int sales){ //method that accepts integer as its parameter representing the sale for the day
for(int i=0;i<(sales/100);i++){ //loop to create a bar chart
cout<<"*"; } } //prints stars representing the sale amount for the day
int main(){
int sales1; // stores the sales of store 1
int sales2; // stores the sales of store 2
int sales3; // stores the sales of store 3
int sales4; // stores the sales of store 4
int sales5; // stores the sales for store 5
cout<<"Enter the sales for store 1: "; //prompts user to enter sales for store 1
cin >>sales1; //reads the value of sales for store 1 and stores it in sales1
print(sales1); //calls print method to display start representing the sales amount for the day for store 1
cout<<"\nEnter the sales for store 2: "; //prompts user to enter sales for store 2
cin >>sales2; //reads the value of sales for store 2 and stores it in sales2
print(sales2); //calls print method to display start representing the sales amount for the day for store 2
cout<<"\nEnter the sales for store 3: "; //prompts user to enter sales for store 3
cin >>sales3; //reads the value of sales for store 3 and stores it in sales3
print(sales3); //calls print method to display start representing the sales amount for the day for store 3
cout<<"\nEnter the sales for store 4: "; //prompts user to enter sales for store 4
cin >>sales4; //reads the value of sales for store 4 and stores it in sales4
print(sales4); //calls print method to display start representing the sales amount for the day for store 4
cout<<"\nEnter the sales for store 5: "; //prompts user to enter sales for store 5
cin >>sales5; //reads the value of sales for store 5 and stores it in sales5
print(sales5); } //calls print method to display start representing the sales amount for the day for store 5
Explanation:
The program is well explained in the comments attached with each line of the program. Lets say user enters 100 as sales for store 1. Then the for loop works as follows:
for(int i=0;i<(sales/100);i++)
At first iteration:
i = 0
i<(sales/100) is true because 0 is less than 100/100 = 1
so the program moves to the body of loop which has the statement:
cout<<"*"
This prints one asterisk one output screen. Next the loop breaks when i = 1. So this only prints one asterisk in output since one star represents $100 sale. The screenshot of the program along with its output is attached.
Advanced Sounds is engaging in a full upgrade of its Windows Server 2003 network to Windows Server 2008. The upgrade includes using Windows Server 2008 Active Directory. Advanced Sounds has pioneered many technological innovations and is very concerned about keeping its network and computer systems secure. Advanced Sounds Information Technology (IT) Department hires you to help them implement Windows Server 2008 Active Directory. Assume the following:
All email servers have been consolidated back in the New York City Complex.
Most all the other applications running on Windows Servers are distributed at all sixteen locations.
Each location at minimum has a file server, a print server and a local application server.
All locations have adequate Wide Area network connections with available capacity; 10 Mbps links
The New York location has enough network capacity to serve all 16 locations.
There are 500 people at the New Your City complex.
There are 200 people at the Quebec City location and 200 at the Montreal location.
There are 40-50 people at each outlet store.
Advanced Sounds IT Department has formed a small installation planning committee consisting of the IT server operations manager, two system programmers, the current Active Directory administrator, and you. After the first meeting they have asked you to prepare a small report to address the following questions:
A. What information is required as input to the initial installation involving Active Directory? a=
B. How many Active directory servers do you propose?
C. Where will the Active directory server(s) be located?
Answer:
cs
Explanation:
From a database point of view, the collection of data becomes meaningful only when it reflect
Which function of NOS involves switching the CPU time between different programs?
The capacity to run many processes or processes at once is known as multitasking in a network operating system. While only one program is actually being run at a time, multitasking gives the impression that several are.
What is multitasking?The simultaneous execution of several tasks for a set amount of time is known as multitasking in computers. As opposed to waiting for them to finish, new tasks might begin and interrupt others that have already begun. An operating system that supports multitasking enables a user to do multiple computer tasks at once, such as running an application software. The operating system can keep track of your progress in various tasks and switch between them without losing data.In a human context, multitasking refers to the act of performing several tasks at once. Examples include updating a document or replying to emails while participating in a teleconference. Computing was where the idea of multitasking first emerged.To learn more about multitasking refer to:
https://brainly.com/question/8367506
#SPJ1
Express the words in excel formula
The sum of sixty five plus one thousand fifty multiplied by three.
In Excel formula The sum of sixty five plus one thousand fifty multiplied by three. = (65 + 1050) * 3.
What is Excel formula?Excel formulas are equations used to perform calculations on data entered into an Excel worksheet. They can be used to perform a variety of tasks, such as calculating the sum of a range of cells, calculating the average of a range of cells, counting the number of cells in a range that contain a specific value, and much more. Formulas can also be used to manipulate text strings, look up values in external databases, and perform conditional logic such as IF/THEN statements. Excel formulas are written using special syntax and can be combined with functions to perform more complex calculations.
To learn more about Excel formula
https://brainly.com/question/27927845
#SPJ1
Eliana is doing a research project about ocean wildlife. What search criteria should she use to search for the information?
Lake AND ocean NOT wildlife
Ocean OR wildlife
Ocean OR lake AND wildlife
Wildlife AND ocean
Answer: Wildlife and ocean
And office now has a total of 35 employees 11 were added last year the year prior there was a 500% increase in staff how many staff members were in the office before the increase
There were 5 staff members in the office before the increase.
To find the number of staff members in the office before the increase, we can work backward from the given information.
Let's start with the current total of 35 employees. It is stated that 11 employees were added last year.
Therefore, if we subtract 11 from the current total, we can determine the number of employees before the addition: 35 - 11 = 24.
Moving on to the information about the year prior, it states that there was a 500% increase in staff.
To calculate this, we need to find the original number of employees and then determine what 500% of that number is.
Let's assume the original number of employees before the increase was x.
If we had a 500% increase, it means the number of employees multiplied by 5. So, we can write the equation:
5 * x = 24
Dividing both sides of the equation by 5, we find:
x = 24 / 5 = 4.8
However, the number of employees cannot be a fraction or a decimal, so we round it to the nearest whole number.
Thus, before the increase, there were 5 employees in the office.
For more questions on staff members
https://brainly.com/question/30298095
#SPJ8
how do we calculate binary numbers??
take the number then divide it by 2 keep dividing the number by 2 untill you get 0 then write the remainders in reverse order
example
we will find the number 12
divide 12 by 2 we get 6 with a remainder of 0
now we divide 6 by 2 we get 3 with a reminder of 0
next we divide 3 by 2 we get 1.5 with a remainder of 1
because we got 1.5 we round down so 1
next we divide 1 by 2 and get -0.5 with a remainder of
1
so the answer is
1100
hope this helps scav
Write a C++ program that creates a word-search puzzle game where the user should find the hidden
words in a square array of letters. Your program should first read from the user their choice for the
game: a) easy, b) medium, c) hard, d) exit the game. If the user selects easy, then the 6x6 puzzle,
shown in Figure 1, will be generated and displayed to the user. If the user selects medium, then the
14 x 14 puzzle shown in Figure 2 should be generated and displayed and lastly, if the user selects
the hard choice, the program should generate a random puzzle, filling the square array of 20 x 20
using random characters/words.
Then your program should repeatedly read from the user, a word to be searched for in the puzzle,
the row and column number where the word starts from and which orientation to search for. The
words can be searched vertically (top to bottom), horizontally (left to right), diagonally (upper left
to lower right) and diagonally (upper right to lower left). The program should check if the column
and row number given by the user are inside the puzzle (array) boundaries, otherwise should display
an error message and ask the user to enter another position. For each word the user inputs, the
2
program should display whether the word was found or not. The program should stop reading
words when the user will press “X” and then the total number of found words will be displayed to
the user.
The program should repeatedly display the game menu until the user will select to exit the game
C++ program to create a word-search puzzle game. #include <iostream> #include <cstring> using namespace std; int main() { char input; cout << "Choose.
What is program technology?Any technology (including, without limitation, any new and practical process, method of manufacture, or composition of matter) or proprietary material developed or first put into use (actively or constructively) by either Party in the course of the Research Program is referred to as "Program Technology."
A 33 board with 8 tiles (each tile has a number from 1 to 8) and a single empty space is provided. The goal is to use the vacant space to arrange the numbers on the tiles so that they match the final arrangement. Four neighboring (left, right, above, and below) tiles can be slid into the available area.
Therefore, C++ programs create a word-search puzzle game. #include <iostream> #include <cstring>
Learn more about the program here:
https://brainly.com/question/11023419
#SPJ1
Community service and volunteer experience is viewed favorably by colleges and employers.
4
True
False
5.19 LAB: Countdown until matching digits
PYTHON: Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical.
Using the knowledge of computational language in python it is possible to write a code that write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical.
Writting the code:n = int(input())
if 20 <= n <= 98:
while n % 11 != 0:
print(n)
n -= 1
print(n)
else:
print("Input must be 20-98")
See more about python at brainly.com/question/18502436
#SPJ1
A collection of code makes up which of the following?
O input
O output
O a program
O a device
Answer:
C. a program
Explanation:
in computers a code is 101101 aka a chain of codes
Hope that helps :) dez-tiny
some context free languages are undecidable
Which of the following social media setting would have the biggest positive impact to college admissions counselor?
Answer: Mark Zuckerberg
Explanation:
Answer:
d
Explanation:
Setting your profile to private.
Maya has discovered that her computer is running slowly and not like it used to. She has decided to research why this might be. Which of the below is a good step for her to take in the research process?
A. Ask family and friends about their experiences.
B. Allow an unknown online person to remotely troubleshoot the problem.
C. Try every solution that can be found on the internet.
D. Turn off your computer’s firewall.
The good step for her to take in the research is to ask family and friends about their experiences option (A) is correct.
What is a computer?A computer is a digital electronic appliance that may be programmed to automatically perform a series of logical or mathematical operations. Programs are generic sequences of operations that can be carried out by modern computers. These apps give computers the capacity to carry out a broad range of tasks.
As we know,
Programs operating in the background are one of the most frequent causes of a slow computer.
TSRs and starting programs that launch automatically each time the computer boots should be removed or disabled.
Thus, the good step for her to take in the research is to ask family and friends about their experiences option (A) is correct.
Learn more about computers here:
https://brainly.com/question/21080395
#SPJ2
Create a python program that allows the user to continuously enter numbers until the user enters 0. Output the sum of the numbers
Answer:
m = 0
summ = 0
n=int(input('Enter a number, 0 to end: '))
while n != 0:
summ = summ + n
m = m + 1
n=int(input('Enter a number, 0 to end: '))
print('You entered',m,'numbers and the sum of the numbers you entered is', summ)
Explanation:
m is used to count the numbers entered, summ is used to store the summation of the numbers, n is used to store the number entered. When a number is entered, it is checked if the number is not equal to 0 using a while loop. If the condition is True, the loop body is executed, which adds the number entered to sum which has an initial value of 0, this is repeated until zero (0) is entered which terminates the loop and prints out the summation of the entered number.
i love python. it be a good programming language...........................................
Answer:
true
Explanation:
Behaving in an acceptable manner within a workplace environment is referred to as having
restraint
workplace etiquette
patience
experience
Answer:
Workplace Etiquette
Explanation:
Hope dis helps
Answer:
B) workplace etiquette
Explanation:
Write a program that prompts the user to enter the number of students and each student’s matric number and score, and finally displays the student with the highest score.
The program that prompts the user to enter the number of students and each student’s matric number and score, and finally displays the student with the highest score is given below
# initialize variables
students = {}
highest_score = 0
highest_scorer = ""
# get number of students
num_students = int(input("Enter the number of students: "))
# get matric numbers and scores for each student
for i in range(num_students):
matric = input("Enter matric number for student {}: ".format(i+1))
score = int(input("Enter score for student {}: ".format(i+1)))
# update highest score and highest scorer
if score > highest_score:
highest_score = score
highest_scorer = matric
# add student to dictionary
students[matric] = score
# print highest scorer
print("Student with highest score:", highest_scorer)
What is the programming about?This program prompts the user to enter the number of students and then asks for the matric number and score for each student. It stores the scores in a dictionary, with the matric numbers as the keys and the scores as the values.
Therefore, It also keeps track of the highest score and the matric number of the student with the highest score. Finally, it prints the matric number of the student with the highest score.
You can learn more about programming at
https://brainly.com/question/23275071
#SPJ1
A program that prompts the user to enter the number of students and each student’s matric number and score, and finally displays the student with the highest score is given below:
The Python Codestudents = []
# Prompt the user to enter the number of students
num_students = int(input("Enter the number of students: "))
# Prompt the user to enter the matric number and score for each student
for i in range(num_students):
matric_number = input("Enter the matric number for student {}: ".format(i+1))
score = float(input("Enter the score for student {}: ".format(i+1)))
students.append((matric_number, score))
# Find the student with the highest score
highest_score = 0
highest_score_student = ""
for student in students:
if student[1] > highest_score:
highest_score = student[1]
highest_score_student = student[0]
# Display the student with the highest score
print("The student with the highest score is {} with a score of {}".format(highest_score_student, highest_score))
Read more about python programming here:
https://brainly.com/question/26497128
#SPJ1
Write a python program to print the square of all numbers from 0 to 10.
Answer:
for i in range(11):
print(i^2)
It goes through printing the square of each number with a range of 11 since 0 is also included
A specific type of computer program that manages the other programs on a computer
Hi!
i want to ask how to create this matrix A=[-4 2 1;2 -4 1;1 2 -4] using only eye ones and zeros .Thanks in advance!!
The matrix A=[-4 2 1;2 -4 1;1 2 -4] can be created by using the following code in Matlab/Octave:
A = -4*eye(3) + 2*(eye(3,3) - eye(3)) + (eye(3,3) - 2*eye(3))
Here, eye(3) creates an identity matrix of size 3x3 with ones on the diagonal and zeros elsewhere.
eye(3,3) - eye(3) creates a matrix of size 3x3 with ones on the off-diagonal and zeros on the diagonal.
eye(3,3) - 2*eye(3) creates a matrix of size 3x3 with -1 on the off-diagonal and zeros on the diagonal.
The code above uses the properties of the identity matrix and the properties of matrix addition and scalar multiplication to create the desired matrix A.
You can also create the matrix A by using following code:
A = [-4 2 1; 2 -4 1; 1 2 -4]
It is not necessary to create the matrix A using only ones and zeroes but this is one of the way to create this matrix.
History about computer
Answer:
The first substantial computer was the giant ENIAC machine by John W. Mauchly and J. Presper Eckert at the University of Pennsylvania. ENIAC (Electrical Numerical Integrator and Calculator) used a word of 10 decimal digits instead of binary ones like previous automated calculators/computers.
Explanation:
I hope this helps!
Discuss why traits such as teamwork and self representation are necessary for a successful career in the media industry
Because it helps you to be a better you it helps you to believe in yourself and to think about all the things you have in life and to help you to work together with other people through thick and thin.
Because it aids to be a better and also it helps you to believe in yourself and to think about all the things you have in life and to help you to work together with other people.
What is teamwork?Teamwork is a group's collaborative effort to achieve a common goal or complete a task in the most effective and efficient manner.
This concept is seen in the context of a team, which is a group of interdependent individuals who work together to achieve a common goal.
Good teamwork entails a synergistic approach to work, with each individual committed to and working toward a common goal. Teamwork maximizes team members' individual strengths to bring out their best.
Good teamwork entails a synergistic approach to work, with each individual committed to and working toward a common goal. Teamwork maximizes team members' individual strengths to bring out their best.
Thus, traits such as teamwork and self representation are necessary for a successful career in the media industry.
For more details regarding teamwork, visit:
https://brainly.com/question/18869410
#SPJ2
where can i learning cybersecurity for free
Answer:
You can learn cybersecurity for free on Coursera. They offer 90 cybersecurity courses from top universities and companies to help you start or advance your career skills in cybersecurity. You can learn online for free today!
Explanation:
Damion recently did an update to his computer and added a new video card. After the update, Damion decided that he would like to play his favorite game. While he was playing the game, the system locked up. He restarted the computer and did not have any issues until he tried to play the same game, at which point, the computer locked up again. What might be the problem with Damion's computer
where in system settings can you find which version of Windows is installed on your computer?
Answer:
Select the Start button > Settings > System > About . Under Device specifications > System type, see if you're running a 32-bit or 64-bit version of Windows. Under Windows specifications, check which edition and version of Windows your device is running.
Explanation:
brainliest pls
Ally typed a business letter. She most likely used a _____.
Ally most likely used a word processing software to type her business letter
What is the explanation for the above response?Word processing software is designed for creating, editing, and formatting text documents, and it is commonly used in offices and other professional environments for creating business letters, memos, reports, and other documents.
Some of the most popular word processing software programs include Microsoft Word, Go. ogle Docs, Apple Pages, and LibreOffice Writer. These programs offer a wide range of features and tools to help users format text, insert images and other media, and customize the layout and design of their documents.
Using a word processing software can help users save time and ensure that their documents are properly formatted and professional-looking, making it an essential tool in many workplaces.
Learn more about business letter at:
https://brainly.com/question/1819941
#SPJ1
Brandon is writing a program that allows users to keep a database of recipes. Each recipe includes a name, a list of ingredients, and instructions. He is currently writing the search procedure that will allow users to find recipes in the database by looking up ingredients. Brandon realizes that if there are too many recipes in the database, searching for one will be very difficult. Which of the following describes a heuristic approach to solving this issue? (select 2)
The procedure could start by checking the recipes that the user normally searches for at that time of day.
The procedure could start by checking the recipes that have been entered into the database most recently.
The procedure could check the recipes in alphabetical order.
The procedure could start by checking the recipes that have been searched for recently.
The approach could begin by checking the recipes that the user often looks for at that time of day and the most recent searches for recipes.
A recipe is not an algorithm, how?A practical illustration of an algorithm is a recipe. The pancake recipe that follows is written in the same style as how we offer our algorithms. It already has a few of the essential components. Our algorithms always get an input that includes all the components required to complete the task.
What in computer programming is an algorithm?An specific list of instructions, algorithms carry out defined tasks step by step. Our algorithms always get an input that includes all the components required to complete the task.
To know more about algorithm visit:-
https://brainly.com/question/22984934
#SPJ1
Given the string “supercalifragilisticexpialidocious”.
1. What is the length of the string i.e. write the script to find the length? (2 points)
2. Find the sub-string of first 5 positions and the other sub-string with last 5 positions. (4 points)
3. Find how many times “i” occurs in this word in python
The string and the three instructions is an illustration of the python strings
The length of the stringThe following instruction calculates the length of the string using the Python script:
len("supercalifragilisticexpialidocious")
The returned value of the above instruction is: 34
The substringsThe following instruction calculates the sub-string of first 5 positions and the other sub-string with last 5 positions
myStr[:5]+myStr[-5:]
The returned string of the above instruction is: "supercious"
The number of occurrence of iThe following instruction calculates the occurrences of i in the string
"supercalifragilisticexpialidocious".count("i")
The returned value of the above instruction is: 7
Read more about python strings at:
https://brainly.com/question/13795586
If you are wanting to change programs, when do you need to make this request?
a.To change programs, you must contact your advisor or counselor and complete the change of program application during an open application window.
b.You can change at any time; just email your advisor regarding the change.
c.You can never change programs.
d.You do not need to notify anyone. You just need to start taking courses for the desired program.
Answer:
If your discussing colleges and degrees, you cant take courses your not autorized to take.
So if you have one major and wish to change to another then you need to discuss with a student advisor or counseler so they can make the changes. They will also discuss which classes are necessary for your program of choosing, making sure all your requirements are completed.
Explanation: