how to create simple program using protected access modifier?
how to create simple program using private access modifier?
how to create simple program using public access modifier
Write a program that accepts the amount of money deposited in a bank account, the annual interest rate and the target amount (The amount of money the account holder wants to have in the account after a period of time) and then calculates the number of years it will take for the money to accumulate to the targeted amount. NB: 1) The interest being earned is Compound Interest. 2) Don’t use the formula for calculating compound interest. For example if the money deposited is 10000 and the target amount is 20000 and the account earns an interest rate (compound) of 10% pa, then the output should be: - It will take 8 years for your money to reach your target. By the end of this period, the amount in your account will be 21435.89
Design & Implement a C- program that can handle salesmen records of ABC Company. Each salesman has unique 4-digit id #, name, salary, monthly sale & commission (commission is computed depending on value of monthly sale). Net income of a salesman is salary plus commission. Make maximum use of user defined Functions. Conditions for calculating commission are as follows: ➢ Commission is 20% of monthly sale, if sale is equal to or greater than 15,000. ➢ Commission is 15% of monthly sale, if sale is equal to or greater than 10,000 and less than 15,000. ➢ Commission is 10% of monthly sale, if sale is equal to or greater than 8,000 and less than 10,000. ➢ Commission is 5% of monthly sale, if sale is equal to or greater than 5,000 and less than 8,000. ➢ No Commission, if sale is less than 5,000
Create an application that will display a multiplication table number entered by a user. The program must display the first five multiplication values
Write a function named "eliminate_duplicates" that takes an array of integers in random order and eliminates all the duplicate integers in the array.
The function should take two arguments:
(1) an array of integers;
(2) an integer that tells the number of cells in the array.
The function should not return a value, but if any duplicate integers are eliminated, then the function should change the value of the argument that was passed to it so that the new value tells the number of distinct integers in the array.
Write a C++ program to make a structure of a student consisting of integer age, char name and structure roll number that further divides into department, session, registration number and degree. Set and display all the values from main function and display the record on screen to present the access of structure within structure. You have to by access structure using pointer type variable of structure
1. Two fair cubes are rolled. The random variable X represents the difference between the values of the two cubes.
a) Find the mean of this probability distribution. (i.e. Find E[X])
Anil is given a sentence as he tries to make a sentence special a sentence can be made special by swapping the character with high frequency with the character character has low frequency in the sentence help anil by transforming the sentence into a special sentence in python
swap most frequent letter with least given a sentence swap the occurences of the most frequent with the least frequent letter and vice-versa
note: consider upper & lower case letters as different .if there are multiple letters with the same frequencies choose the lower case letter that comes earliest in dictionary order O
input: Python is a programming language
o/p: Python is e progremming lenguega
input: Check your blood preeusre frequently
o/p: Check ybur olbbd preeusre frequently