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
After trying multiple times, a coworker is not able to fit a motherboard in a computer case, and is having difficulty aligning s
Allisa [31]

Answer:

D) The board is not oriented correctly in the case. Rotate the boar

Explanation:

<u>Let's check the answer options</u>

A) The coworker is trying to use too many screws to secure the board; only four screws are required.

- Incorrect, as more than four screws are required

B) The form factors of the case and motherboard don’t match.

- Incorrect, in this scenario motherboard wouldn't fit the case

C) The form factors of the motherboard and power supply don’t match.

- Incorrect, PSU is not relevant in aligning the screw holes

D) The board is not oriented correctly in the case. Rotate the boar

- Correct, this is the most likely cause

5 0
3 years ago
When a project is saved, the new file name appears on the ____ tab?
BartSMP [9]
It appears on Document window tab
7 0
3 years ago
Im boing exam help please In a category-based course grading system, teachers weigh a student's performance in all courses. all
ycow [4]

Answer:

some categories more heavily than others.

Explanation:

A category-based course grading system is a form of a grading system that involves an examiner to set up different categories of the overall assessment and at the same time placed different weight or marks over each category.

Therefore, the examiners weigh a student's performance in " some categories more heavily than others." For example, an examiner placed different weight over different categories in the overall assessment

1. Homework category: 30%

2. Classwork category: 20%

3. Quiz category: 20%

4. Final exam category: 30%

7 0
3 years ago
Read 2 more answers
In the Unified Process (UP) methodology, most of the Implementation activities occurs during the _____ phase.
monitta

Answer:

C) construction

Explanation:

The unified process is one of the software development process frameworks. It is an incremental and iterative software building process. The process is carried out in four phases which include; inception, elaboration, construction and transition.

The construction phase is the largest part and is where most of the implementation activities happen. Here the system features are implemented iteratively to enable the executable release of the software.

4 0
3 years ago
Define utility software​
vichka [17]
Utility software is software designed to help to analyze, configure, optimize or maintain a computer. It is used to support the computer infrastructure - in contrast to application software, which is aimed at directly performing tasks that benefit ordinary users.
3 0
3 years ago
Other questions:
  • Andy, a developer, is designing a new program. Which tool should Andy use to help him complete his task?
    6·1 answer
  • The frame work for storing records in database is a
    7·1 answer
  • How does titanium usually form or appear in nature?
    15·1 answer
  • Create a class called Home that contains 4 pieces of information as instance variables: county (datatype string), street (dataty
    5·1 answer
  • Which of the following is a form of mediated communication?
    10·1 answer
  • The continue statement _________.
    11·1 answer
  • What lists the parts of the report and the pages they are on?
    12·1 answer
  • Grade Average Lab Assignment Purpose: The goal of this lab assignment is to learn how to use for loops and if/else commands. Wri
    8·1 answer
  • Compared with traditional methods, the entire rapid application development (RAD) process is expanded and, as a result, the new
    11·1 answer
  • How do we Rewrite the following Python code to avoid error. mark=inpt("enter your mark ")
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!