Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago