Employee ages will be entered in the program. When 0 is entered as age, write the C program code that displays the average of the ages entered so far.
Q: Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to 5). Once…
A: Write the program as follows: Create a 2D array of size 4*5. Input the sales of product for each…
Q: A small code that returns the average earning of all employees
A: In the program, a function named average is created to return the average earning of all employees.…
Q: in c++ Write a program to generate a random number between 1 - 100, and then display which quartile…
A: This question explains about C++ program Program Guidelines: Utilize the header records,…
Q: Write C++ program On Hotel reservation. The program should include: 1- A welcome message should…
A: the answer to the following question:-
Q: c++ Total Purchase A customer in a store is purchasing five items. The prices of the five items…
A: Overview of the Code: 1. Store the price of the item purchased. 2. Add all the item's price to get…
Q: ACE balloon shop sells balloons to customers at 10 Fils cach. If the customer buys 500-1000…
A: Please find the answer below :
Q: Write a program in c++ to prompt user to enter the salary and incentive.Company decides to deduct…
A: Program Approach - Use the header files and define the main function Declare the variables as per…
Q: In C++ Declare an integer variable. Write a cin statement to to read in a value into the variable…
A: Here in this question we have asked to declare a integer variable and cin statement to read the…
Q: cost of one small ball is 0.5 $ cost of one large ball is 1 $ Write a program in C++ to enter the…
A: Program Approach - Define the main function. Declare and initialize the variables as per code…
Q: Write a program to calculate electricity charges for a customer. The program requests a name,…
A:
Q: Q4 / A mechanical pump whose speed is (Sm = 15 cfm) is connected by a pipe and valve to a vacuum…
A: - We need to code the problem of calculating loss in C++.
Q: Write a program to generate a random number between 1 - 100, and then display which quartile the…
A: In this question, we are asked to generate random number and display in which quarter it exist.…
Q: in c++ Write a program to generate a random number between 1 - 100, and then display which quartile…
A: Program Instructions:Use the header files, constants, seed and random number generator given in the…
Q: Q2 Write a C++ program to calculate commission for the salesmen. The commission is calculated…
A: Program objective: - To find the sales commission according to the given data. Algorithm: - Start…
Q: Using “c” above, write a program that requests two fertilizer name and their respective yields. Your…
A: - The question is to input two fertiliser and their yield and print the fertiliser with biggest…
Q: c language for solution Write a program that will print out the result of the following equation…
A: Given:
Q: A farm sells eggs to local customer. It charges $3.25 for a dozen eggs, or 45 cents for individual…
A: Program: //include the required header file #include <iostream> using namespace std;…
Q: NAME MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY TOTAL Kwame 20 25 25 30 20 Adwoa 10…
A: In step 2, you will the C++ code.In step 3, you can see the sample output.
Q: A student is compiling his marks in four subjects. He wants to list them in the order of highest to…
A: C++ language is a direct descendant of C programming language with additional features such as type…
Q: Germany has minimum marrying law in which if any person has age greater than 18 , they can marry.…
A: Requirements:- Germany has minimum marrying law in which if any person has an age greater than 18,…
Q: using c++ Write a program that computes and displays the charges for a patient's hospital stay.…
A: #include <iostream>#include <iomanip>#include <fstream>using namespace std;double…
Q: 2. Use a structure called Time to write a C++ program that asks the user to enter a time value in…
A: STRUCT is a C++ data structure that is created to store together elements of different data types.…
Q: The table represents the sales of personnel’s in a company for a period of five days. As a…
A: Algorithm : Step 1 : populate the sales of the personals in three different arrays. Step 2 :…
Q: In C++ Create a function called DieRoll. It should create a random number between 1 and 6 and return…
A: Program AlgorithmDeclare the variable and declare the function prototype as int DieRoll(int low, int…
Q: Use a structure called Employee to write a C++ program that asks the user to enter his/her job…
A: According to the asked question, the solution is given below with a proper explanation.
Q: a program in c++ that takes the ages of ten students as input and at the end it displays the minimum…
A: Program in c++ to find the minimum and maximum ages: #include<iostream>using namespace std;int…
Q: Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units:…
A: Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: Exercise 4: Temperature Humidity (H) Weather (T) 16 20 Cold 22 40 Normal 35 75 Hot Write a C++…
A: CODE #include<iostream>using namespace std; int main(){ int temp, hum; cout << "Enter…
Q: ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys 500-1000…
A: As per the requirement program is completed in c++. Algorithm: Step 1: Write the main() method Step…
Q: Plenitude Property Developer offers freehold land in Penang to buyers only originated from Penang.…
A: #include<stdio.h> //calculatesRectangle function void calculatesRectangle(float length,float…
Q: Write a C code that creates an honor list for the top six students at SMC. Your program does this…
A: Program Plan:- 1. Initialize all the required header files. 2. Declare the three main variables…
Q: XYZ Telegram Company charges P18.50 for a telegram that do not exceed 12 words and P1.50 for every…
A: Find the required code given as below and output:
Q: Your program will prompt the user for the following information: current population number of…
A: 1) Below is python program to prompt the user for population, birth death and years to predict…
Q: Question: ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys…
A: Given: Write a C++ program to read no. of balloons to purchase and print the amount of bill in BD.
Q: Write a C++ code that asks the user to enter numbers of days then the program will show a table that…
A: /* C++ Program to Convert Days Into Years Weeks and Days */ #include<iostream> using…
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Below is the flowchart:
Q: If the total selling price of 15 items and the total profit earned on them is input through the…
A:
Q: Only Explain How This C++ Program Is working. write a Description/Explanation. Here's The program…
A: GIVEN CODDE #include<iostream>using namespace std; int main(){int…
Q: Q3. Write a C program that displays the menu shown in the example run, to the user, with the…
A: C-programming is a general-purpose,procedural,imperative computer programming language.
Q: 10. Salary/Income Calculator Write a C program that computes an employee's monthly salary and…
A: C is a versatile middle-level programming language that can be used for a variety of tasks. It can…
Q: different categories. Write a c++ program that would input the wind speed in mph and would output…
A: #include<iostream> using namepsace std; int main(){ int speed; cout << "Enter wind…
Q: Write a simple C# console application to accept the item name and item price. The program should…
A: Here is your code with an output .
Q: In C++ Create a function called checkSquares. It should take in two numbers bottom and top. It…
A: The checkSquares function is created in C++ that will take two numbers as a bottom number and a top…
Q: Write a C++ code that asks the user to enter numbers of days then the program will show a table that…
A: I have provided C++ Code for given question:
Q: Exercise 3: Write a C++ program that asks the user to enter the color code and prints the shade…
A: According to the Question below the solution: Program Output:
Q: The weather station of each city has the detail of rainfall in a year. Given the date and…
A: Required: The weather station of each city has the detail of rainfall in a year. Given the date…
Q: Write C++ code for the lexicographic arrangement of numbers.The user should be allowed to enter any…
A: Given : Write C++ code for the lexicographic arrangement of numbers.The user should be allowed to…
Q: In C++, int variables can be used to store the value of a logical expression True False
A: Question: True or False
Q: Compute the money deposited in bank after one year if a 10% markup has been added to the original…
A: Use Dev C++
Employee ages will be entered in the
Step by step
Solved in 2 steps
- Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to5). Once per day, each agent passes in a slip for each different type of product sold. Every agentpasses in between 0 to 5 slips each day. Each slip has the following information on it: The agent number The product number Total rupees of that product sold that day.Write a program in C++ that will read all this information for last month’s sales and brief thetotal sales by agent by product. The output should be in tabular form.Write a main function that calls div (int x, int y); Write the code below. Use C++ programming language.write in c language and the program should read 5 employees RANDOMLY
- NAME MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY TOTAL Kwame 20 25 25 30 20 Adwoa 10 10 40 35 25- Ama 30 32 32 42 30 The table above represents the sales of personnel’s in a company for a period of five days. As a programmer write a C++ program to populate al123331l sales as shown in the tables above and calculate the total sales made in the week by each sales personals.In C++ Create a function called Factor. It should output to the console all the factors of a number. So, if you receive 15, it should output 1,3,5.Please due in C++ The first picture has information about the code. The second picture is example on how the code should looks like. The user should give the company name and numbers. Thank you kindly A sample run is as follows: Enter the company name: TC Energy Enter TC Energy's stock symbol: TRP.TO Enter TC Energy's current stock price: 55 Enter TC Energy's annual dividend per share: 3.24 Enter the company name: Canadian Utilities Enter Canadian Utilities's stock symbol: CU.TO Enter Canadian Utilities's current stock price: 31.70 Enter Canadian Utilities's annual dividend per share: 1.76 Enter the company name: Bank of Nova Scotia Enter Bank of Nova Scotia's stock symbol: BNS.TO Enter Bank of Nova Scotia's current stock price: 70.08 Enter Bank of Nova Scotia's annual dividend per share: 3.60 Enter the company name: TransAlta Renewables Enter TransAlta Renewables's stock symbol: RNW.TO Enter TransAlta Renewables's current stock price: 21.75…
- Use C++ Programming int exemplary(int score) Returns how many entries in the scoreboard are greater than or equal to the given score. Initial code below virtual int exemplary(int score) { return 0; //you may or may not change this }Write an application that inputs three integers from the user and displays the sum, average, product, smallest, and largest of the numbers. [Note: The calculation of the average should result in an integer representation of the average. So, if the sum of the values is 7, the average should be 2, not 2.3333….] For C# programmingQuestion 2: Write a C Program A bank wants a program that determines the yearly interest earned on a guaranteed investment certificate (GIC), given a number of years. If the investment is for five years, the interest is 8.2% per year; if it is for one year, the interest is 5%. Print on the screen "Invalid data. Please try again later.", if the user enters any value other than 1 or 5 for the number of years of investment. Write a complete C program to determine the amount of interest earned per year Hint: Interest - amount * percentage
- Rm1 =100 sen The domestic tariff charged by Sabah Electricity Sdn Bhd (SESB) is given in Table 1. Based on the tariff, write a C++ program that can do the following questions. Give me the most basic solutionsUsing “c” above, write a program that requests two fertilizer name and their respective yields. Your program should display the fertilizer with the most yield Major Topic Variable scopeWhat must be the PSEUDOCODE for the C++ program below? #include <iostream> using namespace std; int main(){ int days, guests, children_below_4; float total; cout << "Welcome to Sy Residences! \n"; cout << "Please enter the number of days that you will stay: "; cin >> days; cout << "Number of Guests: "; cin >> guests; cout << "Number of children below 4 years old: "; cin >> children_below_4; if((guests-children_below_4)<=4){ total = (3000*days); }else{ total = (3000*days) + ((guests-children_below_4-4)*500*days); } if(days>=30){ total = total*0.8; }else if(days>=15 && days<30){ total = total*0.85; }else if(days>=7 && days<15){ total = total*0.9; }else{ total = total; } cout<<"-----------------------------------------------------\n"; cout<< "Total amount that the guest…