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
Rudik [331]
3 years ago
11

Question #7

Computers and Technology
1 answer:
Elis [28]3 years ago
4 0
The answer to this question is firewall
You might be interested in
Hey i need someone to talk to because of life it would be amazing if you can help me
Leya [2.2K]
Talk to you about... :)
3 0
3 years ago
50 points!!!!!
prohojiy [21]
I would say a. correcting others' spelling and grammar.
3 0
4 years ago
Read 2 more answers
_______ and _____ are two major techniques involved in green computing. NextReset
FrozenT [24]
Green computing is the use of computers and related resources which is environmentally responsible. Energy-efficiency and e-waste are two major techniques involved in green computing. Energy efficiency involves implementation of energy-efficient central processing units (CPUs), servers and peripherals as well as reduced resource consumption. And e-waste is the proper disposal of electronic waste.


3 0
3 years ago
Read 2 more answers
You will write a program that reads a binary file that contains records of creatures. Each record can be stored in a Creature st
yuradex [85]

Answer:

Explanation:

main.cpp file

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

Name

Date

PA1_Starter.cpp

Description

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

// Headers

#include <iostream>

#include <cstdlib>

#include <string>

#include <vector>

#include <fstream>

#include <algorithm>

using namespace std;

// Global variables

const int CREATURE_NAME_SIZE = 30; // Max length of a creature name

const int CREATURE_TYPE_SIZE = 26; // Max length of a creature type

const string FILENAME = "creatures.dat"; // Name of file that contains the data

// struct used to create records in file

struct Creature

{

char name[CREATURE_NAME_SIZE]; // Name of the creature

char creatureType[CREATURE_TYPE_SIZE]; // Type of creature

int hp; // Hit points for creature

int armor; // Armor class for creature

int speed; // Speed of creature

};

// This function returns true if the name of the left creature is less than the name of the right creature

// Use this function when running the sort function

bool sortByName(const Creature &lhs, const Creature &rhs)

{

string name1(lhs.name), name2(rhs.name);

return name1 < name2;

}

// Function declarations

// You will need to code the definitions for each of these functions

int getCreatureNumber(int numCreatures);

void displayCreature(fstream& file, int num);

void displaySorted(fstream& file);

int main()

{

char choice; // choice made by user for menu

fstream creatureFile; // file stream for input file

int numCreatures; // the number of creatures saved to the file

 

// Open the creatureFile for input and binary (one statement of code)

 

// Get the number of creatures in the file (two statements of code)

// The number of creatures should be assigned to numCreatures

do

{

cout << "Menu" << endl;

cout << "1. Display a specific creature\n";

cout << "2. Display all creatures sorted by name\n";

cout << "3. Quit\n";

cout << "Enter your choice (1, 2, 3): ";

cin >> choice;

while (cin.get() != '\n');

switch (choice)

{

case '1': // Display a specific creature

displayCreature(creatureFile, getCreatureNumber(numCreatures));

break;

case '2': // Display all the creatures in order

displaySorted(creatureFile);

break;

case '3': // Quit

break;

default:

cout << "Invalid option.\n";

break;

}

if (choice != '3')

{

system("PAUSE");

system("CLS");

}

} while (choice != '3');

creatureFile.close();

 

 

// Make sure we place the end message on a new line

cout << endl;

// The following is system dependent. It will only work on Windows

system("PAUSE");

/*

// A non-system dependent method is below

cout << "Press any key to continue";

cin.get();

*/

return 0;

}

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

getCreatureNumber gets and returns the record number from the file that the user would like to be displayed

PARAM: numCreatures should be the value of the total number of records (creatures) in the file

PRE: numCreatures contains a value that is equal to the number of records in the file

POST: A value between 1 and numCreatures is returned as selected by the user

NOTE: Do not allow a value less than 1 or greater than numCreatures to be returned

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

int getCreatureNumber(int numCreatures)

{

 

}

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

displayCreature displays record number num from file

PARAM: file is a fstream that should be open for input and binary

num contains the record number that is to be read in file

PRE: file is a fstream that is open for input and binary

num is a value between 1 and the number of records in file

POST: The record number num is displayed to the monitor

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

void displayCreature(fstream& file, int num)

{

 

}

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

displaySorted should read file into a vector. It should then sort the vector by

the name of the creature. Last it should display the vector

PARAM: file is a fstream that should be open for input and binary

PRE: file is open for input and binary

POST: Each record is displayed sorted by the name of the creature

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

void displaySorted(fstream& file)

{

 

}

5 0
3 years ago
List 2 steps you need to ensure that the heading appears in the table of contents
expeople1 [14]

Answer:

If you have used Heading styles in your document, creating an automatic table of contents is easy.

  • Place your cursor where you want your table of contents to be.
  • On the References Ribbon, in the Table of Contents Group, click on the arrow next to the Table of Contents icon, and select Custom Table of Contents.

Explanation:

https://guides.lib.umich.edu/c.php?g=283073&p=1886010

An automatic Table of Contents uses Styles to keep track of page numbers and section titles for you automatically. Microsoft Word can scan your document and find everything in the Heading 1 style and put that on the first level of your table of contents, put any Heading 2’s on the second level of your table of contents, and so on.

If you want an automatic table of contents you need apply the Heading 1 style to all of your chapter titles and front matter headings (e.g. “Dedication” and “Acknowledgements”).  All major headings within your chapters should be use the Heading 2 style.  All subheadings should use Heading 3, and so on.

If you have used Heading styles in your document, creating an automatic table of contents is easy.

Place your cursor where you want your table of contents to be.

On the References Ribbon, in the Table of Contents Group, click on the arrow next to the Table of Contents icon, and select Custom Table of Contents.

If you want to change the style of your table of contents (e.g. you want more space between the items on level 1 and level 2 of your table of contents, or you want all your level 1 items to be bold), click on the Modify button, select the TOC level you want to change, then click the Modify button to do so.

If you want to change which headings appear in your table of contents, you can do so by changing the number in the Show levels:

pulldown.

Click OK to insert your table of contents.

 

The table of contents is a snapshot of the headings and page numbers in your document, and does not automatically update itself as you make changes. At any time, you can update it by right-clicking on it and selecting Update field.  Notice that once the table of contents is in your document, it will turn gray if you click on it. This indicates that it is getting information from somewhere else.

4 0
3 years ago
Other questions:
  • Is Windows a:<br><br> A.operating system<br> B.software<br> C.hardware<br> D.input device
    12·1 answer
  • Where does most of the work in creating a presentation will take place? Either formatting toolbar, normal (Slide) view, slide so
    12·2 answers
  • Help me!!!!! This is the last question! HELP ME! I REPEAT: HELP ME!!!! I AM SO IN NEED!!!
    12·2 answers
  • In java, c or c++ code, when a number begins with a leading 0, what do you know about that number: (example: int zzz = 012;) in
    13·1 answer
  • Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter values for the width and
    15·1 answer
  • Plane eyes I don't know
    9·1 answer
  • A 'deny any-any' rule in a firewall ruleset is normally placed: a. Nowhere in the ruleset if it has a default allow policyb. Bel
    12·1 answer
  • How does the Evaluate Formula dialog box help fix errors?
    9·2 answers
  • Big Chungus is god. prove me wrong.
    10·1 answer
  • Exam Instructions
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!