Programming

Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year.
Preferably a pseudocode

  1. 👍 0
  2. 👎 0
  3. 👁 160
asked by Siya
  1. without taking into account the months involved, just subtract the birth year from the current year to get the age.

    read current,birth
    print current-birth

    You might want to pretty it up to print prompts and label the output, but you didn't say that. Now is the time to learn that computers do exactly (and ONLY) what you tell them to do.

Respond to this Question

First Name

Your Response

Similar Questions

  1. CIS

    Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value. The program multiplies the value by 10 and outputs the result.

    asked by Sonya on October 11, 2012
  2. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write

    asked by riley on October 14, 2014
  3. PROGRAMMING

    PLS, I NEED TO BE GUIDED ON HOW TO WRITE A SIMPLE PROGRAM IN BASIC THAT WOULD PROMPT 3 LEVELS OF AUTHENTICATION WHEN UNAUTHORISED LOG-ON IS EFFECTED. You are not going to be able here to get detailed help on the program code, as

    asked by UZOWULU CHARLES on April 23, 2007
  4. Computer

    Draw a flowchart and algorithm pseudo code to print the product of the first 10 even number.

    asked by Tsega on June 19, 2019
  5. computer science

    a program to input the prices of two items as well as the quantities purchased, and compute the amount of the sale. Use both pseudo code and flowchart diagrams.

    asked by vinnie on January 22, 2015
  6. Joseph Ayo Babalola University

    Score 1,Score 2 and Score 3 are the marks scored by a student in three tests. Write a pseudo code,an algorithm and draw a flowchart to find the average of best two score

    asked by Bettlyn on December 28, 2015
  7. computers

    I have just started a basic class in programming and I am totally lost. Can someone help me out? I have to write pseudocodes and create flowchart and don't have a clue. I need help with the following: flowchart, pseudo-code, Input

    asked by Shawn on April 30, 2010
  8. Programming logic and design

    Design a program that lets the user enter the total rainfall for each 12 months into an array. The program should calculate and display the total rainfall for the year the average monthly rainfall, and the month with the highest

    asked by javane on April 20, 2012
  9. Programming

    write a pseudo code and then draw a flowchart to calculate tax deduction of employess salary >2000, tax is 7% and salary

    asked by lidetu on November 28, 2018
  10. MATHS

    There are 2000 students in a course. They wrote a mathematics test which was scored out of 40 and then converted to percentage. 1. Draw a flowchart that reads the name, sex and score of each student, and outputs the names of the

    asked by DAVID on May 23, 2017

More Similar Questions