Question: Q 3 . Design a flowchart program that solves the following problem. ( 6 Marks ) You are working on a software project for a

Q3. Design a flowchart program that solves the following problem.
(6 Marks)
You are working on a software project for a self-driving car system. The car has various sensors that collect data, including speed and road conditions. Your task is to test the control system that makes decisions about the car's behavior based on this data.
Here are the requirements for your program:
Read from user the speed of the car (speed).
Read from user the road conditions (road_conditions), assume it is a string code where "dry" represents dry road, and "wet" represents wet road.
Implement a decision-making system using nested if statements to determine the car's behavior according to the following rules:
If (speed) is above 100, display "Reduce speed to a safe level."
If (road_conditions) is "wet", and if (speed) is above 80, display "Reduce speed due to wet road conditions."
If none of the above conditions are met, display "Continue driving at current speed."
After making the decision, display the current speed and road conditions, and the action taken by the car's control system.
Your task is to create a detailed flowchart that represents the program's decision-making logic. Use standard flowchart symbols and include appropriate labels and arrows to indicate the flow of control. Ensure that the flowchart accounts for all possible combinations of input data.
 Q3. Design a flowchart program that solves the following problem. (6

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!