Let's provide a condensed version of the programs:
Part A) For Ron's farm:
```cpp
#include <iostream>
#include <iomanip>
int main() {
double area, portion = 1.0, sc1, pc1, fc1, lc1, sp1, sc2 = 0, pc2 = 0, fc2 = 0, lc2 = 0, sp2 = 0;
int numOfVeg;
std::cout << "Enter farm area: ";
std::cin >> area;
std::cout << "Enter number of vegetables (1 or 2): ";
std::cin >> numOfVeg;
if (numOfVeg == 2) {
std::cout << "Enter portion for first vegetable: ";
std::cin >> portion;
portion /= 100;
}
std::cout << "Enter costs and price for first vegetable: ";
std::cin >> sc1 >> pc1 >> fc1 >> lc1 >> sp1;
if (numOfVeg == 2) {
std::cout << "Enter costs and price for second vegetable: ";
std::cin >> sc2 >> pc2 >> fc2 >> lc2 >> sp2;
}
double revenue = (portion * area * sp1) + ((1 - portion) * area * sp2);
double cost = (portion * area * (sc1 + pc1 + fc1 + lc1)) + ((1 - portion) * area * (sc2 + pc2 + fc2 + lc2));
std::cout << std::fixed << std::setprecision(2);
std::cout << "Total revenue: $" << revenue << "\\Profit/Loss: $" << revenue - cost << std::endl;
}
```
Part B) For hotel room bookings:
```cpp
#include <iostream>
#include <iomanip>
int main() {
const double D10 = 0.10, D20 = 0.20, D30 = 0.30, ADD_D = 0.05;
double roomCost, salesTax;
int roomsBooked, daysBooked;
std::cout << "Enter cost of one room, rooms booked, days booked, sales tax: ";
std::cin >> roomCost >> roomsBooked >> daysBooked >> salesTax;
salesTax /= 100;
double discount = 0;
if (roomsBooked >= 10) discount = D10;
if (roomsBooked >= 20) discount = D20;
if (roomsBooked >= 30) discount = D30;
if (daysBooked >= 3) discount += ADD_D;
double totalCost = roomCost * roomsBooked * daysBooked * (1 - discount);
double taxAmount = totalCost * salesTax;
std::cout << std::fixed << std::setprecision(2);
std::cout << "Room cost: $" << roomCost << "\\Discount: " << discount * 100 << "%\\Rooms booked: " << roomsBooked
<< "\\Days booked: " << daysBooked << "\\Total cost: $" << totalCost << "\\Sales tax: $" << taxAmount
<< "\\Billing amount: $" << totalCost + taxAmount << std::endl;
}
```
Step-by-step explanation:
1. Part A) gets the farm area, the number of vegetables, costs, and prices. It calculates and prints the revenue and profit/loss.
2. Part B) gets room cost, rooms booked, days booked, and sales tax. It calculates discounts,
total cost, tax amount, and prints the billing information.
This condensed version omits some detail but should be more concise for your needs. Note that these examples do not handle invalid inputs.