Answer:
// here is code in C++
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n,no_open=0;
cout<<"enter the number of lockers:";
// read the number of lockers
cin>>n;
// initialize all lockers with 0, 0 for locked and 1 for open
int lock[n]={};
// toggle the locks
// in each pass toggle every ith lock
// if open close it and vice versa
for(int i=1;i<=n;i++)
{
for(int a=0;a<n;a++)
{
if((a+1)%i==0)
{
if(lock[a]==0)
lock[a]=1;
else if(lock[a]==1)
lock[a]=0;
}
}
}
cout<<"After last pass status of all locks:"<<endl;
// print the status of all locks
for(int x=0;x<n;x++)
{
if(lock[x]==0)
{
cout<<"lock "<<x+1<<" is close."<<endl;
}
else if(lock[x]==1)
{
cout<<"lock "<<x+1<<" is open."<<endl;
// count the open locks
no_open++;
}
}
// print the open locks
cout<<"total open locks are :"<<no_open<<endl;
return 0;
}
Explanation:
First read the number of lockers from user.Create an array of size n, and make all the locks closed.Then run a for loop to toggle locks.In pass i, toggle every ith lock.If lock is open then close it and vice versa.After the last pass print the status of each lock and print count of open locks.
Output:
enter the number of lockers:9
After last pass status of all locks:
lock 1 is open.
lock 2 is close.
lock 3 is close.
lock 4 is open.
lock 5 is close.
lock 6 is close.
lock 7 is close.
lock 8 is close.
lock 9 is open.
total open locks are :3
Answer:
O relational
Explanation:
If I'm wrong I'm so so sorry! But form my research it keeps saying its relational.
If I'm right please give me brainliest I really need it to level up so please help me!
If you don't know how to give brainliest there should be a crown underneath my answer you just have to click it.
Thank you and have a wonderful night,morning,afternoon/day! :D
Answer: See explanation
Explanation:
You didn't give the options to the question and I searched and couldn't find the particular question.
Here, are some of the things about technology before the invention of the printing press.
1. Before printing press, monks copied books such as bibles as they'll copy calligraphy and illustrations in order for them to spread the messages in the Bible across to people.
2. Before printing press, oral communication was the way that people communicated with each other.
3. Drawings and writings were done by hand before printing press.
4. Before the invention of printing press, in order to transcribe books, different materials that were used include wax, parchment, clay and papyrus.
E-mail stands for Electronic mail. It is a method of exchanging messages ("mail") between people in a telecommunication network with the usage of electronic devices. There is a sender and a receiver for any given message, and they switch positions in turn.
The statement that E-mail is an temporary message medium is false. E-mail can be kept forever and are not temporary.
Answer:
E-publishing is also known as digital publishing or online publishing.It means to publish the content in electronic form.It is growing rapidly.It consist digital publication of e-books,digital magazines that can be read on a screen.
<u>Explanation:</u>E-publishing is very convenient.We do not have to keep large number of books on the shelves.E-books are best during travelling because we need not to carry heavy luggage of books.E-books are cheaper than paperbacks.
E-publishing can allow the authors to reach large number of readers.Electronic contents are very well updated.Electronic books are environment friendly.It saves wastage of papers and hence cutting of trees.
Besides above advantages there are some disadvantages of E-publishing:
There are more responsibilities in E-publishing.Chances of copyright infringement can be there.
Profits are very low in case of e-publishing.It is not easy to earn money through this method.
Quality of printed books is much better than e-books.
So we can say that e-publishing has it's own advantages and disadvantages.