Question: Develop a flowchart and pseudocode for each programming question and include as part of your submission. Provide the source code in your submission with proper

Develop a flowchart and pseudocode for each programming question and include as part of your submission.

Provide the source code in your submission with proper indentation, label use, commenting and layout for each programming question.

Thanks

Develop a flowchart and pseudocode for each programming question and include as

Develop the following template into an embedded C program. Global variables here -avoid declaring too many globals unnecessarily as it is not considered a good programming practice.*/ int creditRatingAlice 750 ll 0 represents "defaulted" and 1 represents "paid" for the payment history int monthlyPaymentHistoryAlice 24] 11,0,0,0,0,0,0,0,0,1,1,,,1,1,1,0,1,1,1,1,1,0,1 void main (void) Il main), while looping endlessly, sets a global flag creditStatus to the value retumed by the function rewards OrAlarmO. Function called when Alice makes a monthly payment or defaults on the monthly payment. "Returns nothing, updates global variable creditRatingAlice. void updateCreditRatingAlice (int opcode, 0 if default, 1 if paid )f Il each monthly payment increments rating by 10 points all the way up to 800 lI every default decrements rating by 10 points down to 700. " Function that raises an alarm when Alice's rating is 700 for 2 consecutive months, or rewards her if she has maintained a rating of 800 for 2 consecutive months. Reads montlyPaymentHistoryAlice for input. Returns 0 if alarm, 1 if reward. Page 2 of 4 int rewardsOrAlam 00 Il Read next value in monthlyPaymentHistoryAlice. Note that this function needs to keep track of the Il last array element accessed so that when it reaches the last it can rewind to the first in a round Il robin fashion to read a value from the monthlyPaymentHistoryAlice array forever Il Pass the read value in monthlyPaymentHistoryAlice to function updateCreditRatingAlice(int x). ll Return reward/alarm value

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!