Make a C++ program using while loop to find the factorial of a positive integer entered by user. (Factorial of n = 1*2*3....*n).
defining a function that checks for duplicates in the array. It is simply a function that checks if the new item you are trying to add is already in the list or not. If it is in the list, the function will return any non-zero value (e.g. 1) to indicate TRUE or 0 for FALSE. This function can be called before adding the item to the array. A sample function call would be like
if (!(inthelist(newItem, array)))
add(newItem, array)
You may also create functions that accepts valid input only and another function displaying the contents of the array.
Construct a pseudo code and flowchart which reads in two integer values. Then display all the numbers that is located between two numbers. If the first number entered is smaller than the second number entered, print all numbers in ascending order. On the other hand, if the first number entered is greater than the second number entered, print all numbers in descending order. Example: Input : 3 7 Output : 3 4 5 6 7 Input : 7 3 Output : 7 6 5 4 3
Write a program that will get the average of all integers from 1 to 20 using do-while loop.
Write a program to calculate the sum and average of your various courses and use it to determine your grading point
If grade is equal to or greater than 70 your grade is A
If grade equivalent or greater than 60 your grade is B
If grade equivalent or greater than 50 your grade is C
If grade equivalent or greater than 45 your grade is D
If grade equivalent or greater than 40 your grade is E
Anything below your grade is F.
Construct a binary tree using the following 20,19,22,15,12,10,9,7,24,26,23,29,28,25
Write a program to calculate the net salary of an employee using the concept of structure.
Student information Window
The data should be saved in a file.
The student record may be deleted.
The student record may be searched based on the ID provided.
The student record may be updated in case if its phone no or house address changes.
is programming example taken out of the textbook by D.S. Malik demonstrates a program that calculates a customer’s bill for a local cable company. There are two types of customers: residential and business. There are two rates for calculating a cable bill: one for residential customers and one for business customers. For residential customers the following rates apply:
For business customers the following rates apply:
write the flowchart and pseucode for question
Write a program to calculate the net salary of an employee using the concept of structure.