Question: Q 3 . Design a flowchart program that solves the following problem. ( 6 Marks ) You are working on a software project for a
Q Design a flowchart program that solves the following problem.
Marks
You are working on a software project for a selfdriving 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 roadconditions assume it is a string code where "dry" represents dry road, and "wet" represents wet road.
Implement a decisionmaking system using nested if statements to determine the car's behavior according to the following rules:
If speed is above display "Reduce speed to a safe level."
If roadconditions is "wet", and if speed is above 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 decisionmaking 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
