Write a c program to find the gross salary of an employee after taking basic salary, HRA, DA from the user. Gross salary includes the basic salary, HRA, DA, pf
Q: Write a C++ program, using function, to inputs a student's degree and returns "Excellent" if…
A: Cpp Code:- #include<iostream>using namespace std;int main(){ int i; float degree;…
Q: Exercise 2: Write a C++ program to get mean of the degrees of student (Math = 80, Science =67,…
A: c++ program ia as given below ; / C++ Program to Find Average and Percentage Marks…
Q: Write a program in C++ to read student degree in four subjects then find the summation for all the…
A:
Q: Write a C Program that ask the user to choose from 2 categories, then ask the user to enter two…
A: C Code for computation of greatest or smallest number is in step 2.
Q: Write a C++ program that get age and height from user and display “Your age and height are the…
A: #include <iostream>using namespace std; int main(){ int age,height;…
Q: Write a C# program in which accept two numbers and returns addition and multiplication of the value…
A: I have given the c# code given below to addition and multiplication using out parameter.
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 that calculates a degree classification such that number of modules used for the…
A: ALGORITHM:- 1. Take input for the marks of 10 subjects from user. 2. Calculate the total of all the…
Q: Write a C++ program, using function, to inputs a student's average and returns 4 if student's…
A: In the solution of given problem, the else-if ladder statement has been used to test the multiple…
Q: Write a C program to simulate tossing a “fair” coin. Allow the user to enter the number of tosses.…
A: Generate random number and divide with 2 If remainder is 0, consider it as HEADS or else TAILS
Q: Write a C++ program to find the radius of a circle in which the center is (1,1) and the point on the…
A: 1) Below is C++ Program to find the radius of a circle in which center is (1,1) and the point on…
Q: Write a C++ program to read two lengths l1, l2 in the form of meters and centimeters by using a…
A: // ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and…
Q: Write a program in C that will add the numbers from 1 up to and including a given positive integer,…
A: In this question we are asked to write a program in C which returns the add of numbers which are not…
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 in which you have to generate nth term of the given sequence: 0, 3, 8, 15, 24,…
A: Given Sequence: 0, 3, 8, 15, 24, 35, 48, 63, .... Requirement: Write a program in C++ language that…
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 program in c++ that converts Celsius to Fahrenheit according to the following equation:…
A: CODE:- #include<iostream>using namespace std;void calc_fahrenheit(float celsius);int main(){…
Q: Write a C++ program to read two values (name and degree) for ten students and print the name and the…
A: This program will create a structure for the name and marks/degree of the student and then I have…
Q: Write a program in c++ using functions to insert two integers and find the greatest common divisor…
A: Answer : int gcd(int c, int d) { return c % d ? gcd(d, c% d) : d; }
Q: Write a C program that calculates the Total Money to be paid by a customer of a supermarket if…
A: PROGRAM INTRODUCTION: Include the required header files. In the definition of the main function,…
Q: Write a program in C++ language to find the average age of a group of 11 players, ask the age of…
A: Given: Age of 11 players. Requirement: Write a C++ program to take input age of players and print…
Q: Write a C++ program that inputs and prints the date (day, month, and year) of birth using the…
A: Please find the answer below :
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 C++ program in which a shop will give discount of 10% if the cost of purchased quantity is…
A: According to the Question below the Solution: Program Output:
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: Write a program in the C++ language to receive student information from the second stage as follows…
A: - We have to code the scorecard problem. - We are using C++ here.
Q: Ax + Bx = C for all constants (A, B, C and a) >0 -- a Find all possible roots.
A: Code: /****************************************************************************** Welcome to GDB…
Q: Write a C program to compute the telephone bill of a customer. Monthly rental is Php 100. Rates are…
A: The program is written in C. Find the program and output in below steps.
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: Write a complete C++ program that implements a simple calculator. The operators are +, -, *, and /.…
A: Program Plan:- Initialize all the header files. Take the input of operator and the integers from…
Q: Make a C programming of: Workers at a particular company have won a 7.6% pay increase. Moreover,…
A: code: //include the required headers#include <stdio.h>//main methodint main(){ //declare the…
Q: Write a program in the C++ language to receive student information from the second stage as follows…
A: Find the code attached.
Q: make diamond
A: Given- Write a program in c++ to make diamond
Q: Write a program in C Plus to read about ten students A specific subject matter where the information…
A:
Q: Create a C++ program that takes the employee id number, and previous monthly salary as inputs and…
A: #include<iostream> using namespace std; int main(){ int employeeId; float…
Q: Write a C program to take input the BMI of the user and print the grade of the user in the output.…
A: logic:- read bmi if(bmi<18.5)display "Underweight";else if(bmi>=18.5 &&…
Q: Write a C++ Program to find Factorial of a number using CLASS.
A: Algorithm: 1. Begin program 2. Request that the client enter a number to see as the…
Q: Write a C# program that converts feet to meters. The program sh in three-foot increments and the…
A: Note: The program print the equivalent meters of the inputted value along with three increments in…
Q: c++ to store the roll no. (starting from 1), name and age of 5 students and then print the details…
A: Create a class studnt with private roll_no, name and age variables. Declare a get() method to get…
Q: Write a c program that display the water invoice price on the screen as follows, according to the…
A: Below is the required code in C language. Program Approach: Include necessary header files to get a…
Q: rite a program in C to check a given number is even or odd Using the function with arguments and no…
A: Code #include <stdio.h>#include <stdlib.h>int find_Num(int);//function prototypeint…
Q: Write a C program: In a class of n students print the total no. of female students and total no. of…
A: Code: #include <stdio.h>int main(){ //declaring required variables int n1,n2,total;…
Q: Write a program in C ++ to find the result of executing the sequence S = 4/2 + 0/4 + 12/6 + 16/8 +…
A: We need to write a C++ program to find result of the given sequence S = 4/2 + 0/4 + 12/6 + 16/8 +…
Q: • Write a C program that takes as input a student ID, student name, level, and semester. All the…
A: Code to copy: #include<stdio.h>#include<conio.h>int main(){ char…
Q: Write a c++ program that reads non-negative integer number and determines whether it is odd or even…
A: #include <iostream> using namespace std; int main(){ int num, i, flag=0; // Declaring a…
Q: Write a complete C program for the following question Write C program to find the result of * X in…
A: ALGORITHM:- 1. Take the value of A from user. 2. Take the value of n from user. 3. Calculate the…
Q: Write a C program that prompts the user for a cost per item, number öf itéms purehase a discount…
A: Approach Input cost_per_item, number_of_items, discount_rate. Set TAXRATE to 6. Compute following:…
Q: Write a C program that calculates the Total Money to be paid by a customer of a supermarket if…
A: function main() Start Declare quantity, unitPrice, total Read quantity, unitPrice total = quantity…
Q: Write a C# program to count the number of repeated word in this sentence. “I know and I know if I…
A: Write a C# program to count the number of repeated word in this sentence. “I know and I know if I…
Step by step
Solved in 4 steps with 2 images
- a C++ program that recommends the number of calories a person should eat each day. Calories are units of energy found in all foods. Base your recommendation on the person's weight and whether the person has an active or sedentary (inactive) lifestyle. If the person is sedentary, that person's activity factor is 13. If the person is active, that person's activity factor is 15. Multiply the activity factor by the person's weight to get the recommended number of calories. Start your program by: having the user enter their weight, as a floating point number; having the user enter whether they have active or sedentary lifestyle, as a character, 'A' for active or 'S' sedentary; use a switch (or else if) selection statement to use the appropriate calculation for the recommended calories for the selected lifestyle. · print out your results on the screen.Develop a C++ program that will determine the gross pay for each of the employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays a “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of employees of the company, the numbers of hours worked by each employee last week and the hourly rate of each employee. Your program should input this information for each employee, and should determine and display the employee’s gross pay. Your program will end if a negative value was entered.Develop a C++ program that will determine the gross pay for each of the employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays a “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of employees of the company, the numbers of hours worked by each employee last week and the hourly rate of each employee. Your program should input this information for each employee, and should determine and display the employee’s gross pay. Your program will end if a negative value was entered. Submit: Source code and Output
- The Hotel Inn named as On Time Hotel in which you plan to spend the night tonight offers very interesting rates, as long as you do not arrive too late. Housekeeping finishes preparing rooms by noon, and the sooner guests arrive after noon, the less they have to pay. But if the guest arrives earlier, they would need to wait for noon before they can checked-in. Build a C program that calculates your price to pay based on your guest's time of arrival. Your program will read an integer (0 to 23) indicating the military hour of your arrival. For example, 12 indicates 12 noon arrival, 13 means 1pm arrival, 0 means midnight arrival, etc. The base price is 1000 pesos, and 200 pesos are added for every hour after noon. Thankfully the total is capped at 2000 pesos, so you'll never have to pay more than that. Your program should print the price (an integer) you have to pay, given the input hour of arrival. Additionally, If the client arrives from 6 until 11, then program must ask first whether…Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee’s basic salary, and generates the net salary after the respective deductions as described aboveWrite a C - Program to find the gross salary of an employee. Gross salary should be calculated through a user defined function.In an automobile company, salaries of the employees are distributed under the following manner: If his basic salary is less than Rs. 2000, then HRA (House Rent Allowance) = 10% of basic salary and DA (Daily Allowance) = 80% of basic salary. If his salary is either equal to or above Rs. 2000, then HRA = Rs. 500 and DA = 90% of basic salary. Employee's salary should be input through the keyboard. Note: prototype of the function is as follows and you must follow this prototype while writing a code float grossSalary(int );
- create a program in c that mimics the following dice game: A player rolls two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5, and 6 spots. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3, or 12 on the first throw the player loses. If the sum is 4, 5, 6, 8, 9, or 10 on the first throw, then the player must conitue to roll again until they roll that same number again in order to win. The player loses by rolling a 7 before making the point. Write a program in c that implements this game according to the above rules. The game should allow for wagering. This means that you need to prompt that user for an initial bank balance from which wagers will be added or subtracted. Before each roll prompt the user for a wager.Write a C++ program: you are now working for an accounting firm. Your employer is interested in determining the pay an individual is to recieve. The number of hours and pay reate should be read in. If the hours are over 40, the pay rate is "time and a half" for those hours over 40. Report the totol earned amount, the amount earned for regular hours and the amount earned for overtime hours Hours = 48 rate= 10 Hours = 42 rate= 12 Hours = 36 rate= 20 Hours = 52 rate= 8Write a program using C++ for the following: A program that allows students to register their information It should include their first name, last name, department, faculty, grades for all courses. For Student Grades, courses are graded out of 100%, so an example of a valid score is 70. There should also be a field to check if a student is active or inactive, and if receiving government tuition assistance. Finally, they should be able to check their grades for their academic life.
- complete a prewritten C++ program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts: The charge for all signs is a minimum of $35.00. The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. If the sign is made of oak, add $20.00. No charge is added for pine. Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. Instructions Ensure the file named HouseSign.cpp is open in the code editor. You need to declare variables for the following, and initialize them where specified: A variable for the cost of the sign initialized to 0.00 (charge). A variable for the number of characters initialized to 8 (numChars). A variable for the color of the characters initialized to "gold" (color). A variable for the wood type initialized to "oak" (woodType).…This program in C++ will obtain from the user a full name, a current annual salary, and apercent increase due on that salary. Assume that the new pay rate should have been ineffect on January 1, and it is now July 1. Calculate, store, and output the new annual salary,the new monthly salary, and the retroactive pay due. Retroactive pay is the differencebetween what they should have received had they gotten their raise on Jan. 1 and whatthey did receive.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 averages