Question: Problem 2: Write a program that computes your PIN number from your birthdate that is ente for day and month, respectively. The PIN number is
Problem 2: Write a program that computes your PIN number from your birthdate that is ente for day and month, respectively. The PIN number is computed as follows: red as 2 integer values 1. multiply the digits of the day (multDay). 2. add the digits of the month (sumMonth). 3. find the PIN number using multDay+100 4. print your PIN number. sumMonth. Sample input/output: Enter the day and month: 23 11 our PIN number is 206 Problem 3: Person A has a land of size areaA at priceA per square meter. Person B has a land of size areaB at priceB per square meter. Person A asked person B if he likes to exchange his land with person B land. Write a program that Person B can use to read the two areas and the two prices and decide whether to exchange the lands or not. Sample input/ output: Enter the area and price of land A: 3427 2750 Enter the area and price of land B: 1890 5128 o, I do not like to exchange Enter the area and price of land A: 3427 2750 Enter the area and price of land 8: 1890 3250 es, I like to exchange hille of the rity water company. The water rates varn
Step by Step Solution
There are 3 Steps involved in it
Sure lets tackle each problem one by one Problem 2 Compute PIN Number To compute the PIN number from ... View full answer
Get step-by-step solutions from verified subject matter experts
