C++ Celsius to Fahrenheit Write a program that converts user input in Celsius to Fahrenheit temperature. The formula is F=95∗C+32 F is the Fahrenheit temperature, and C is the Celsius temperature. Keep one digit of precision.
Q: When you deposit money in a savings account at a bank, the bank pays you interest on that money. If…
A: Here our task is to implement a c# program that calculate the total amount after n years deposited…
Q: Find the two lowest scores) Write a c++ program that prompts the user to enter the number of…
A: #include <iostream>#include <string> using namespace std; int main(){ int numOfStudents,…
Q: 5. Write a c++ code to input a number X which represents the number of seconds. Then output the…
A: EXPLANATION - Create a main function . Declare a variable X and take seconds as an input from the…
Q: Write a C++ program to ask the user to enter an alphabet to check whether it is a vowel or not, then…
A: We are going to design a C++ code which will check if entered character is a vowel or not. If…
Q: 8. If P is the population of the first day of the year, B is the birth rate and D is the death rate,…
A: To develop the required program, we need to take the input from the users and then check the values…
Q: write a program c++ If the temperature is above 100 degrees, display the message “above the boiling…
A: #include<bits/stdc++.h>using namespace std;int main(){ int temp; cout<<"Please…
Q: - If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Actually, program is an executable software that runs on a computer.
Q: What is the output from the following code segment if the user enters 8
A: According to the question we need to find the output from the following code segment if the user…
Q: Write a C++ program to estimate your water bill for next quarter. Your water meter measures the…
A: Introduction : Here we have to write a C++ program to estimate your water bill for next quarter.…
Q: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate 4.5%;…
A: PROGRAM CODE: #include <iostream> using namespace std; int main(){ int numYears,money;…
Q: 6-In K Write the equivalent C++ statement for the following Math formu -2*(x*x' 'y)*(-9*(x*y)+12*(x'…
A: Input of program : for formula 1: b,c,K,L for formula 2: x,y In C++: The * sign is used for…
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: Q #1. Write a complete C Program that will ask the user to enter a number N. Program will repeat N…
A: #include <stdio.h> int main(){ int n,i,a; printf("Enter a number: "); scanf("%d",…
Q: Write a C program that allows the user to enter values for the width and length of a wall in feet…
A: The required C program should generate a paint calculator in the output. It needs user input for the…
Q: C++ program called AlphaBravoCharlie which prints the numbers 1 to 110, 11 numbers per line. The…
A: The below given C++ program will obey the following rubrics: Including necessary header files.…
Q: Exercise 1: Write a C++ program that displays a series of integer numbers starting from 1 to n,…
A: PROGRAM STRUCTURE: Include the required header files. Start the definition of the main function.…
Q: Please use C++ Programming Write a program that inputs a number from the user (i.e. 0-99). The…
A: Write C++ program that inputs a number from the user (i.e. 0-99). The program should print a number…
Q: using flowcharts 8.Write a program which accept the user’s height in cm then display : a. You are…
A: algorithm:- Q8. if(height>180) display "you are so tall" else if(height>=180…
Q: The table below shows the AZA Travel Tour ticketing price: Package b) c) d) Istanbul Beijing Tokyo…
A: Step 1: Start Step 2: take input of package code Step 3: validate package code if valid continue…
Q: Questlon Two: Write a C+ program to calculate the average of five student grades, then print "A+" if…
A: Output 1: Output 2: Output 3: Output 4:
Q: Q3) Suppose two point coordinates say (x1.yl) and (x2.y2), write a C++ program asks the user to…
A: Note: only one question is permitted in compliance with the BNED Guidelines. If you would like a…
Q: (Guess the Number) Write a C program that plays the game of “guess the number" as fol- lows: Your…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: Write a program that inputs two real numbers then exchanges their values.
A: Note: The floating point types float, double, and long double are used to represent real numbers in…
Q: Q6) Write a program that calculates the factorial of a positive integer, factorial of zero is one.…
A: As the language is not specified answer written in c++
Q: Write a machine language program to input two one-digit numbers, add them, and output the one-digit…
A: Lets discuss the solution in the next steps
Q: A Computer Science instructor at a computer school wants his students to create a program that…
A: #include<iostream> using namespace std; int main(){ double…
Q: ite a C++ program that takes as input the number of seconds after midnight. It then displays the…
A: The header file name iomanip is also subpart of the Input/output library of the C++ Standard…
Q: USE C PROGRAM Print out the cube values of the numbers ranging from 1 to 1000 (inclusive). However,…
A: Write a program using C language which will print the cube of all the numbers from 1 to 1000 except…
Q: (Find the two lowest scores) Write a program of C++ that prompts the user to enter the number of…
A: Actually, c++ is a powerful general purpose language.
Q: A management firm has 100 employees in total. The management firm increases the salary of the…
A: I have provided C++ CODE along with SCREENSHOT OF CODE WITH OUTPUT---------
Q: 5.32 (Guess the Number) Write a C program that plays the game of "guess the number" as fol- lows:…
A: EXPLANATION: - Integer variables for user guess and random number generation are defined. The char…
Q: using C++ program 3. Write a program for comparing two input numbers if which of the two is smaller.…
A: 3. C++ Program that will compare two numbers and display which one is smaller. 4. C++ program that…
Q: 5. Write a c++ code to input a number X which represents the number of seconds. Then output the…
A: Define header file <iostream> for i/o operations. Define a function Convert_sec_to_day with…
Q: (c) You are required to create a program that reads a letter of the alphabet from the user. If the…
A: Algorithm: Start Read a character ch Convert the character to Lower case If character is a/e/i/o/u,…
Q: salesman in XYZ company is selling toothpaste for P89.75 each and tooth powder for P155 95 each. The…
A: Flowchart is given in next step:
Q: KEMBOJA Hospital provides top-notched medical care with comfortable rooms. The following are the…
A: “Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: Write a program calculating the area of a triangle with the length of the three sides as a, b, c,…
A: Task :- Write a program to calculate the Area of given triangle . C++ program :- #include…
Q: Q1: Write a c++ program to enter number and test it, if the value of the number less than 20 print "…
A: Code: #include <iostream>using namespace std;int main(){ int num;//declaring integer…
Q: (c) You are required to create a program that reads a letter of the alphabet from the user. If the…
A: We want to check if the letter input is vowel or not, for y we have added a check, and printed…
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: The formula used to convert a temperature from Celsius to Fahrenheit is given as follows: F= C+32…
A: Program: #include<iostream>using namespace std; int main(){ float fahrenheit, celsius;…
Q: 2.2 Write a C++ program that allows the user to input two integers, one for the length of the…
A: #include <iostream> using namespace std; int main() { // Declare Variables int L, W, A;…
Q: 14. Bank Charges A bank charges $10 per month plus the following check fees for a commercial…
A: C++ Program is given below for the given problem
Q: 5.32 (Guess the Number) Write a C program that plays the guess the number" as fol- game of “ lows:…
A: The c program is written where it is random guess number within a specific range here it is 1 to…
Q: Q.3) Use switch case to write a C++ program that shows three options for the user The first option…
A: According to the given question, it is required to determine the are of a circle and triangle as…
Q: Write a C++program to estimate your water bill for next quarter. Your water meter measures the…
A: Required: Write a C++program to estimate your water bill for the next quarter. All the code with…
Q: n this c++ program please explain every code. thank youuuuuuuuu!
A: q: Explain the given code
Q: Q8 Draw the flowchart and write a C program using switch. The program inputs the currency and total…
A: PROGRAM EXPLANATION: - The input for the currency is taken using getchar() and stored in currency…
Q: An approximate value of T can be calculated using the series given below: T = 4 1 Write a C++…
A: Given data is shown below:
Q: Write a Program to that will take input from the user and tells if the user entered Even or Odd…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }C++ Ingredient Adjuster A cookie recipe calls for the following ingredients: 5 cups of sugar 1 cup of butter 75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies he or she wants to make, and then displays the number of cups of each ingredient needed for the specified number of cookies. Use fixed-point notation with two decimal places of precision.C++ OOP Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges1.5% service charges on the total amount for each transaction buy or sell. When Cindy sells stocks, she would like to know if she gained or lost on a particular investment.Write a program that allows Cindy to input the number of shares sold, the purchaseprice of each share, and the selling price of each share. The program outputs theamount invested, the total service charges, amount gained or lost, and the amountreceived after selling the stock.
- c++ code Stock Commission Kathryn brought 750 shares of stock at a price of $35.00 per share. She must pay her stockbroker a 2 percent commission for the transaction. Write a program that calculates and displays the following: The amount paid for the stock alone (without the commission). The amount of the commission. The total amount paid (for the stock plus the commission). Annual Pay Suppose an employee gets paid every two weeks and earns $2,200 each pay period. In a year, the employee gets paid 26 times. Write a program that defines the following variables: payAmount This variable will hold the amount of pay the employee earns each pay period. Initialize the variable with 2200.0 payPeriods This variable will hold the number of pay periods in a year. Initialize the variable with 26. annualPay This variable will hold the employee’s total annual pay, which will be calculated. Display the total annual payment on the screen.C++ Pizza Pi Joe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps: Ask the user for the diameter of the pizza in inches. Calculate the numbers of slices that may be taken from a pizza of that size. Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you must know the flowing facts: Each slice should have an area of 14.125 square inches. To calculate the number of slices, simply divide the area of the pizza by 14.125. The area of the pizza is calculated with the formula: Make sure the output of the program displays the number of slices in integer, rounded to the nearest whole number (use the round( ) function) . Use a named constant for pi.C++ Monthly Sales Tax A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, sales plus sales tax). Assume the state sales tax is 4 percent and the county sales tax is 2 percent. If the total amount collected is known and the total sales tax is 6 percent, the amount of product sales may be calculated as: S=T1.06 S is the product sales and T is the total income (product sales plus sales tax). The program should display a report similar to October, 2017 - - - - - - - - - - - - - - - - - - Total Collected: $ 26572.89 Sales: $ 25068.76 County Sales Tax: $ 501.38 State Sales Tax: $ 1002.75 Total Sales Tax: $ 1504.13
- Financial application: compute future apartment rent) Suppose that the rent for an apartment is $1000 thisyear and increases 3% every year. Write a program that computes the rent in five years and the total rent forone year starting five years from now.C++ CODE ONLY: Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are X₁, X2, X3, X4, and x5, then the mean is X = (X1 + X2 + X3 + x4 + x5 ) / 5 and the standard deviation is: (x₁−x)²+ (x₂-x)²+ (x¸¯x)²+(x¸−x)²+(x¸¯x)² S = 5 Your program must contain at least the following functions: 1. a function that calculates and returns the mean; and, 2. a function that calculates the print standard deviation. Input 1.5 integers Output Enter five numbers: 2 3 9 10 11 The mean is 7.00. The standard deviation is 3.742. Enter five numbers: 7 7 8 9 11 The mean is 8.40. The standard deviation is 1.497.PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the screen write. (For example, the prime divisors of 10 are 2 and 5. The prime divisors of 20 are 2, 2 and 5.
- c++ Stock Commission Kathryn brought 750 shares of stock at a price of $35.00 per share. She must pay her stockbroker a 2 percent commission for the transaction. Write a program that calculates and displays the following: The amount paid for the stock alone (without the commission). The amount of the commission. The total amount paid (for the stock plus the commission).السبت ۲ أكتوبر المحاولة رقم 1 :2 HW • Write a program that computes the average of 5 students grades which are entered by the user. Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. محتوى إضافي؟ يمكنك إضافة نص وملفات تدعم إجاباتك. إضافة محتوی إرسال الحفظ لوقت لاحقC++ Exercise 30 defines the number e and Exercise 31 shows how to approximate the value of e using a different expression. Interestingly, the value of e can be approximated using the following expression: 2+1/1+1/2+2/3+3/4+4/5+5…/(n-1)+(n-1)/n+n Write a program that uses this formula to approximate the value of e. Test your program for n = 3, 5, 10, 50, and 100.