A C++ program that inputs the names and monthly salaries of 10 employees. The program checks annual salary of each person. If annual salary is greater than or equal to Rs. 250000/- then it prints name, salary and a message ‘Tax to be paid’ else it prints name, salary and a message ‘No tax’. Using pointer
Q: Write a c++ program that prompt the user to enter two integer pointers that are 8 and 2,then…
A: GIVEN: Write a c++ program that prompt the user to enter two integer pointers that are 8 and…
Q: I). Write a program in c++ with class that will help an elementary school student learn…
A: A C++ program for the practice of multiplication is given as follows,File name: “main.cpp”//Declare…
Q: IN JAVA SCRIPT Create a function that takes an integer and reverses it. Examples rev (5121) ➡ "1215"…
A: JavaScript program to reverse a integer
Q: Write a program that computes and assess the TF of the students in one semester, based on the given…
A: In the solution of given problem, first we read the tuition fees, then read the mode of payment…
Q: Q4, a mechanical pump whose rated speed is (Sm=15 cfm) is connected by a pipe and valve to a vacuum…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Write a C program that creates a security access code from a social security number entered by a…
A: // stdio.h is the C standard library it is a header file stdio.h which stands for standard…
Q: Variables in C++ are called pointer variables. Please explain to me what it is used for.
A: Introduction: There is a concept of the pointer in C++, pointer variables are those variables that…
Q: In c++ Write a program that reads two numbers, they are sent to a function with revered parameters,…
A: The above question is solved in step 2 :-
Q: hat generates a random number in range between 1 to 10
A: In C++ rand() is an inbuilt function to generate random numbers included in the standard library of…
Q: You need to write a C program that accepts an integer as input and displays the binary equivalent of…
A: A C program is to be completed, 10 lines of code are to be selected from the given 15 Options and…
Q: Give solution in C ++ Language with secreenshoot of source code. Part 1 Write a function that…
A: Part 1: #include <iostream>using namespace std; // function definition to swap valuesvoid…
Q: Vrite a simple C program that can determine whether a machine is little- or big-endian. 2. Printing…
A: Answer: I have given answered in the brief explanation
Q: Question #3: Write a C program that repeatedly asks the user to enter real numbers from the…
A: The C program needs to read integer values repeatedly. To read numbers repeatedly, we need a loop to…
Q: FOR C++ PROGRAM, PLEASE WRITE THE CODE IN 15 MINUTES ! Write a function that draws a square as…
A: PROGRAM INTRODUCTION: Include the required header files. In the definition of the main function,…
Q: In python, write a function that receives two numbers as parameters and returns their…
A: The complete answer in python program is below:
Q: write a recursive function named choose (int n,int k) that will compute and return the value of the…
A: Define header files <iostream> and <string> for io and string operations, respectively.…
Q: Write a function is_palindrome(...) that returns a Boolean indicating whether a C-style string is a…
A: Language is one of the most widely used programming language which has been used to create different…
Q: Create a program that takes two parameters called base and expo such that b ase is not zero and…
A: Objective: This program includes a recursive function 'power' for computing the exponential value of…
Q: Computer Science In python, how do I make a function that will initiate a round of a game, in a…
A: The code is given below.
Q: Convert the following function to one that uses recursion. void sign(int n) { while (n > 0) cout…
A: A recursive function is a function that calls itself. Each recursive function contains two cases: 1.…
Q: Write a program in C ++language that enters Length (L) and Height (h) and return value of area…
A: * is the dereferencing operator used to get the original value stored in pointer
Q: Write a C program that asks the user for his name then prints it on the screen using a function…
A:
Q: Writing a program in c++ that generates random passwords made of Latin letters and numbers. The…
A: Given: i need the answer quickly
Q: C programming language: Write a function that takes 3 int arguments and returns the large
A: Lets see the solution.
Q: Write a C program that takes a command line argument ofa number that you need to calculate the…
A: Given: Please also explain how to put the input.
Q: using c++ Write a program that read a word from user. Then, create a function void reverse(char s[])…
A: The C++ program along with the snapshot of code and output is given below.
Q: Write a program in python with a function repeatPhrase(phrase, n), which prints the given phrase n…
A: In this question, we have to alternatively print in lower case and upper case. We will input string…
Q: Write a c++ code. Write a recursive function, vowelsCount that returns the number of vowels in a…
A: This question comes from Programming Language which is a paper of Computer Science. Let's discuss it…
Q: code in python program please Write a function that takes one integer parameter, makes sure it is…
A: Refer to the step 2 for the answer.
Q: In C, Given a char variable c that has already been declared, write some code that repeatedly reads…
A: //include the required header file #include <stdio.h> //define main function int main() {…
Q: Write a C program to solve a 4 x 4 Sudoko puzzle. Each row or column has only 2 missing numbers.
A: C program for Sudoko puzzle 4*4 #include <stdio.h>#include <stdlib.h>#include…
Q: Jack and Jill are novice programmers. They are asked to write a function in C Language that…
A: Below is the given program: #include <stdio.h>int jack(int n, int i){ if(i<=9) {…
Q: Write a complete C++ program that asks the user to input two integer numbers (i.e., n1, n2). There…
A: Task :- Write a C++ program to implement the sum function. C++ program :- #include…
Q: Write a program that reads a set of floating-point numbers and prints out the ten largest numbers.…
A: #include <iostream> using namespace std; int main(){ int size = 11; int i,j; double…
Q: our program should prompt the user for an integer and then for either 8 for base 8 conversion or 16…
A: Approach: In the program, a switch statement is used in which case 1 executes to convert decimal to…
Q: write a function sequence in Python that accepts an number ( int ) and that prints a sequence of…
A: Code def sequence(n): while(n>1): print(n) if(n%2==0):#Check Even Number…
Q: C Programming Write a program that reads an integer from the user (keyboard), namely n. Your…
A: As per the given problem statement we are required to develop a C code which take an input of…
Q: For the following programming problems, you need to time a section of code in C++. For example, the…
A: The answer is given below:-
Q: Write a c++ program that prompt the user to enter two integer pointers that are 8 and 2,then…
A: Algorithm: Start Read 2 numbers Store the addresses of the 2 numbers in 2 integer pointers a,b…
Q: Write a program in python with a function repeatPhrase(phrase, n), which prints the given phrase n…
A: here in this question we have to write a program in python which take any string and integer n from…
Q: write a recursive function factorial that will take an integer value n as an argument, and will…
A: #include<iostream>using namespace std; int fact(int n); int main(){ int n; cout…
Q: Chapter 4 write a program in C ++ language to name a row with the name (Count) to calculate the…
A: Summary- In this question, we are asked to calculate the population of a given row/area. For this we…
Q: Write a recursive function count_digits()that counts all the digits in a string.This would be…
A: Please find the answer below :
Q: ii) In C programming language, write a program to input a floating-point number and the number of…
A: The code is given below
Q: Write a program which consists of a user defined function: compute (), it should take one integer…
A: In the main function of the C- program, OddFibCount.c , prompt user to enter n-value and then call…
Q: A Palindromic prime is a prime number that is also a palindromic number. Write a C++ program that…
A: #include<iostream>#include<iomanip>using namespace std;bool isPrime(int n){if(n==2)…
Q: In c++ Write a program to take two numbers from user and then perform division on these number…
A: Requirements :- In c++ Write a program to take two numbers from user and then perform division on…
Q: In C language, write a program to convert an Infix Expression to Postfix and then evaluate. Do not…
A: #include<stdio.h>#include<string.h>char stack[50];int top=-1;void post(char…
Q: Write a program that inputs a string value from the user and displays it in reverse using pointer.
A: Pointers in C++ are basically stores the address of a variable. Here we will use the pointers to…
A C++ program that inputs the names and monthly salaries of 10 employees. The program
checks annual salary of each person. If annual salary is greater than or equal to Rs. 250000/-
then it prints name, salary and a message ‘Tax to be paid’ else it prints name, salary and a
message ‘No tax’. Using pointers.
Step by step
Solved in 2 steps with 2 images
- (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.Write a c++ program that prompt the user to enter two integer pointers that are 8 and 2,then calculate the sum and average of the two ;No conditional statement should be used in your code ,only pointers are allowed.Write a program in c that will read an arbitrary numbers of proverbs from the keyboard and store them in the memory that's allocated at run time(pointers). The program should then output the proverbs ordered by their length, starting with the shortest and ending with the longest **for arbitrary no of proverbs (the program should display a prompt every time it runs and ask the user the NUMBER of proverbs he/she wants to enter **AND then the user will enter the proverbs according to the number he provided first and then the entered proverbs are stored in pointers as mentioned above) **plz provide the code in text base format too instead of only pictures
- Write a program in C that will find the maximum number from 3 float type numbers. You have to use the function getMax which will take 3 pointer variables and return the maximum number.Write a C program to swap two integers you should write a function named as swap_intand it should accept arguments as pointers then it should swap integers bydereferencing those pointers.The program will ask the user for their name and employee ID. The ID will be a five-digit number. This will be done in a single function, AskNameId, with bool return, where the name and id are passed as pointers. Read both variables as strings with a getline and convert the id to an int using atoi. Check that the id is not 0. If it is, cout a message to the user for entering an invalid id. Check if the name is an empty string. If it is, cout a message to the user for entering an invalid name. Return a bool, true if name and id are both valid and false if either one is not valid.
- write a C++ program. Write a program that calculates and displays the average of a group of test scores, all integers, after the lowest score in the group has been dropped. There are six test scores in the group. The program must contain only the following functions in additionto the main:• void getScore should ask the user for a test score, store it in a referenceparameter variable, and validate it. This function should be called by the mainfunction once for of the six scores to be entered by the user.• double calcAverage should calculate and return the average of the five highest scores. This function should be called just once by the main function, and should be passed the six scores. Use pass by reference to receive the lowest test score.• int findLowest should find and return the lowest of the six scores passed to it. It must be called by the calcAverage function, which uses it to determine which of the six scores to drop.• void displayResults should be called by the main function…Write a program in c++ that calls a function that returns the smallest of three floating-point numbers.Write a C++ program that play the Card Guesssing Game. Your program must give the user the following choices:1. Guess only the face value of the card.2. Gues only the suit of the card.3. Guess both the face value and the suit of the card. Before the start of the game, create a deck of cards. Before each guess, use the function random_shuffle to randomly shuffle the deck.
- Write a program in C language that implements a simple hand calculator. The followings arithmetic functions are available on the calculator: addition, subtraction, multiplication, division, cosine, sine and tangent. The result of the function must have the same number of digits of precision as the highest precision operand of the function. An example of the program behavior is shown below. > 8.91 + 1 = 9.91 > 9.61*3.11 = 29.8871 > cos(3.14152759) = 0.99849715Write a C program that accepts two integers from the user then Display a menu and return the choice of the user: You must write functions for each of the entries in the Menu. Write a recursive function for number 6. For functions 5 and 6, pass the first integer to the function. Menu… [1] Sum [2] Difference [3] Product [4] Quotient [5] Square [6] Factorial [7] GCD [0] Exit Choice:You must answer the Problem in C++. (Anagrams) Write a function that checks whether two words are anagrams. Two words are anagrams if they contain the same letters in any order. For example, “silent” and “listen” are anagrams. The header of the function is as follows: bool isAnagram(const string& s1, const string& s2) Write a test program that prompts the user to enter two strings and checks whether they are anagrams. Sample Run 1 Enter a string s1: silent Enter a string s2: listen silent and listen are anagrams Sample Run 2 Enter a string s1: split Enter a string s2: lisp split and lisp are not anagrams