Question: Problem: A residential development begins with homes alternating on half - lot and full - lots. The first address is at 1 0 0 and

Problem: A residential development begins with homes alternating on half-lot and full-lots. The first address is at 100
and is a half-lot. The next lot is a full-lot with an address of 101. Continuing this alternating series of half-lots and full-
lots the third home would be at address 103 on a half-lot. There is no address 102.
Neighboring homes share a single driveway along the border of the adjacent properties. The first driveway, shared by the
homes at 100 and 101, would enter from North Road while the second driveway, shared by homes at 103 and 104, would
enter from the South Road. A similar alternating direction of entry onto the properties continues through the development.
Given an address and the dimensions of a full lot, determine whether the lot is a half-lot (' H ') or full-lot (' F ') and the road
to which the driveway is connected, either North Road ('N') or South Road ('S'). Lastly, display the lot size which is the
area for a full-lot and half of the area for a half-lot.
The address given will be no less than 100. Addresses such as 102 are invalid, see the example executions that follow for
a demonstration of how to handle invalid addresses.
Your program must accept input and produce output that matches exactly to the given executions.
Example Execution #1:
Enter property address 100
Enter property length 5
Enter property width 5
Property Type: H
Drive Entry: N
Lot Size: 12.5
Example Execution #3(invalid address):
Enter property address 102
Enter property length 44
Enter property width 55
Property Type: I
Drive Entry: I
Lot Size: 0.0
Example Execution #2:
Enter property address ->101
Enter property length ->5
Enter property width ->5
Property Type: F
Drive Entry: N
Lot Size: 25.0
Example Execution #4:
Enter property address ->110
Enter property length ->4.1
Enter property width ->10.2
Property Type: F
Drive Entry: S
Lot Size: 41.8
You cannot use if statements, boolean operators, or operants like '==' or '!=' in the code. You must exclusively use mathematical equations.
Problem: A residential development begins with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!