Question: Please answer this in C++ code! thanks will rate!! Problem A: Rectangular Wedding Table Arrangements (table.c) One of the first jobs everyone has when planning

Please answer this in C++ code! thanks will rate!!

Please answer this in C++ code! thanks will rate!! Problem A: Rectangular

Wedding Table Arrangements (table.c) One of the first jobs everyone has when

planning a wedding is picking a venue for the reception. In doing

so, many venues show their seating arrangements for dinner to their clients.

Problem A: Rectangular Wedding Table Arrangements (table.c) One of the first jobs everyone has when planning a wedding is picking a venue for the reception. In doing so, many venues show their seating arrangements for dinner to their clients. Depending on the dimensions of the tables and the distance between tables affects the number of people that can be seated. In this problem, you'll analyze placing rectangular tables in a rectangular room. Given the relevant dimensions, your job will be to determine the maximum number of people that can be seated in the room (i.e., find the optimal arrangement). First, we assume that the room dimensions, length by width, are given, in feet. Next, we assume that each table is identical in size, and those dimensions are also provided in feet. We are also given the number of feet of space required between each table and between each table and wall. The last piece of information we need is the number of people that can be seated at each table. Consider the following situation: Room dimensions: 50' x 30' Table dimensions: 8' x 4' Space required: 3' People per table: 10 Sample Run #2 What are the length and width of the room (in feet)? 52 28 What are the length and width of each table (in feet)? 8 4 How much space is required between tables (in feet)? How many people does each table seat? 10 The optimal arrangement seats 140 people. Problem B: Circular Table Arrangement (circle.c) Unfortunately for Arup, his fiance thinks that rectangular tables are not attractive. She prefers circular tables. For this portion of the assignment, you must make your calculations based on circular tables. The only difference in the input is that instead of receiving a length and width for each table, you will only receive the radius of each table, in feet. Here is an example for the same sized room, spacing and number of people per table as the example in part A with tables of radius 4: Sample Run What are the length and width of the room (in feet)? 50 30 What is the radius of each table (in feet)? 4 How much space is required between tables (in feet)? 3 How many people does each table seat? 10 This arrangement seats 80 people

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 Databases Questions!