Professional Documents
Culture Documents
#include <cmath>
#include <stdio.h>
int main()
float a;
int harvest;
int number_of_lines;
int day;
float Seaweeds_harvested_kg;
float seaweeds_day_old;
float Total_Seaweeds_after_45days;
float Remaining_seaweeds;
int transplant;
float New_Total_Line_of_Seaweeds;
float Transplanted_Seaweeds;
float Transplanted_Seaweeds_per_line;
float Total_transplanted;
{
b=(p/25);
c=a/b;
if (harvest == 2)
}
{
if (harvest == 1)
printf("Number of lines:");
scanf("%d", &number_of_lines);
Total_Seaweeds_after_45days = a - Seaweeds_harvested_kg;
scanf("%d", &transplant);
if (transplant == 1)
New_Total_Line_of_Seaweeds = (Seaweeds_harvested_kg/25)+(b-number_of_lines);
}
{
Transplanted_Seaweeds_per_line =(Seaweeds_harvested_kg/25);
Total_transplanted = Transplanted_Seaweeds/Transplanted_Seaweeds_per_line;
}UhhhhddeRSS_@z