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
adell [148]
3 years ago
7

Write an algorithm (in pseudocode) for the following Scenario.

Computers and Technology
1 answer:
Nataly [62]3 years ago
6 0

Answer:

please mark me brainlist

Explanation:

ALGORITHM :

RetirementEstimeate():

BEGIN:

name := read("Full Name")

curAge:= read("Current Age")

desiredRetAge := read("Desired Retirement Age")

curRetSavings:= read("Current Retirement Savings")

amtForRet := read("Amount You Need to Retire")

yrsUntillRet := desiredRetAge - curAge

moneyToBeSaved := amtForRet - curRetSavings

print("Name = ", name)

print("Number of years left to reach retirement age = ", yrsUntillRet)

print("Money to be saved from now on untill you reach your retirement age = ", moneyToBeSaved)

END

You might be interested in
Which of the following statements are TRUE about formatting images in HTML.
DiKsa [7]

The following statements are TRUE about formatting images in HTML is that In HTML, when formatting images, there is no pixel limit for the width and height attributes.

<h3>What are formatting images in HTML.?</h3>

One of the most effective approaches to resize a photograph withinside the HTML is the usage of the peak and width attributes at the img tag. These values specify the peak and width of the photographic element. The values are set in px i.e. CSS pixels. For example, the authentic photograph is 640×960.

When you figure with historical past images, you can need an photograph to stretch to healthy the web page no matter the huge variety of gadgets and display screen sizes. The fine manner to stretch a photograph to healthy the historical past of detail is to apply the CSS3 property, for historical past size and set it identical to the cover.

Read more about the  HTML:

brainly.com/question/4056554

#SPJ1

6 0
2 years ago
Which best describes what happens when a formula is copied from one cell to another?
Fed [463]

Answer:

b 2

Explanation:

b2

3 0
3 years ago
Susie lives alone in New York where is her family lives in Florida
snow_tiger [21]

Answer:

susie moved from her family

Explanation:

3 0
3 years ago
Read 2 more answers
Design a Geometry class with the following methods: A static method that accepts the radius of a circle and returns the area of
Svetllana [295]

Answer:

Geometry class

public static class Geometry {

   public static double areaOfCircle(double radius) {

       return Math.PI * radius * radius;

   }

   public static double areaOfRectangle(double length, double width) {

       return length * width;

   }

   public static double areaOfTriangle(double base, double h) {

       return base * h * 0.5;

   }

}

Main and user menu choice method\

public static void main(String[] args) {

   int choice; // The user's menu choice

   do {

       // Get the user's menu choice.

       choice = getMenu();

       if (choice == 1) {

           calculateCircleArea();

       } else if (choice == 2) {

           calculateRectangleArea();

       } else if (choice == 3) {

           calculateTriangleArea();

       } else if (choice == 4) {

           System.out.println("Thanks for calculating!");

       }

   } while (choice != 4);

}

public static int getMenu() {

   int userChoice;

   // keyboard input

   Scanner keyboard = new Scanner(System.in);

   // Display the menu.

   System.out.println("Geometry Calculator\n");

   System.out.println("1. Calculate the Area of a Circle");

   System.out.println("2. Calculate the Area of a Rectangle");

   System.out.println("3. Calculate the Area of a Triangle");

   System.out.println("4. Quit\n");

   System.out.print("Enter your choice (1-4) : ");

   // get input from user

   userChoice = keyboard.nextInt();

   // validate input

   while (userChoice < 1 || userChoice > 4) {

       System.out.print("Please enter a valid range: 1, 2, 3, or 4: ");

       userChoice = keyboard.nextInt();

   }

   return userChoice;

}

Calculate Circle Area

public static void calculateCircleArea() {

   double radius;

   // Get input from user

   Scanner keyboard = new Scanner(System.in);

   System.out.print("What is the circle's radius? ");

   radius = keyboard.nextDouble();

   // Display output

   System.out.println("The circle's area is "

           + Geometry.areaOfCircle(radius));

}

Calculate Rectangle Area

public static void calculateRectangleArea() {

   double length;

   double width;

   // Get input from user

   Scanner keyboard = new Scanner(System.in);

   // Get length

   System.out.print("Enter length? ");

   length = keyboard.nextDouble();

   // Get width

   System.out.print("Enter width? ");

   width = keyboard.nextDouble();

   // Display output

   System.out.println("The rectangle's area is "

           + Geometry.areaOfRectangle(length, width));

}

Calculate Triangle Area

public static void calculateTriangleArea() {

   double base;

   double height;

   // Get input from user

   Scanner keyboard = new Scanner(System.in);

   // Get the base

   System.out.print("Enter length of the triangle's base? ");

   base = keyboard.nextDouble();

   // Get the height

   System.out.print("Enter triangle's height? ");

   height = keyboard.nextDouble();

   // Display the triangle's area.

   System.out.println("The triangle's area is "

           + Geometry.areaOfTriangle(base, height));

}

Output

Geometry Calculator

1. Calculate the Area of a Circle

2. Calculate the Area of a Rectangle

3. Calculate the Area of a Triangle

4. Quit

Enter your choice (1-4) : 1

What is the circle's radius? 10

The circle's area is 314.1592653589793

Geometry Calculator

1. Calculate the Area of a Circle

2. Calculate the Area of a Rectangle

3. Calculate the Area of a Triangle

4. Quit

Enter your choice (1-4) : 2

Enter length? 10

Enter width? 10

The rectangle's area is 100.0

Geometry Calculator

1. Calculate the Area of a Circle

2. Calculate the Area of a Rectangle

3. Calculate the Area of a Triangle

4. Quit

Enter your choice (1-4) : 3

Enter length of the triangle's base? 10

Enter triangle's height? 10

The triangle's area is 50.0

Geometry Calculator

1. Calculate the Area of a Circle

2. Calculate the Area of a Rectangle

3. Calculate the Area of a Triangle

4. Quit

Enter your choice (1-4) : 4

Thanks for calculating!

3 0
3 years ago
How has the information revolution changed the nature of work and the economy?
Gala2k [10]

It has shifted the economy toward the production of knowledge and services.

7 0
4 years ago
Other questions:
  • When performing actions between your computer and one that is infected with a virus which of the following offers no risk becomi
    5·1 answer
  • If a secret key is to be used as a _________ for conventional encryption a single number must be generated.
    13·1 answer
  • Anyone have good websites to cure boredom
    10·2 answers
  • Gemima has outlined the steps she needs to take to complete this task.
    8·1 answer
  • Pls help with this (20 points again)
    8·1 answer
  • Which keyboard command would you use to navigate to the left adjacent cell in a worksheet?
    11·2 answers
  • Catherine purchased dried herbs from the grocery store. Which structure would she use if wanted to create a mixture of powdered
    8·2 answers
  • A<br> is an list of steps to complete a task. *
    9·1 answer
  • 2. Can you see any pitfalls or disadvantages to using Feedly to organize your online content sources?
    11·1 answer
  • What should you point out when demonstrating 2023 murano’s xtronic cvt during full throttle acceleration?.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!