answer.
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
IceJOKER [234]
2 years ago
8

What is the function of napier's bones​

Computers and Technology
1 answer:
Eduardwww [97]2 years ago
3 0

Answer:

Calculation of products and quotients of numbers.

Explanation:

Napier's bones is a manually-operated calculating device created by John Napier of Merchiston, Scotland for the calculation of products and quotients of numbers. The method was based on lattice multiplication, and also called 'rabdology', a word invented by Napier.

You might be interested in
Write a program that implements a class called Dog that contains instance data that represent the dog's name and age. • define t
g100num [7]

Answer:

<u>Dog.java:</u>

Dog{

   //Declare instance variables

   private String name;

   private int age;

   

   //Create the constructor with two parameters, and initialize the instance variables

   public Dog(String name, int age){

       this.name = name;

       this.age = age;

   }

   

   //get methods

   public String getName(){

       return name;

   }

   

   public int getAge(){

       return age;

   }

   

   //set methods

   public void setName(String name){

       this.name = name;

   }

   

   public void setAge(int age){

       this.age = age;

   }

   

   //calculateAgeInPersonYears() method to calculate the age in person years by multiplying the age by 7

   public int calculateAgeInPersonYears(){

       return 7 * getAge();

   }

   

   //toString method to return the description of the dog

   public String toString(){

       return "Name: " + getName() + ", Age: " + getAge() + ", Age in Person Years: " + calculateAgeInPersonYears();

   }

}

<u>Kennel.java:</u>

public class Kennel

{

public static void main(String[] args) {

          //Create two dog objects using the constructor

          Dog dog1 = new Dog("Dog1", 2);

          Dog dog2 = new Dog("Dog2", 5);

          //Print their information using the toString method

          System.out.println(dog1.toString());

          System.out.println(dog2.toString());

          //Update the first dog's name using setName method

          dog1.setName("Doggy");

          System.out.println(dog1.toString());

          //Update the second dog's age using setAge method

          dog2.setAge(1);

          System.out.println(dog2.toString());

}

}

Explanation:

*The code is in Java.

You may see the explanations as comments in the code

7 0
2 years ago
Assume the variable date has been set to a string value of the form mm/dd/yyyy, for example 09/08/2010. (Actual numbers would ap
dmitriy555 [2]

Answer:

The code is attached

Explanation:

  1. a date in the string format 'mm/dd/yyyy' is assigned to variable dateStr
  2. split() function with delimiter '/' is used to split month,day,and year in a list
  3. dateStr.split('/')[1] is used to assign the day of the list to the string variable dayStr
  4. int(dayStr) is used to convert string to integer value and assigned to the variable day.

8 0
2 years ago
Given: an int variable k, an int array current Members that has been declared and initialized, an int variable memberID that has
Alekssandra [29.7K]

Answer:

The c++ program is given below. Nothing is displayed as per the question.

#include <iostream>

using namespace std;

int main() {    

   // declaration and initialization of integer variables

   int k, memberID = 12, nMembers=5;

   bool isAMember;    

   // declaration and initialization of integer array

   int currentMembers[] = {12, 34, 56, 78, 90};    

   for(k=0; k<nMembers; k++)

   {

       if(memberID == currentMembers[k])

       {

           // when member is found in the array, the loop is exited using break

           isAMember = true;

           break;

       }

       else

           isAMember = false;

   }    

   return 0;

}

Explanation:

The program begins with declaration and initialization of integer variables and followed by initialization of the array holding the id of all the members.

The Boolean variable is declared but not initialized.

int k, memberID = 12, nMembers=5;

bool isAMember;

int currentMembers[] = {12, 34, 56, 78, 90};

After this, the array holding the id of the members is searched for the given member id. This is done using  a for loop and a if else statement inside the loop.

If the member id is present in the array, the variable isAMember is initialized to true otherwise it is assigned false.

When the variable isAMember is initialized to true, the break statement is used to exit from the loop.

for(k=0; k<nMembers; k++)

   {

       if(memberID == currentMembers[k])

       {

           isAMember = true;

           break;

       }

       else

           isAMember = false;

 }

The break is used since other values of id in the array will not match the given member id and the variable, isAMember will be initialized to false even if the given member id is present in the array. Hence, it is mandatory to exit the loop once the given member id is found in the array.

This program can be tested for different values of the id of the members and different sizes of the array.

4 0
2 years ago
Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is le
kotykmax [81]

The answer & explanation for this question is given in the attachment below.

8 0
2 years ago
Consider the uc davis policy on reading electronic mail. a research group wants to obtain raw data from a network that carries a
natali 33 [55]

A. discuss the impact of the electronic mail policy on the collection of such data.

8 0
2 years ago
Other questions:
  • What language(s) must be used to display a bare-minimum web page?
    9·2 answers
  • c++ Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is c
    14·2 answers
  • To be eligible for the leadership training program offered by the office, a student must have at least 2 years of post-secondary
    9·1 answer
  • Graduating from college can boost your income 60% compared to high school graduates. An average high school graduate without a c
    8·1 answer
  • Assume each student is assigned an advisor from a department. Each classroom is assigned a classroom (class# determines Classroo
    14·1 answer
  • Write a program that has the following String variables: firstName, middleName, and lastName. Initialize these with your first,
    7·1 answer
  • In what section of the MSDS would you find information that may help if you use this substance in a lab with a Bunsen burner?
    11·1 answer
  • Write a program that calculates taxi fare at a rate of $1.50 per mile. Your pro-gram should interact with the user in this manne
    12·1 answer
  • Write a public static method named printArray, that takes two arguments. The first argument is an Array of int and the second ar
    15·1 answer
  • Consider the following code segment.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!