Write an algorithm that takes the age of a person and determines if it is in one of three groups(Under 13, 13-18, Over 18)
DECLARE AGE,GROUP;
READ AGE;
IF AGE<13
GROUP="UNDER 13"
ELSE IF AGE>13 AND AGE<=18
GROUP =" 13-18 "
ELSE
GROUP="OVER 18"
PRINT AGE
PRINT GROUP
Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me
Write an algorithm that takes the age of a person and determines if it is in...
C++ Program 1 – Write a program that determines if a person is an adult. Declare a string variable, firstName. Declare an integer variable, age. Asks the user to enter their first name, and store it in the firstName variable. Asks the user to enter their age in years, and store it in the age variable. If the age is greater or equal to 18, the print out their name and “you are an adult” Else print out their name...
Develop an algorithm which takes node-node incidence matrix as an input and determines whether the graph is connected or not.
Write an algorithm that takes two strings X and Y and a positive integer k as input, and determines whether Y can be turned into X by at most k insertions or deletions. For example: let X = “abacad", Y = “cebacad" and k = 3 then your algorithm should give a yes answer because Y can be turned into X in 3 steps by a left-to-right processing as follows: delete leftmost c delete “e" insert “a" Give an tight...
. Given the HashTable , write an algorithm that determines, post-insert, the number of collisions. Note that post-insert means AFTER the insertion phase is complete.
The table below shows the soft drinks preferences of people in three age groups. cola root beer lemon-lime under 21 years of age 4025 between 21 and 40 35 over 40 years of age 20 20 30 35 20 30 If one of the 255 subjects is randomly selected, find the probability that the person is over 40 years of age or that they drink root beer. Enter your answer as a fully reduced fraction.
Question 9 An insurance company selected samples of clients under 18 years of age and over 18 and recorded the number of accidents they had in the previous year. The results are shown below. Under Age of 18 ni = 500 Number of accidents = 180 SO-3 Over Age of 18 n2 = 600 Number of accidents = 150-36 Soo-.36 ISO - 3 180 360 .64 u 600 We are interested in determining if the accident proportions differ between the...
The table below shows the soft drinks preferences of people in three age groups cola root beer lemon-lime under 21 years of age between 21 and 40 over 40 years of age 40 35 20 20 30 If one of the 255 subjects is randomly selected, find the probability that the person is over 40 years of age given that they drink root beer. Express your answer as a simplified fraction O A 14 la On OD. None of the...
The table below shows the soft drinks preferences of people in three age groups. cola root beer lemon-lime under 21 years of age40 25 20 30 35 between 21 and 40 35 20 over 40 years of age 20 30 one of the 255 subjects is randomly selected, find the probablity that the person is under 21 years of age or that they drink lemon-lima. Enter your answer as a fully reduced fraction
The table below shows the soft drinks preferences of people in three age groups cola under 21 years of age between 21 and 40 over 40 years of age 40 35 20 root beer lemon-lime 25 20 20 30 30 35 Round all answers to 3 decimals. A) What is the probability that a randomly selected person prefers root beer or is over 40 years of age? B) What is the probability that a randomly selected person is between 21...
An insurance company selected samples of clients under 18 years of age and over 18 and recorded the number of accidents they had in the previous year. The results are shown below. Under Age of 18 Over Age of 18 n1 = 400 n2 = 500 Number of accidents = 190 Number of accidents = 150 Do people under the age of 18 get into significantly more accidents? Use a = 1%. "While I hope you have an appropriate null...