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
Elden [556K]
3 years ago
12

What should you use to keep battery terminals from corroding

Engineering
1 answer:
Ray Of Light [21]3 years ago
3 0

Answer: Apply battery-terminal grease to the terminals to help prevent corrosion. It's available at any auto parts store and usually comes in a little ketchup-like packet. Another great option is AMSOIL Heavy-Duty Metal Protector. It creates a protective coating on terminals that wards off corrosion.

Explanation:

You might be interested in
For this lab you will be creating a auto-expanding dynamic-array. This array will explicitly hold std library strings. As with a
Inessa05 [86]

Answer:

Explanation:

Program is divided into 3 files. stringVector.h , stringVectory.cpp (implementation file) and main.cpp (testing file)

stringVector.h

#include<iostream>

using namespace std;

class stringVector {

private:

string * data;

unsigned length;

unsigned allocated_length;

public:

stringVector();

virtual ~stringVector();

unsigned size();

unsigned capacity();

void reserve(unsigned new_size);

bool empty();

void append(string new_data);

void swap(unsigned pos1, unsigned pos2);

stringVector &operator = (stringVector const &rhs);

string& operator[](unsigned position);

void sort();

};

stringVector.cpp

#include<iostream>

#include<stdexcept>

#include"stringVector.h"

stringVector::stringVector()

{

data = NULL;

length = 0;

allocated_length = 0;

}

stringVector::~stringVector()

{

delete [] data;

}

unsigned stringVector::size()

{

return length;

}

unsigned stringVector::capacity()

{

return allocated_length;

}

void stringVector::reserve(unsigned new_size)

{

string *temp = new string[new_size]; // Create a new array

 

/*Copy the contents of the array*/

for(int i =0; i < new_size; i++){

if(i < length){

temp[i] = data[i];

}

else

break;

}

 

delete []data ;// Delete previous array

data = temp;

allocated_length = new_size;

if(length > new_size){

length = new_size;

}

}

bool stringVector::empty(){

return (length == 0) ? true : false;

}

void stringVector::append(string new_data)

{

string *temp = NULL;

if(length == allocated_length){

if(allocated_length == 0){

data = new string[10];

allocated_length = 10;    

}

else{

temp = new string[2 * allocated_length]; // Create a new array with double the size

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

temp[i] = data[i];

}

allocated_length = 2 * allocated_length;

 

if(data != NULL)

delete []data;

data = temp;

}

}

data[length] = new_data;

length++;

}

void stringVector::swap(unsigned pos1, unsigned pos2)

{

string str;

if((pos1 >= length) || (pos2 >= length)){

cout << "Index Out of bounds" << endl;

return;

}

str = data[pos1];

data[pos1] = data[pos2];

data[pos2] = str;

}

stringVector& stringVector::operator = (stringVector const &rhs)

{

delete [] data;

length = rhs.length;

allocated_length = rhs.allocated_length;

this->data = new string[allocated_length];

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

this->data[i] = rhs.data[i];

}

string& stringVector::operator[](unsigned position)

{

if(position > length){

throw std::out_of_range("Position out of range");

}

return data[position - 1];

}

void stringVector::sort()

{

string str;

for(int i= (length - 1) ; i > 0; i--){

for(int j = 0; j < i; j++){

if(data[j].compare(data[j+1]) > 0){

//Swap

str = data[j];

data[j] = data[j+1];

data[j+1] = str;

}

}

}

}

main.cpp

#include<iostream>

#include<stdexcept>

#include"stringVector.h"

void printVector(stringVector &);

int main()

{

stringVector vector;

string str1("California");

string str2("Alabama");

string str3("Oklahoma");

string str4("Texas");

vector.append(str1);

vector.append(str2);

vector.append(str3);

vector.append(str4);

cout << vector.size() << " - " << vector.capacity() << endl;

printVector(vector);

cout << endl;

vector.reserve(3);

cout << vector.size() << " - " << vector.capacity() << endl;

printVector(vector);

cout << endl;

vector.append(str4);

cout << vector.size() << " - " << vector.capacity() << endl;

printVector(vector);

cout << endl << "Copied vector : " << endl;

stringVector vector2 = vector;

printVector(vector2);

cout << endl;

vector.sort();

cout << "Vector 1 after sorting" << endl;

printVector(vector);

return 0;

}

void printVector(stringVector &vec)

{

cout << "Vector : ";

for(int i = 1 ; i <= vec.size(); i++){

cout << vec[i] << " ";

}

cout << endl;

}

OUTPUT:

[[email protected] cppProg3]$ ./main

4 - 10

Vector: California Alabama Oklahoma Texas

3 -3

Vector: California Alabama Oklahoma

4 - 6

Vector: California Alabama Oklahoma Texas

Copied Vector:

Vector: California Alabama Oklahoma Texas

Vector 1 after sorting

Vector: Alabama California Oklahoma Texas

8 0
3 years ago
A 1 250 kg car moving at a velocity of 30 km/hr along EDSA is accelerated by a force of 1 700 N. What will be its velocity after
Talja [164]
<h3><u>The velocity of the car after 10 s is 78.95 km/hr</u></h3>

Explanation:

<h2>Given:</h2>

m = 1,250 kg

v_i = 30 km/hr

F = 1,700 N

t = 10 s

<h2>Required:</h2>

Final velocity

<h2>Equation:</h2><h3>Force</h3>

F = ma

where: F - force

m - mass

a - acceleration

<h3>Acceleration</h3>

a = \frac{v_f \:-\:v_i}{t}

where: a - acceleration

v_i - initial velocity

v_f - final velocity

t - time elapsed

<h2>Solution:</h2><h3>Solve for acceleration using the formula for force</h3>

F = ma

Substitute the value of F and m

(1700 N) = (1250 kg)(a)

a = \frac{1700\:N}{1250\:N}

a = 1.36 m/s²

<h3>Solve for final velocity using the formula for acceleration</h3>
  • Convert 30 km/hr to m/s

= \frac{30\:km}{hr}\:×\:\frac{1000\:m}{1\:m}\:×\:\frac{1\:hr}{3600\:s}

= 8.33 m/s

  • Substitute the value of a, v_i and t

a = \frac{v_f \:-\:v_i}{t}

1.36\: m/s² \:= \:\frac{v_f \:-\:8.33\:m/s}{10\:s}

(10 \:s)1.36\: m/s² \:= \:v_f \:-\:8.33\:m/s

v_f\: =\: (10 \:s)1.36 \:m/s²\: + \:8.33\:m/s

v_f \: =\: 13.6 \:m/s \:+\: 8.33\:m/s

v_f\: =\:  21.93\: m/s

  • Convert to km/hr

= \frac{21.93\:m}{s}\:×\:\frac{1\:km}{1000\:m}\:×\:\frac{3600\:s}{1/:hr}

= 78.95\: km/hr

<h2>Final answer</h2><h3><u>The velocity of the car after 10 s is 78.95 km/hr</u></h3>
6 0
3 years ago
When two or more simple machines are combined they form
Volgvan
Compound machine is the answer
8 0
3 years ago
Hi I don't know of yall remeber me, but I'm Jadin aka J. I am looking for my friend group, that I have missed but can't find cau
kirill [66]

Answer:

The young lady was his daughter.The shoemaker was frightened when he saw that she wants to sit near him and took his knife to frighten her and leave him alone to do his work

Explanation:

could uh name them since if i know any i would surely tryin help

7 0
2 years ago
In order to break even, your minimum selling price must be __________ your variable costs.
Gelneren [198K]
Your minimum selling price must be HIGHER THAN your variable costs
7 0
3 years ago
Other questions:
  • What Type of diploma do you need in order To the get into JMU
    12·1 answer
  • If a hoist lifts a 4500lb load 30ft in 15s, the power delivered to the load is a) 18.00hp b) 9000hp c) 16.36hp d) None of the ab
    8·1 answer
  • An aluminum part will be subjected to cyclic loading where the maximum stress will be 300 MPa and the minimum stress will be-100
    11·1 answer
  • In which type of restaurant do customers order and pay before eating?
    5·1 answer
  • What information is needed to set up sales tax in QuickBooks Online for a client who only does business in their home state?
    11·1 answer
  • A chemistry student accidentally drops a large mercury thermometer and it breaks. The thermometer contained 2 grams of mercury (
    13·1 answer
  • In the LC-3 data path, the output of the address adder goes to both the MARMUX and the PCMUX, potentially causing two very diffe
    14·1 answer
  • One good way to improve your gas Milage is to ___.
    7·2 answers
  • The map shows the distribution of dairy farms across the lower 48 of the United States. Each dot on the map represents approxima
    11·1 answer
  • Estimate the energy (head) loss a short length of a pipe conveying 300 litres of water per second and suddenly enlarging from a
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!