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
tester [92]
3 years ago
8

Create an algorithm that will convert dog years to human years using the assumption that 1 dog year = 7 human years. Prompt the

user to enter the dog’s age in years. Multiply the dog’s age by 7 to calculate the human age equivalent of the dog’s age. For example, if a dog’s age is 2, the calculation should be human age equivalent = 2 * 7, which evaluates to the human equivalent of 14 years old. Output the result to the screen. Write the algorithm using pseudocode, and create a desk check using at least one set of test data.
Computers and Technology
1 answer:
matrenka [14]3 years ago
4 0

Answer:

Algorithm:

1. Declare and initialize variable one_dog_year=7.

2.Ask user to give dog age.

   2.1 Read the dog age and assign it to variable "dog_age".

3.Create a variable "human_age" to store the equivalent human age.

   3.1 Calculate equivalent human age as "human_age=one_dog_year*dog_age".

4.Print the equivalent human age of dog age.

7. End the program.

// here is algorithm implemented in c++

#include <bits/stdc++.h>

using namespace std;

int main()

{

   // initialize one dog year

   int one_dog_year=7;

   int dog_age;

   int equi_h_age;

   cout<<"Enter the dog age:";

   // read the dog age

   cin>>dog_age;

   

   //calculate the equivalent human age

   equi_h_age=dog_age*one_dog_year;

   cout<<"equivalent human age is : "<<equi_h_age<<endl;

return 0;

}

Output:

Enter the dog age:2                                                                                                                                            

equivalent human age is : 14

You might be interested in
In Joan Woodward's study of the relationship between technology and structure, the structure that was the most technically compl
Arturiano [62]

Answer:

<em>Continuous Process Production</em>

Explanation:

In a study on the relationship between  industrial structure and performance, conducted by <em>Joan Woodward</em> from 1950 to 1959,  

she classified technology into <em>three groups</em>:  

  1. <em>Small batch and Unit technology  </em>
  2. <em>Large batch and Mass production </em>
  3. <em>Continuous process production </em>

She came to a  conclusion that the <em>continuous process production was the most complex</em> and  unit technology as the least.

4 0
3 years ago
Select the standardized features of Windows that make it easier to manage your tools:
anygoal [31]

Answer: The Standardized feature of Windows that make it easier to manage tools are:

1. Toolbar

2. Menu

3. Taskbar

Explanation: 1. Toolbar helps to easily show the various tools that can be used on Windows.

2. Menu helps to separate the different parts of the Windows for easy access.

3. Taskbar helps to show the various tools for doing a task.

5 0
4 years ago
To keep you from inadvertently moving controls as you work in the IDE, click the form or control, then click the _________ optio
Delicious77 [7]

Answer:

Lock Control

Explanation:

Lock Control can used to keep you from inadvertently moving controls while working in the IDE.You can do that by  clicking on the form and then click Lock control in format menu.

In visual studio you have to go to properties and and select Locked property and select True.So that it can be locked and you can unlock them also from here.

5 0
4 years ago
Why wont it let me get another free trial on adobe photoshop?
k0ka [10]
A free trial is a one-time thing. Try using another email address or something. 
3 0
3 years ago
Which of the following should be filed immediately after Wakefield, Donald?
Eva8 [605]
This is the order in which it should be filed.

Wakefield, Cyndi
Wakefield, Donald  
Wakefield, Drew  ⇒ this is the answer. Since both have Ds, we evaluate O and                                     R. O comes first before R.
Wakefield, Edgar
Wheton, John
8 0
4 years ago
Other questions:
  • Write a void function SelectionSortDescendTrace() that takes an integer array, and sorts the array into descending order. The fu
    9·1 answer
  • Which of the following is a template definition?
    5·1 answer
  • Many of the special staff teams require leadership training, which is offered to staff with more than 1 year of service at Camp
    15·1 answer
  • Jamie found the ISBN of the book she wanted to order in the Books in Print Catalog. To remember the eleven-digit number, 1977255
    7·1 answer
  • What is a central location that houses Joint Information System (JIS) operations and where public information staff perform publ
    6·1 answer
  • Which term describes the distance from one point on a wave to the same point on the next wave?
    13·2 answers
  • Drag the right word to it’s definition
    13·1 answer
  • What do you do to think positive and maintain discipline to play
    5·1 answer
  • What is the most common type of storage device for transferring files from one computer to another?
    10·1 answer
  • Why are men more exposed to mass media?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!