write a C++ program that calculate the elapsed time to cover a trip of 183.67miles with the average speed of 58mph using the given formula elapsed time = total distance / average speed.
Q: create a c++ program: Given TWO SIDES and an Acute ANGLE, find the missing side and two missing…
A: Lets see the solution in the next steps
Q: Take a screenshot of a program Please please please do the homework in a quarter of an hour using…
A: Your C++ program is given below as you required with a screenshot of code and output.
Q: V2 1.01182 Instalment Base rn X (r-x) 9722.16 | A = Px- Output 1st Instalment ao = AX x° a = Ax x az…
A: Given that Write a program to find installments
Q: Write a C++ program that converts degrees Celsius to degrees Fahrenheit. Your program should prompt…
A: Based on C++
Q: Calculate the surface area and volume of a sphere if the radius is measured in centimeters…
A: The question is to calculate Area and Volume of Sphere. Code is on below step.
Q: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A: Note- Your output is wrong f=(9/5)*20+32 = 68 is the correct answer and you are showing 55 which is…
Q: Write a C++ program that increase & decrease the value of the variable x by 1 if x is an odd *…
A: #include <iostream> using namespace std; int main(){ //declaring variable int x;…
Q: The formula for a line is normally given as y=mx+b. Using C++ write a method Line() that expects…
A: Create a new function called Line that takes in three float parameters: m, b, and x. Within the Line…
Q: 3. Write a C++ program that evaluate the following function for 201 integers from -100 up to 100.…
A: Dear Student, The source code, implementation and expected output of your code is given below -
Q: Using functions, write a C program which does the following; The user enters the height(h) and…
A: Volume of cylinder: #include <stdio.h> float cylindervol(float, float); int main(){ float…
Q: create a c++ program: Given TWO SIDES and an OPPOSITE ANGLE, find the missing side and two missing…
A: Sine rule In order to find the missing sides of a triangle, we can apply sine rule.…
Q: Write a c ++ program solve the following equation : 2 = cos ( x + + 5 )
A: Given: 2 = cos ( x + + 5 ) The Value of above problem was calculated by below formulae.
Q: Write a program that convert integer Fahrenheit temperature to Celsius or Celsius to Fahrenheit.…
A: First, we will input either CF or FC. If FC is entered, then we will convert the entered temperature…
Q: The lepidopterology department at the zoo has requested a program to perform calculations of the…
A: Solution: Given,
Q: Write a program in C ++ to calculate and print a value of Z from the following equation?
A: Step 1:- Program Approach:- 1.Include header file 2.Declare variables 3.Take the value of x and y…
Q: Write a program to read the number of working hours and the price of one hour for an employee, then…
A: A switch statement is a multi-way selection control statement. It is used when we have multiple…
Q: Write a C++ program that finds either a user given number is Armstrong or not. If it is Armstrong…
A: Below is the required C++ program: - Approach: - Include the header file and use the namespace.…
Q: Write a program c++ that receives the date from the user in the form of 3 correct numbers, the…
A: Lets see the solution.
Q: You are required to produce a C++ program which solves the following: Further extend this program…
A: According to the given scenario, In the given program declares the variable grosspay as an integer.…
Q: function. Therefore, in this homework you need to write a C+ program that does the following: Read…
A: iomanip library allows us to fix the width, precision and alignment
Q: Write a program c++ to enter any number of the year and month, and then determine whother the year…
A: Declare the variable year and month for getting input from the user. Then call the function to find…
Q: Imagine you have arranged a birthday party for ten guests, but your caterer brought only six seats…
A: The logic behind this is when we some guest, we can select any of them for first position and for…
Q: You are asked to manage salaries of employees of an organization. Write a C++ program to store basic…
A: Create an array of size 15 to store the salaries of 15 employees Input Salary and number of leaves…
Q: MJE Company has given 9.06% pay increase to all of their employees. Moreover, the increase is…
A: EXPLANATION: - The integer variable for employee id is declared. The variables of double type for…
Q: 3. CREATE A C++ PROGRAM THAT THE USER WILL INPUT 2 COORDINATES TO REPRESENT A LINE IN A CARTESIAN…
A: C++ code
Q: There are 12 inches in a foot, and an inch is 2.54cm long. Input a distance using a combination of…
A: Introduction: Step 1 start Step 2 Variable declaration Step 3 Prompt the user to enter the distance…
Q: write a program c++ If the difference between slope1 and slope2 is less than 0.001, set the variable…
A: First, we will declare all the variables. Then we will input the value of slope1 and slope2. And…
Q: Suppose a movie theater has 36 seats, laid out in a rectangular six rows by six seats. Let the seats…
A: ANSWER:-
Q: Write a C++ program that takes input for the monthly electricity consumption of a household and…
A: 1) Below is C++ program that takes input for monthly electricity consumption of a household and…
write a C++
elapsed time = total distance / average speed.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Computer Science Write a C++ program to calculate the reading from smart EB meter in a home that has 4 homes. The smart meters are connected through WiFi protocol to the arduino. Also, these smart meters have built-in flow meters to measure the amount of water consumed. Each home has EB consumption equal to the last 4 digits of your registration number. Assume the per kW power consumption is the last digit of your registration number and if the last digit of your registration number is 0 assume it to be 1. The sensor is assumed to be connected using SPI Interface. USE THIS REG NO(1325)(Practice) Write a C++ program that accepts the rectangular coordinates of two points (x1,y1)and(x2,y2), calculates the distance of each point from the origin, and calculates the distance between the two points. The distance, d, between two points is given by this formula: d=(x2x1)2+(y2y1)2Create a c++ program that asks the user to enter all of his 3 quizzes during the preliminary coverage. The program would then compute the average of these 3 quizzes. Afterwards, the program would ask the user again to enter 3 quizzes for his/her midterm coverage. The program again would compute the average for the quizzes for the midterm coverage. Use the math function max() to find out which of the two average grades are highest. Example: Please enter 1st prelim quiz: ____ Please enter 2nd prelim quiz: ___ Please enter 3rd prelim quiz: ___ Please enter 1st midterm quiz: ____ Please enter 2nd midterm quiz: ____ Please enter 3rd midterm quiz: ____ The average of your quizzes in prelims and midterms are: 93 for prelims and 97 for midterms. 97
- Write a C++ program to compute the gross pay. The inputs of your algorithm are the hours worked per week and the hourly pay rate. The rule for determining gross pay is to pay the regular rate for all hours worked up to 40, time and-a-half for all hours over 40 up to 54, and double for all hours over 54. Compute and display the value for gross pay using this rule. E.g. 50 hours worked and $15/hour -> 40*$15 + 10 * $15*1.5 = $600 + $225 = $825 E.g. 60 hours worked and $20/hour -> 40 * $20 + 14 * $20 * 1.5 + 6 * $20 * 2 = $800+?+? Sample Input and Output Enter the hours worked per week: 50.0 Enter the hourly pay : 15.00 Gross Pay is: Regular hours: 40 @ $15.00 $600.00 Overtime 40 to 54 hours: 10 @ $22.50 $225.00 Overtime over 54 hours: 0 @ $30.00 0.00 Total Gross Pay $825.00 in c++ basicWrite a C++ program to compute the gross pay. The inputs of your algorithm are the hours worked per week and the hourly pay rate. The rule for determining gross pay is to pay the regular rate for all hours worked up to 40, time and-a-half for all hours over 40 up to 54, and double for all hours over 54. Compute and display the value for gross pay using this rule. E.g. 50 hours worked and $15/hour -> 40*$15 + 10 * $15*1.5 = $600 + $225 = $825 E.g. 60 hours worked and $20/hour -> 40 * $20 + 14 * $20 * 1.5 + 6 * $20 * 2 = $800+?+? Sample Input and Output – see Program 3-16 Enter the hours worked per week: 50.0 Enter the hourly pay : 15.00 Gross Pay is: Regular hours: 40 @ $15.00 $600.00 Overtime 40 to 54 hours: 10 @ $22.50 $225.00 Overtime over 54 hours: 0 @ $30.00 0.00 Total Gross Pay $825.00 in c++Write a C++ program to compute the volume of a cone using dynamic initialization feature. The volume of a cone can be calculated using the following equation: Volume=1/3Πr²h where pi is a constant equal to 3.14, r is the radius of the cone base, and h is the height of the cone.
- Write a program c++ to enter any number of the year and month, and then determine whother the year is a leap year or not and the number of days for that month. Note: 1. of month 1, 3, 5, 7, 8, 10, 12 31 days. 2. of month 4, 6, 9, 11-30 days.3. of month 2 = 28 days (not a leap year), 2 = 29 (in a leap year)Need help with a C++ program Write a C++ program that helps a person determine how long they can hike for under various conditions on a given supply of water. Your program should prompt the user to enter how much water they can carry in liters. Then, for each of the following conditions, print out how many hours the user can hike for. - moderate temperature, moderate difficulty: 1/2 liter per hour- moderate temperature, high difficulty: 3/4 liter per hour- high temperature, moderate difficulty: 1 and 1/2 liters per hour- high temperature, high difficulty: 1 and 3/4 liters per hour SAMPLE OUTPUT Hello! Welcome to the Hiking Water Calculator!How many liters of water can you carry? 8 OK. Here is how long you can hike for on 8 liters of water under the following conditions: moderate temperature, moderate difficulty: 16 hoursmoderate temperature, high difficulty: 10.6666666 hourshigh temperature, moderate difficulty: 5.3333333 hourshigh temperature, high difficulty: 4.5714285 hours.…write a c program to Calculate the mass of air in an automobile tire using following formula PV=0.37m(T+460)Where P=Pressure, poundes per square inche (psi),V=Volume (cubic feet),m=mass of air (pounds) and T=tempature (degrees in Fahrenheit).
- Create a C++ program that computes the grade of a student using the formula Grade = 30% Major Exam + 25% average of 2 Long quiz +25% Activity + 20% average of 3 short quizzes. Determine the grade and the equivalent grade obtained for the numerical value in the following grade marks: Grade Equivalent Grade Equivalent Grade Equivalent 98 – 100 1.00 83 – 85 2.25 Below 70 Failed 95 – 97 1.25 80 - 82 2.50 92 – 94 1.50 77- 79 2.75 89 – 91 1.75 74 – 76 3.00 86 - 88 2.00 71 - 73 INCWrite a C++ program that will solve the problem given below: The program will determine If a city Cavite already achieved its herd immunity or COVID.19 (90% of its population ages 12 and above are fully vaccinated) The cities are Bacoor, Kawit, 'Noveleta, Rosario and Tanza. Your program should ask the user to input the following: o City (use code 1-5 or A-E) • Total population of the city with ages 12 old and above o Total number of persons fully vaccinated in the city Bequirements: Validate city code Total population >0 Total of fully vaccinated must be greater than 0 but not be more than the total population If at least one data is invalid do not process, otherwise, display the following: Name of city: XXXXXXXX Total Population (12 years old and above):_99999 Total Population fully vaccinated:_ 999999 % of fully vaccinated: 99.99% Congratulations Herd immunity Achieved! (display if % is >=90%) Population for vaccination to achieve herd immunity : 9999 - 99.99% (display if herd…use c++ program A positive integer n is called prime if n > 1 and the only factors of n are 1 and n. It is known that a positive integer n > 1 is prime if n is not divisible by any prime integer m≤√n . The 1230th prime number is 10,007. Let t be an integer such that 2 ≤ t ≤ 100,000,000. Then t is prime if either t is equal to one of the first 1,230 prime numbers or t is not divisible by any of the first 1,230 prime numbers. Write a program that declares an array of size 1,230 and stores the first 1,230 prime numbers in this array. The program then uses the first 1,230 prime numbers to determine if a number between 2 and 100,000,000 is prime. If a number is not prime, then output at least one of its prime factors.