1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
seraphim [82]
3 years ago
8

a computer that is design to perform no specific task(but any task assigned to it ) is reffered as _______________computer​

Computers and Technology
1 answer:
kondaur [170]3 years ago
3 0

Answer:

a computer that is design to perform no specific task(but any task assigned to it ) is reffered as special-purpose computer

You might be interested in
Today we will be making a Caesar Cipher to encrypt and decrypt messages.A Caesar Cipher is a simple cipher that translates one l
Len [333]

Answer:

#include <iostream>

#include <stdio.h>

#include <ctype.h>

using namespace std;

string

encrypt (string text, int s)

{  string resultingString = "";

 for (int i = 0; i < text.length (); i++)

   {      if (!isspace (text[i]))

{

  if (isupper (text[i]))

    resultingString += char (int (text[i] + s - 65) % 26 + 65);

  else

  resultingString += char (int (text[i] + s - 97) % 26 + 97);

}

     else

{

  resultingString += " ";

}

  }

 return resultingString;

}

string

decrypt (string text, int s)

{

 string resultingString = "";

 for (int i = 0; i < text.length (); i++)

   {

     if (!isspace (text[i]))

{

  if (isupper (text[i]))

    resultingString += char (int (text[i] + s - 65) % 26 + 65);

  else

  resultingString += char (int (text[i] + s - 97) % 26 + 97);

}

     else

{

  resultingString += " ";

}

   }

 return resultingString;

}

string upper(string str){

   for (int i=0;i<str.length();i++){

       str[i]=toupper(str[i]);

   }

   return str;

}

int

main ()

{

 string text = "This is test text string";

 

 int s = 3;

 string cipherText = "";

 string decipherText = "";

int menu=-1;

while (menu!=3){

   cout<<"1. Encrypt"<<endl;

   cout<<"2. Decrypt"<<endl;

   cout<<"3. Exit"<<endl;

   cin >>menu;

   cin.ignore();

   if(menu==1){

       cout<<"Enter Plain string "<<endl;

       getline(cin,text);

       text=upper(text);

         cipherText = encrypt (text, s);

           cout << "cipher text: " << cipherText << endl;

   }

   else if(menu==2){

       cout<<"Enter Encrypted string "<<endl;

       getline(cin,cipherText);

               cipherText=upper(cipherText);

         decipherText = decrypt (cipherText, 26 - s);

 cout << "decipher text: " << decipherText << endl;

   }

   else {

       cout<<"Not valid"<<endl;

   }

}

 return 0;

}

Explanation:

Display menu with options 1 encrypt, 2 decrypt, 3 exit. Write a function to translate string to upper case. Iterate through string and for each index use toupper function to translate alphabet to upper case and store it back to current index of string.On exiting from loop return string. Pass upper case string to encrypt function.

In encrypt function pass string by reference and shift value. Create an empty string resultingString. Iterate through string for each character check if its space, if its a space add it to resulting string otherwise using ascii values convert char to its ascii add shift value and subtract 65 (staring ascii value for capital alphabet) take modules with 26 for new character and than add 65 to get alphabet.Now add this alphabet to resulting string. Upon loop completion return resultingString.

For decryption use same function as encryption. We are using cyclic property to decrypt using same function therefor subtract shift from 26 and pass resulting shift value to decrypt function.

8 0
3 years ago
If I wanted to share files only within my organization and limit my employees from sharing information with external people, wha
krek1111 [17]
<span>If I wanted to share files only within my organization and limit my employees from sharing information with external people, what type of network should I set up in my office?

Extranet<====
Internet
Peer-to-Point
Intranet

hopes this helps

</span>
6 0
4 years ago
Create a class named student. a student has fields for an id number, number of credit hours earned, and number of points earned.
PIT_PIT [208]

/****************

* Student.java *

****************/

public class Student

{

   int sid;

   int credithours;

   int points;

   double averagegrade;

 // constructor to assign initial values

   public Student() {

       this.sid = 9999;

       this.credithours = 3;

       this.points = 12;

   }

 // methods to assign values to all fields.

   public void setCredithours(int credithours) {

       this.credithours = credithours;

   }

   public void setPoints(int points) {

       this.points = points;

   }

   public void setSid(int sid) {

       this.sid = sid;

   }

 // method to compute the grade point average field by dividing points by credit hours earned.

   public void computeAveragegrade()

   {

       this.averagegrade = this.points / this.credithours;

   }

 // methods to display the values in each Student field

   public void showSid(){

       System.out.println("Student id is : " + this.sid);

   }

   public void showPoints(){

       System.out.println("Number of points earned : " + this.points);

   }

   public void showCredithours(){

       System.out.println("Number of credit hours earned : " + this.credithours);

   }

   public void showAveragegrade(){

       System.out.println("Average grade point is : " + this.averagegrade);

   }

}

5 0
3 years ago
He also includes the method thisday.getday() in the code. what is the result for the given method?
Naily [24]

He also includes the method this day. getday() in the code.

The getDay() method produces the day of the week for the specified date according to local time, where 0 means Sunday. For the day of the month, see Date. prototype. getDate()

<h3>What will the getDay () function of date object return?</h3>

getDay() process is used to fetch the day of a week(0 to 6) from a given Date object. Parameter: This form does not accept any parameters. Return Values: It produces the day of the week for the given date.

To learn more about  getday() , refer

brainly.com/question/17570484

#SPJ4

7 0
2 years ago
Someone else can drive your car if _____.
SVETLANKA909090 [29]

Answer:

C. you have proof of insurance

Explanation:

Residency has nothing to do with permission to drive a car. For example, someone may have residency, but be with a license suspended. So they can't drive.

Usually, also the insurance covers the CAR and not the person. So the general rule is:

Someone else can drive your car if you have proof of insurance

6 0
4 years ago
Read 2 more answers
Other questions:
  • All of the fossils that have been discovered make up the
    15·1 answer
  • Which country does coriander come from
    11·2 answers
  • vulnerability is a feebleness which allows an attacker to condense a system's information assurance to security,is it true or fa
    14·1 answer
  • What are some programs that you have used that have condition-controlled loops and count-controlled loops?
    10·1 answer
  • Jade has to present a paper on the basic architecture of the Princeton microcomputer architecture model. Which option will he hi
    5·1 answer
  • Which of the following is a strategy used to enhance communication in a presentation?
    14·1 answer
  • What summarizes a data source into a grid of rows and columns?
    12·2 answers
  • What are some examples and non-examples of digital security?
    6·1 answer
  • This is computer and programming
    15·2 answers
  • 2. 2 extension A file saved in LOGO will have parts 3. Aprocedure consists ofthe file saved if I saved in logo will have instruc
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!