Q.1/Write a program in C++ language that introduces the salaries of ten teachers in five departments and then finds the average salaries of each department and the average salaries of all teachers in the five departments?
Q: An organization has two types of employees: regular and adhoc. Regular employees get a salary which…
A: Program code: #include <iostream>#include <string>using namespace std; //The Employee…
Q: Write in C Language Description F(x) = x + 1 G(x, y) = x + y Please write a program to…
A: /* C program to calculate the value of composite of F and G */ #include<stdio.h> int F(int x)…
Q: Write a C++ program which stores names of five cities and print the names of only those cities which…
A: Actually, program is a executable software that runs on a computer.
Q: Write a C++ program to read two lengths l1, l2 in the form of meters and centimeters by using a…
A: #include<iostream>using namespace std; class Length { public: int meter; int…
Q: Write a C++ program, which initializes a string variable to the content "Time is a great teacher but…
A: Declare the file stream pointer with the file path. write the string into the file using the…
Q: Write a program in C++ to handle the following scenario: Following is a list of tablets available in…
A: Arrays are utilized to hold multiple values in a single variable. Syntax of declaring an array :…
Q: Write a c program that calculates the potential energy of 3 charges q1=1, q2=2, q3=3 located at…
A: please do upvote for my efforts thanks! answer: code #include…
Q: Q 2/ Write a program in C++ language, to calculate the remaining volume by placing a hard ball…
A: In this question, we are asked to display the remaining volume after dipping a ball in a cube…
Q: Q.1 / Write a program in C ++ language that introduces the salaries of ten teachers in five…
A: logic:- create a 2d matrix of size 5*10 each row will store 10 teachers salary and it will denote…
Q: Write a c program dist.c that calculates the distance between two points and prints the result on…
A: The code is given in step 2.
Q: Write a program in C++ that reads three numbers and finds the middle value between them?
A: C++ program that reads the middle value between them
Q: ·Write a C++ Program that ask the user to get the following information: Name, Birth and Salary…
A: Here we have to write program in c++ using structure. we have to get name salary and birthdate from…
Q: Write a C ++ program to make a calculator that performs division and subtraction of five numbers…
A: C++ Code for the given scenario: #include <iostream>#define N 5 using namespace std; float…
Q: Write a c++ program that asks the user to enter a number and then prints all the divisors of that…
A: #include <iostream> using namespace std; int main(){ int num = 0; cout<<"\n Enter…
Q: Write a program in C++ that has the following: 1.Calculate average Grade from 5 scores. 2.Use…
A: C++ used to answer this question
Q: write a program in C++ that A user needs to determine the size of squares (let say delta) in a grid,…
A: Answer: our instruction is answer the first three subparts from the first part. we have done code
Q: Write a complete C program that inputs a line of text and a search string from the keyboard. Using…
A: Objective: This program would read a line of text from the user along with a search string (a word)…
Q: (a) Consider the pseudo-code in C language definition, comment on the result returned by h? Explain…
A: Objective: A pseudocode is given including three user-defined functions. The output of the program…
Q: Write a C++ program to overload area() function to calculate area of shapes like triangle,square,…
A: Define header file <iostream> for i/o operations. Declare a function area() with one integer…
Q: Write a C program that reads the exam data for each student in a line to be entered from the…
A: Answer in step2
Q: WRITE A PROGRAM IN C++ TO CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF…
A: Program Approach - Use the header files as per requirement. Define the main function. Declare the…
Q: Q2. A Technician Engineer in a District Assembly wants to issue only even-numbered stalls to market…
A:
Q: Write a program in C that calculates the voltage value (V) of the voltage source using a Function.…
A: #include<stdio.h> float findVoltage(float R,int I){ float voltage; voltage=I*R;//voltage =…
Q: Write a program in c++ that prints the next leap year.
A: In this question we are asked to print the next leap year in C++ Logic to find the leap year; if…
Q: In c++, write a unit conversion program that asks which unit to convert from and which unit to…
A: #include<bits/stdc++.h>using namespace std;int main() { float mag; cout<<"Enter the…
Q: Display following menu given below. Enter p for Panadol Enter d for Disprin Enter c for Calpol Enter…
A: Editable Code in C++ :- #include <iostream> using namespace std; int main() { //Menu…
Q: Write a program c++ to read the birth date (year, month, day) and read the current date (year,…
A: The first step is the header statements used to take the input and output statements from the users.…
Q: Write a program in C to check whether a number is a prime number or not using the function.(with…
A: The programming methodology for the program is given by: Including header files Function prototype…
Q: Q2 /I write a program in C++ language that converts the temperature from F to C using the concept of…
A: #include<iostream>using namespace std;int main(){ float C,F; cout<<"Enter the…
Q: Write a program in C Plus to read about ten students A specific subject matter where the information…
A:
Q: write a C program that has the following statements int a,b; a = 10; b = a + fun(); printf("With…
A: I have given an answer in step 2.
Q: Write a program in C that accept the student registration number as input and print the product of…
A: Objective: This program reads the student registration number as user input and computes the product…
Q: Paste three test cases at the end of the program( put them in comment area)
A: C++ program to generate all combination of well formed parentheses
Q: Write a C program for a match-stick game between the computer and a user. Your program should ensure…
A:
Q: First: Write a program in C++ by using function overloading that multiply: Two integer numbers Two…
A: Function Overloading: Multiple functions have the same name but different parameters are called…
Q: 1. Write a complete C program that reads the temperature of five cities in the last week then print…
A: Please give positive ratings for my effort. Thanks. PROGRAM…
Q: Write a program in C++ to read a sequence of integer numbers until a negative number is entered,…
A: Input the numbers in a vector. Create a function to find and print the sum of numbers in the vector.
Q: Write a C++ program to calculate the sum of marks of three students by passing object to a function…
A: When we consider a C++ program, it can be defined as a collection of objects that communicate via…
Q: Write a program (C,C++ or any other language) where a shop owner can input daily sales and calculate…
A: I am using c++ Algorithm: Start Read no.of days n Read sales for n days in an array a Read price of…
Q: write a program in C++, to create a class for calculate the volume of 3 boxes using class and…
A: Program Approach: Include header file. Defining a class "Box" inside the class three integer…
Q: Write a program that reads a C program and prints in alphabetical order each group of variable names…
A: #include<stdio.h>#include<string.h>#include<stdlib.h> #define BUFSIZE 1000#define…
Q: Write a program in C language to simulate tossing a “fair” coin. Allow the user to enter the number…
A: Write a program using c language that will take a number of tosses as input and find the number of…
Q: Write a C++ program that play the Card Guesssing Game. Your program must give the user the following…
A: The, code has given below:
Step by step
Solved in 3 steps with 1 images
- Write a program in C++, where: An organization has two types of employees: regular and adhoc. Regular employees get a salary which is basic + DA + HRA where DA is 10% of basic and HRA is 30% of basic. adhoc employees are daily wagers who get a salary which is equal to Number*wage.Write a program in C++ using OOP to create a class that have string (S), then create the following function: - (read) to input string from keyboard. (CTOS) as a friend function. convert small to capital, and capital to small. - (delete) as a friend function to delete half the length of the string.Write a value function in a C++ program that has two double parameters, calculates their difference, and returns the absolute value of the difference?
- Write a program in c# that extracts from a text all words which arepalindromes, such as ABBA", "lamal", "exe".• Write a function for a double function that will accept either two or three parameters of type double. • If it only receives two parameters, then it will return the average of the two numbers. • If it receives three parameters, then it will return the average of the largest number and the smallest number. • Write a complete C++ program to show the use of this function.WRITE A C++ PROGRAM ON FOOD ORDERING SYSTEM IN WHICH CODE WILL END AT POINTERS
- write a C program that has the following statementsint a,b;a = 10;b = a + fun();printf("With the function call on the right, ");printf(" b is: %d\n",b);b = fun() + a;printf("With the function call on the left, ");printf(" b is: %d\n",b);and define fun to add 10 to a. Explain results.Write a c++ program that will ask the user to complete a survey, where the user is asked for 5 current issues to rate. The user can rate the issues as many times as they want. After the user no longer wishes to rate the issues, display the total score and average rating for each topic. -no global variables may be used -use a prototype for your functions -separate function must be used to get input for the issues, get input for the ratings and to calculate the averagesWrite a C++ program that takes a prefix expression and evaluates it. It should support variables and an assignment operator It should be able to evaluate for example, (= a (+ 1 (* 2 3))), (* a a), so on. Please follow the instructions carefully. Thanks!
- Write any program in c++ fulfilling the following requirementsWrite a C program where you have to take 2 numerical inputs and 1 input for operator {the operator input has to be either ‘+’, ’-’, ’*’). Depending on some comparisons, you need to carry out three operations: addition ( + ), subtraction ( - ) and multiplication ( * ). Each of these operations will be implemented in separate methods. (i) If the first number is greater than the second number, do subtraction and print the result. (ii) If the first number is less than the second number, do addition and print the result. (iii) If the second number is equal to the second number, do multiplication and print the resultWrite a program in C++ to create object of type polar to the object of type cartesian and vice versa.(The question is from operator overloading and please use Codeblocks)