Program in c to calculate gross salary

Assignment Help C/C++ Programming
Reference no: EM13920369

1. Ramesh basic salary is input through keyboard his da is 40% of basic salary and hra is 20% of basic salary. Draw a flow chart; write an algorithm and program in c to calculate gross salary.

2. Temperature of city in Fahrenheit degree is input through the keyboard Draw a flow chart; write an algorithm and program to convert this temperature in centigrade degree. 

3. Draw a flow chart; write an algorithm and program in c to find the largest of three numbers.

4. Draw a flowchart, write an algorithm and program in c to check whether the entered no is prime or not.

5. Draw a flow chart, write an algorithm and program in ‘C’ to calculate total marks, percentage of students, if marks obtained by students are input through keyboard and max marks can be obtained by students in each subjects are 100 show grade as:

If per obtained >=85 grade ’A’

If per obtained is >=70 grade ’B’

If per obtained is >=55  grade ’C’

If per obtained is >=40 grade ‘D’

If per obtain is <40 grade   ’E’.

6. Draw a flowchart, write an algorithm and program in ‘C’ to find sum of all digits of a four-digit number entered through keyboard.

7. Draw flowchart, write algorithm and program to check whether the number is Armstrong or not.

8. Draw flowchart, write an algorithm and a program in c to print the following pyramid.

*

* *

* * *

* * * *

9. Draw a flowchart, write an algorithm and menu driven program in c, which has the following options

Factorial of a number.

Odd or even 

Exit

10. Draw flowchart, Write algorithm and program for function to obtained prime factors of the inputted integer. (Prime factor of 24 is 2,2,2,3).

11. Draw a flowchart, write an algorithm and a program in ‘C’ to print Fibonacci numbers (0,1,1,2,3,5,8,13).

12. Write a function power to calculate the value of ‘a’ raised to ‘b’.

13. Draw a flowchart write a program in ‘C’ to compute factorial of a given number using recursion.

14. Draw a flowchart write a program in c to check whether the entered year is leap year or not using function. 

15. Draw a flowchart write a program in c to exchange values of two-integer variable using call by reference.

16. Draw a flowchart; write an algorithm and program in c to find the largest and smallest element of an array.

17. Draw a flowchart; write an algorithm and program in c to sort the given array in ascending order.

18. Draw a flow chart; write an algorithm and a program in ‘C’ to print sum of rows and columns of 3x3 matrix.

19. Draw a flowchart and write a program to find the sum of two 3 X 3 Matrix.

20. Draw a flowchart, write an algorithm and a program in ‘C’ to accept values in an array and print sum of all elements of an array Using pointers. 

21. Draw a flowchart; write an algorithm and a program in ‘C’ to search an element in an array by linear search. 

22. Draw a flowchart, write an algorithm and a program in ’C’ to convert the upper case letters of a string to the lower case letters and vice versa without using library function.

23. Draw flowchart; write an algorithm and a program in ‘C’ to check a user-entered string for palindrome.

24. Write a program in ‘C’ to create the structure having fields empno, empname and basicsal calculate HRA, DA, and net salary on the basic salary.

Net sal = basicsal+da+hra.

hra = 30% of basic sal.

da = 20% of basic sal.

25. Write a program in ‘C’ to read and write a character from a file using fgetc() and fputc() function. 

26. Write a program in ‘C’ to copy a file character by character. 

27. Draw flowchart, write algorithm and program to insert an element at specified position in a single dimensional array.

28. Draw flowchart, write algorithm and program to delete an element from specified position in a single dimensional array.

29. Write a program to read and print record of n students using arrays with structure where structure of student consists of rollno and name. 

30. Draw flowchart, Write program to illustrate use of fwrite() and fread().

Reference no: EM13920369

Questions Cloud

System balanced security and usability : Examine how this system balanced security and usability, and explain the challenges of incorporating system security and system usability into a design.
Researchers assert that white-collar crime : Which criminals, according to studies reported in the text, are most likely to be caught and punished harshly?
Allocate unamortized discount or premiums : On January 1, 2006, Jamona Corp. purchased 12% bonds, having a maturity value of $300,000, for $322,744.44 with 10% yield for bondholders which are dated January 1, 2006 and will mature January 1, 2011, the interest will be received December 31 ea..
How does the ritz-carlton match up to competitive hotels : How does The Ritz-Carlton match up to competitive hotels? What are the key differences? Discuss the importance of the "wow stories" in customer service for a luxury hotel like The Ritz-Carlton?
Program in c to calculate gross salary : Ramesh basic salary is input through keyboard his da is 40% of basic salary and hra is 20% of basic salary. Draw a flow chart; write an algorithm and program in c to calculate gross salary.
Principles of direct manipulation : Describe the three (3) principles of direct manipulation and give examples as to how they are used in video game controls. Analyze video game-type interfaces and discuss three (3) reasons why video game-type interfaces would not be effective for rea..
Is the morning after pill abortion or contraception : Can we give a person the right to take away the life of another? Is the morning after pill abortion or contraception? Science provides the information and facts about abortion but the way the information is viewed is interpreted differently.
Analyse the internal and external environment : Critically analyse the internal and external environment for your chosen organisation, making reference to appropriate literature sources - Using appropriate concepts and models of strategic Human Resource Management critically evaluate a variety o..
Benefits of using im in business communication : Question-1 Communication is the process of Question-2: Business communication is often more demanding than social communication because communication on the job is affected by

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a new animal that flys with a jetpack

Create a new animal that flys with a jetpack. This will require a new fly behavior and a new class. This new animal eats kale.

  Write a hexadecimal integer literal

Write a hexadecimal integer literal representing the value fifteen.

  Allow a user to manage the inventory of a small store

Write a C++ program that will allow a user to manage the inventory of a small store.  The inventory for the small store will contain the following information for each product in the inventory:

  Compute the power loss in a transmission line

Write a program to compute the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compute the power loss if 500 kw of power is transmitted from a power generating station to cities at distances of 20, 30, 40, 50,....., 100 mile..

  Design a class named pet

Design a class named Pet, which should have the following fields: Name - The name field holds the name of a pet. and Type - The type field holds the type of animal that is the pet. Example values are "Dog", "Cat", and "Bird"

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

  Implement a class to represent a matrix

Implement a class to represent a matrix. While doing this exercise, you are allowed only to use C++ primitive types and arrays. You may not use STL in your Matrix definition. You must use dynamic memory.

  Create a graphical calculator with buttons that can add

create a graphical calculator with buttons that can add subtract multiply divide - sin cos tan clear and modulus.write

  Create a program that contains 4 methods

Create a program that contains 4 methods / functions... main(), getTestScores(), calcAverage(), and displayAverage(). The main() method should call the getTestScores() method to get and return each of 3 test scores.

  Creating a part number

Write C++ program that asks a user to enter a part number to order. The rules for creating a part number are as follows:

  A file (complex.txt) which has a number of complex numbers

Read in a file (complex.txt) which has a number of complex numbers in the form of a+bi (e.g. 3+5i  2-3i etc).

  Braces for blocks of code

C-- should have braces for blocks of code, an if statement, while statement, and a double, int, and character. Each statement ends with a semi-colon and you must have a main routine

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd