WebExample 4: Write pseudo code to print all multiples of 5 between 1 and 100 (including both 1 and 100). Example 5: Write pseudo code that will count all the even numbers up to a user defined stopping point. Example 6: Write pseudo code that will perform the following. a) Read in 5 separate numbers. b) Calculate the average of the five numbers. WebFeb 27, 2024 · import datetime def print_age (): year = raw_input ('Enter your age (YYYY/MM/DD): ') try: year = [int (i) for i in year.split ('/')] birth_data = datetime.date (year …
What is a pseudocode that determines if an age is …
WebMay 26, 2024 · Design a modular program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula: #When i run this code, my introduction does not show up first. WebOct 11, 2016 · Algoritma. menghitung umur, dimana jika tanggal sekarang belum melewati tanggal lahir pada bulan yang sama maka umur dikurang 1 (belum bertambah umur). … paper abstract definition
How to Write Pseudocode: 15 Steps (with Pictures) - wikiHow
WebJul 26, 2024 · Pseudocode literally means ‘fake code’. It is an informal and contrived way of writing programs in which you represent the sequence of actions and instructions (aka algorithms) in a form that humans can easily understand. You see, computers and human beings are quite different, and therein lies the problem. WebAge Calculator Answer: Age = 22 years Born on: Tuesday December 5, 2000 Age on: Tuesday April 11, 2024 = 22 years 4 months 6 days = 268 months 6 days = 8,162 days ≈ 195,888 hours ≈ 11,753,280 minutes ≈ 705,196,800 … WebWrite Java code that asks the user to enter an integer between 1 and 20 , and then calculates and displays that number of rows of Pascal's Triangle. ... each person's response to the question is an integer value between 1 and 5 . ... columns, and subgrids, the only values that could go into that cell are 5 and 6.) Write pseudocode that ... hp smart tank plus 559 thermal inkjet printer