Question

Write in C language

CEOs Problem Every CEO has their own unique problem, they say. The same goes to Jajo. Determining the fate of his newbom com

0 0
Add a comment Improve this question Transcribed image text
Answer #1

HI

#include <stdio.h>

int main() {
   int t,i,j,m,n,c,recieved, paid,count=0,profit=0;
scanf("%d",&t);
   while(t--){
   scanf("%d %d",&m,&n); // input taken
   for(i=0;i<n;i++){
  
   scanf("%d %d %d",&c,&recieved ,&paid);
   count+=c; // calculationg new customer
   profit+=recieved-paid; // calculating profit
   }
   if(profit<0){
   printf("deficit ");
     
   }
   else printf("Profit ");
  
   m=m+count-1;
  
   if((m/2)<(count-1)){
   printf(", master Leader");
     
   }
   else {
   printf(", insignificant in the market");
   //cout<<", insignificant in the market";
   }
   }
   return 0;
}

so this is the code i have made in c Language

I have tried my best to answer your question

If you have any doubt then please ask me in comment section

I will try my best to answer your query

ThankYou!

Happy Learning:)

Add a comment
Know the answer?
Add Answer to:
Write in C language CEO's Problem Every CEO has their own unique problem, they say. The...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • write in C language Decoration Lights Jojo is currently working in an office as a security....

    write in C language Decoration Lights Jojo is currently working in an office as a security. Every night, after everyone returned home, he needs to make sure all decoration lights in the office is turned off. The decoration lights are unique: each of them has a timer that will switch the light on or off every two seconds. The lights are also arranged so well that each two neighboring lights will have different state (on/off). As long as the timer...

  • Write in C language . Thank you Count Sheep Jojo is having problem to sleep at...

    Write in C language . Thank you Count Sheep Jojo is having problem to sleep at night. He can't fall asleep and it makes him feel tired every day. Having this problem, Jojo told his friend Bibi, and Bibi advised him to do sheep counting while he tries to sleep. Jojo decided to try using this trick for N nights, to test its effectiveness. Jojo realized that he would fall asleep if he imagined a total of 10 white sheep....

  • C Programming Language Problem Title : Climbing Stairs Bibi climbs stairs of a multi-leveled building. Every...

    C Programming Language Problem Title : Climbing Stairs Bibi climbs stairs of a multi-leveled building. Every time Bibi climbs a set of stairs, she counts the steps starting from 1 to the number of steps in that particular set of stairs while climbing the stairs. For example if she climbs two set of stairs, the first containing 5 steps and the second containing 3 steps, she will say 1, 2, 3, 4, 5, 1, 2, 3 and the total number...

  • Write a C++/Java program to solve the problem below using Memoization: Problem Definition: Theres a theif...

    Write a C++/Java program to solve the problem below using Memoization: Problem Definition: Theres a theif that enters a store during the night,and upon his entrance,the stores security systems detects the theif and the alarm goes off.The theif knows that theres a hidden door at the corner of this store and in order to escape,he has to get to it.Since the theif has limited time for his burglary,he can only Rob the stuff he comes by on his path towards...

  • This problem has three questions. Make sure to answer all three questions. For the following problem,...

    This problem has three questions. Make sure to answer all three questions. For the following problem, assume that all debts and payments are incurred at the end of the month and that interest is compounded monthly. Assume that retirement savings are invested in the stock market and earn an annual interest rate of 11%, which is compounded monthly. . Big Spender James gets a credit card at the beginning of his freshman year. • He adds $693 of credit card...

  • arl and Simon are two rival pumpkin growers who sell their 27.1 (0) C pumpkins at...

    arl and Simon are two rival pumpkin growers who sell their 27.1 (0) C pumpkins at the Farmers' Market in Lake Witchisit, Minnesota. They are the only sellers of pumpkins at the market, where the demand function for pumpkins is q 3.200-1.600p. The total number of pumpkins sold at the market is q qs, where qc is the number that Carl sells 323 NAME mber that Simon sells. The cost of producing pu mpkins for either farmer is $.50 per...

  • Problem 1 The American Manufacturing Company produces only one product. The firm purchases a key input...

    Problem 1 The American Manufacturing Company produces only one product. The firm purchases a key input at a price of $4 per unit of production. The firm then pays a wage rate of $6 per unit for the time that labor is exerted. In addition, $2 of indirect inputs is paid for each final unit of output produced. The firm sells every units of the product for $20. What is the contribution of each unit of output to GDP in...

  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

  • Write in java language ================== Office Supplies Inc., an office supply store, services many customers. As...

    Write in java language ================== Office Supplies Inc., an office supply store, services many customers. As customers’ orders for office supplies are shipped, information is entered into a file. Office Supplies bills their customers once each month. At the end of each month, the Chief Executive Officer requests a report of all customers sorted by their customer id (from lowest to highest). The report includes their bill balance and tax liability. Write a program to produce the outstanding balance report...

  • Which of the following is considered an example of unique circumstances in an IPS? Legal and...

    Which of the following is considered an example of unique circumstances in an IPS? Legal and regulatory Tax consideration Preference about investment duration Diversification needs You decide to make 5 annual investments of $2,000 each starting a year from now. Your aim is to accumulate $15,000 by the end of 5 years.To achieve this, you will need a rate of return of 20%. Which of the following Excel formula is applicable for this calculation? The NPV() formula The FV() formula...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT