Write a C program to find out year in which Mr. Kavi was born from the following information: Kavi is m year younger than his mother. Kavi's brother who was born in year y(1900<=y<=2019) is n years younger to his mother. If Kavi's brother is reading in class r then On the basis of your comman sense also predict in which class Kavi is reading? Also write algorithm for the program.

Question

Write a C program to find out year in which Mr. Kavi was born from the following information:

  1. Kavi is m year younger than his mother.
  2. Kavi's brother who was born in year y(1900<=y<=2019) is n years younger to his mother.
  3. If Kavi's brother is reading in class r then On the basis of your comman sense also predict in which class Kavi is reading?

Also write algorithm for the program.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Other

Algorithms

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: It is said that series is size Immutable but still if we want to add a new data to it how can that b...

A: Series is a function of the pandas library in python.  it is a 1 Dimensional labeled array that can ...

Q: c++

A: Pointer is a variable which is used to store address of another variable &amp;variable returns addre...

Q: What is topology?

A: In this case, we have to define topology.

Q: Write a program to ask user to enter his date of birth and calculate how many independence days (15t...

A: PROGRAM: //Header file #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;time.h&gt;   ...

Q: Your group visits a shop to get your assignment typed and printed. Draw a flowchart to calculate the...

A: process: Ask the user to enter the number of pages save the value to a variable ask the user to ent...

Q: coding in C++ Tic Tac Toe game that will match a player against the computer. Do's: Use a typical 3...

A: Program Approach: Include necessary libraries &lt;iostream&gt; Now create a 2 D array of 3 *3 size....

Q: Please draw a flowchart and write a program that finds the years divisible to 4 between the years of...

A: Actually, program is a executable software that runs on a computer.

Q: Write a python program to store first year percentage of students in array. Write function for sorti...

A: n is a user-defined integer variable used to store the value of the number of students in the first ...

Q: A common programming problem is maintaining a list in numerical or alphabetical order. For example, ...

A: package Java.C.c; import java.util.*; import java.lang.*; import java.io.*; class value { staticin...

Q: In this module, we introduced the concept of modular programming through the use of methods to “divi...

A: Divide &amp; Conquer ApproachDivide and Conquer is a recursive problem-solving approach that breaks ...

Q: What is the difference between void and NULL pointers .Give suitable examples in support of your ans...

A: A null pointer is one which is not pointing to anything, i.e. it is assigned a null value. If there ...

Q: Show that the distance between the two points z1 and z2 in an Argand diagram is | z1 - z2 |

A: Every complex number can be represented geometrically as a point in xy-plane. Now, we shall call thi...

Q: Which of these these would result in a zombie process? Could be neither.

A:   Here in threadFunc(void* argp){ exit(0); }   application is exiting by running the exit command. b...

Q: How would you decide whether to use a traditional SQL-based API like ODBC/JBDC vs an ORM framework i...

A: The main disadvantage of the traditional SQL-based API like ODBC/JDBC is , the developer need to cod...

Q: Give answer of the picture question

A: Arithmetic Expression Result Description 2+5 7 Addition of an int with int is an int 13+89.0 102...

Q: help help

A: Code Copy: f=inline('x^3-x^2-18'); df=inline('3*x^2-2*x'); ea=100; count=0; xi=0.5; while (ea&gt;.01...

Q: Write a C program to find out year in which Mr. Kavi was born from the following information. a)    ...

A: If Kavi is m years younger than his mother and his brother is n years younger than his mother, the d...

Q: Make the program in C language

A: Program:   #include &lt;stdio.h&gt; int main(){    int matrix_array[4][4]; //matrix array        pri...

Q: Describe in your own words some key events in the history of project management.Identify the role of...

A: Timeline of project management - there is a general understanding that the history of modern project...

Q: What is meant by memory leak and dangling pointer? Explain the concept with the help of example.(in ...

A: Actually, memory is used to stores the data.

Q: This is a python programming class 1. tmp = "Good Day";  print( tmp[2:4])     tmp = "John Doe"; prin...

A: 1.output is od Doe     2.Output is ['H', 'i', ' ', 'B', 'y', 'e'] 3.

Q: Design a Hotel Management System A Hotel Management System is a software built to handle all online ...

A: The use case diagram is drawn for the Hotel Management System. It will be interaction between the cu...

Q: C program Andrew practices programming a lot and recently he came across the topic of pointers. He w...

A: A number is said to be prime number if it has factors one and itself i.e, No factors from 2 to n

Q: Write Algorithm as well as Design a flowchart to Get 10 numbers from user using loop. Find which num...

A: Algorithm:   Step1: Set array[10]. Step2: repeat i from 1 to 10:            read number and store in...

Q: In programming language C.Write a program to calculate electricity bill charged to a consumer. Ask h...

A: Please find the answer below :  

Q: Create a class BeautyProduct with name, color, brand. Provide Constructors, getters, setters and als...

A: First, create class BeautyProduct as mentioned.   Next, create class Lipstick which inherits base cl...

Q: "Dangling and wild pointers are known to be problems with pointers". Justify the given statement wit...

A: Dangling Pointer:   Dangling pointer term refers to those pointers which are pointing to a memory lo...

Q: Enter two strings and check whether one string is the reverse of other or not. For example, consider...

A: Java code: public class Main{ public static void main(String[] args) { //main method St...

Q: explain this Linux terminal command in your own words – “dig @192.168.0.2 practicelabs.com mx”

A: In the Linux terminal, "dig' is an abbreviated form for Domain Information Groper. dig is a powerful...

Q: Write an algorithm to input a number. Find its square if the entered number is multiple of 10. If en...

A: The algorithm is given by: Start Read the number as N check if (N%10==0) if true do step 4 else go ...

Q: Write a C program which should consists of a user defined function “Task ()” [Function returns no va...

A: PROGRAM: #include &lt;stdio.h&gt;   //defining Task() void Task(int* arr, int size, int element){   ...

Q: Consider a state space where the start number is 2 and the successor function for state n returns tw...

A: a. State space diagram: The state space of start state number  is 2 and the successor function n ret...

Q: (c) Match the following to one or more layers of the OSI model:a. Format and code conversion service...

A: a) Format and code conversion services -  Presentation Layer. b) Establishes, manages and terminates...

Q: Create a java program that inputs N digits as the elements of a 1-dimensional array. Accept a digit ...

A: Java Program : import java.util.Scanner; //class for getting user input.public class Tet{        pub...

Q: please help

A:   Output:

Q: How many branches are there in this network?

A: Solution in Step 2.

Q: Write an algorithm to input a number. Find its square if the entered number is multiple of 10. If en...

A: Since programming language is not mentioned therefore answering question in Python.   print("Enter t...

Q: Help their can possibly be more than one correct answer

A: x = 1 a = 1e-20 y = (x-a)-x y/a

Q: Create a Java program. You have a list of Student ID's followed by the course number(separated by aa...

A: Below code contains HashMap with Integer as key which stores student ids and ArrayList as value whic...

Q: (b) Describe Dynamic Binding as related to Class loading? (c) What is the role of a class loader?

A: (b) Polymorphism: The polymorphism is an ability of an object to react differently to different obj...

Q: -------------HW1_P1_INCOMPLETE.JAVA,,,,,,,,,,,,,,,,,,,,,,,,,, public class Hw1_part1 { public static...

A: Below is the required java program: - Program: - //Import the packages import java.util.Arrays; //De...