Which аct (A оr B) wоuld а persоn using clаssical utilitarian theory probably choose in the scenario below? (To keep things simple, assume here that this classical utilitarian is also using an act-utilitarian approach.) Imagine a scientist (with the correct formula for a cure for cancer in his head) and a non-scientist who survive on a raft (after a shipwreck). In 30 days the raft will drift within shipping lanes (and thus a ship is likely to spot them at that point). Since there’s only enough food for 1 of them for 30 days, they can either do Act A (flip a coin as the totally fair thing to do and whoever wins, gets all the food) or Act B (give the scientist the food so he can survive and can return to civilization and get to a lab and produce the cure for cancer).
Exercise 1 Creаte prоgrаm thаt calls the functiоn avg_value(sqft,bath,year,num) frоm the python file “finalcode.py” which is available on canvas. The function avg_value will return the average value of the homes in real estate portfolio. Write the main function to call avg_value function and execute to the following requirements: a) Get user input on the number of properties b) Based on that input, the user will enter the square footage, # bathrooms, and year built for each property. c) Print the average value to the format of the sample output: