Daniel is an interior designer. He is planning to renovate one of his client's houses By choosing different colour of painting for different room based on the room area. Daniel requests a software that capable to prompt user (input by a character based on types of room, dimensions of the room The outputs of the software are to display the room area and the suitable colour for the room area) Table 1 shows the behind process of the system outcome. Based on the program description above, draw a FLOWCHART and WRITE a C program of the solution. t lergthi; input> types of roomd oulput display Hu toom Sutable color Colour Süggestion int width Is int alea int ares 22o Table 1: Colour Painting Program Types of Area Area of Room area Room "K' - Kids Rectangular: width x length Area 40m Area< 40m Area > 60m Area < 60m? Area 50m Area < 50m printf ("- Red Maroon Room Ocean Blue "D'- Dining Parallelogram: base x height Bamboo Green Hall Sun Yellow "G' - Guest Square: length x length Soft Beige Room Steel Grey ifCarea 7:40 pintf( "Coburs red mace ifC The sample output of the program should be as followiec" scarf Room Colour Painting Program Please enter the type of room:K Please enter the width and leagth of the room: 6 7 ROoArea: 42 na Colour Suggustion: Red Maroon dinansions (widthxlength) rectemigukaarealt : Vaea area) Room Colour Painting Progran Please enter the type of rooms D Please enter the base and haight of the roon: 2 9 Roon Area: 72 n2 Colour Suggeation: Banbo0 Green Room Colour Painting Progran Please enter the type of roon: G Please enter the length of the ro5m: 2 Roon Area: 49 m2 Colour Buggestion: Steel Grey Room Colour Painting Program Please enter the type of room: R Invalid roon type!

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
Daniel is an interior designer. He is planning to renovate one of his client's houses by
choosing different colour of painting for different room based on the room area. Daniel
requests a software that capable to prompt user (input by a character based on types of
room, dimensions of the room The outputs of thesoftware are to display the room area
and the suitable colour for the room area) Table 1 shows the behind process of the system
outcome. Based on the program description above, draw a FLOWCHART and WRITE a C
program of the solution.
int width lj
int lergih 5
types of room,dimen sons
chay typRdo
int aveo
int ares 2oj
Table 1: Colour Painting Program
mput
64 room
output a display Hu 1oom anca.
surtabli color 6r com
Types of
Area of Room
Colour Suggestion
area!
Area
Room
K'- Kids
Rectangular:
width x length
Area 40m?
Area < 40m
Area > 60m2
Area < 60m
Area > 50m?
Area < 50m?
printf C"-
Red Maroon
Room
'D' - Dining
Ocean Blue
Bamboo Green
Parallelogram:
base x height
Hall
Sun Yellow
"G' - Guest
Square:
length x length
Soft Beige
Room
Steel Grey
ifCarea 7:40m)
pnintf( "Cobursuggestonl
red marconn);
ifC
The sample output of the program should be as follows
scarf
Room Colour Painting Program
Please enter the type of room:K
Please enter the idth and length of the room: 6 7
ROom Area: 2, n
Colour Suggastion: Red Maroon
dimansions = (wicthxlength);
p (reckngubarealt: IPn
Veatr area);
Room Colour Painting Program
Please enter the type of room: D
Flease enter the base and haighe of the roon: 2
Room Area: 72 n2
Colour Suggestion: Banbo0 Green
Room Colour Painting Progran
Please enter the type of room: G
Please enter the length of the rm: 7
Room Area: 49 m2
Colour Suggestion: Steel Grey
Room Colour Painting Program
Please enter the type of room: R
Invalid roon type!
Transcribed Image Text:Daniel is an interior designer. He is planning to renovate one of his client's houses by choosing different colour of painting for different room based on the room area. Daniel requests a software that capable to prompt user (input by a character based on types of room, dimensions of the room The outputs of thesoftware are to display the room area and the suitable colour for the room area) Table 1 shows the behind process of the system outcome. Based on the program description above, draw a FLOWCHART and WRITE a C program of the solution. int width lj int lergih 5 types of room,dimen sons chay typRdo int aveo int ares 2oj Table 1: Colour Painting Program mput 64 room output a display Hu 1oom anca. surtabli color 6r com Types of Area of Room Colour Suggestion area! Area Room K'- Kids Rectangular: width x length Area 40m? Area < 40m Area > 60m2 Area < 60m Area > 50m? Area < 50m? printf C"- Red Maroon Room 'D' - Dining Ocean Blue Bamboo Green Parallelogram: base x height Hall Sun Yellow "G' - Guest Square: length x length Soft Beige Room Steel Grey ifCarea 7:40m) pnintf( "Cobursuggestonl red marconn); ifC The sample output of the program should be as follows scarf Room Colour Painting Program Please enter the type of room:K Please enter the idth and length of the room: 6 7 ROom Area: 2, n Colour Suggastion: Red Maroon dimansions = (wicthxlength); p (reckngubarealt: IPn Veatr area); Room Colour Painting Program Please enter the type of room: D Flease enter the base and haighe of the roon: 2 Room Area: 72 n2 Colour Suggestion: Banbo0 Green Room Colour Painting Progran Please enter the type of room: G Please enter the length of the rm: 7 Room Area: 49 m2 Colour Suggestion: Steel Grey Room Colour Painting Program Please enter the type of room: R Invalid roon type!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 6 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education