A travel company has three types of buses (A, B and C), each one has a price based on the kilometer traveled per person, the costs are $3.0, $4.5 and $6.0 respectively. Write a C program to determine the total cost of the trip considering that when it is quoted there must be a minimum of 20 people, otherwise the payment is made based on this limit number.
Q: Develop a C Program to calculate the basic salary of 5 employees where the hourly rate and the no.…
A: Given: Develop a C Program to calculate the basic salary of 5 employees where the hourly rate and…
Q: Write a C program to select the type of food from the list, then give the quantity you want to buy…
A: Code: #include<stdio.h>int main() { while(1){ char ch; int n; double…
Q: A tele match event has been held in a primary school. Three teams are allowed to participate in this…
A: Solution:: Code in c++ #include<bits/stdc++.h> using namespace std; void…
Q: there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B…
A: In the above code, it has been asked to print the how many tickets for each class of seats were sold…
Q: Write a program that reads student scores, gets the best score, and hence assigns grades based on…
A: Answer : C++
Q: Write a program for a lawn mowing service. The lawn mowing season lasts for twenty weeks. The weekly…
A: Input length and width Calculate area Find the cost per week Display total cost
Q: An employee’s weekly working hours is 40. If an employee exceeds 40 hours, it is considered…
A: Introduction of the Program: The C++ program takes to input the number of hours worked by employee…
Q: USING C++ PROGRAMMING LANGUAGE A mobile phone service has three different data plans for its…
A: Given Plans are: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage…
Q: Write a C# program to read student name, id and score and then calculate grade based on score. If:…
A: Code: using System; namespace MyApplication{ class Program { static void Main(string[] args)…
Q: Write a program in c# named DogBoarding that accepts the weight of a dog and the number of days it…
A: Please find the answer below :
Q: write a simple bus seat program reservation. The bus has 10 rows, with 4 seats in each row. The…
A: Actually, program is a executable software that runs on a computer.
Q: The weather station of each city has the detail of rainfall in a year. Given the date and cm of…
A: The c code is an given below :
Q: June, July or August are put into Bridge House. All other students are put into Anchor house. Your…
A: Use for loop to accept input and then increment respective house based on the month
Q: Airline companies apply baggage restrictions for their passengers. An airline company has decided to…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Need help with a C++ program Write a C++ program that helps a person determine how long they can…
A: The algorithm of the code is given below:- 1. Welcome the user with a message.2. Ask the user how…
Q: Write a program for computing the amount of money in a bank account at the end of each quarter for a…
A: Note : Since the coding language is not mentioned, I have done the code in Java. Algorithm : Step 1…
Q: a C++ program that recommends the number of calories a person should eat each day. Calories are…
A: code: //include the necessary headers #include <iostream> using namespace std; //main method…
Q: The programming language is C++, write a program base on the given statement. Write a program that…
A: #include <iostream> using namespace std; // Defininig the main functionint main(){ //…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since you are not specifying any language for implementation, I am using C++. Program #include…
Q: Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF),…
A: - We will take the input salary - We will apply the conditions as requested - Calculate the actual…
Q: Q2 Write an interactive C program using if - else statement, to input water unit charge and…
A: The given problem is related to programing that needs to be solved in C language where the user will…
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 that reads student scores, gets the best score, andthen assigns grades based on the…
A: Program: //import scanner class import java.util.Scanner; //declaring a class public class Main {…
Q: Write a program in C or Python that calculates the moment at the support (point A) depending on the…
A: To calculate moment based on distance and load given by user
Q: ++ with multiple functions if possible Write a program to simulate an automated teller machine…
A: Answer:
Q: Write a C program that reads the income of a person and calculates his total tax according to the…
A: C Program for above : #include <stdio.h> int main() { double salary; //get the…
Q: In a lucky draw contest, there is a total of 1000 participant Each participant is given a…
A: ALGORITHM:- 1. Take the input from the user. 2. Generate the random number. 3. Check if both are…
Q: A computer manufacturing compar persons: Minimum base salary Bonus for every computer sol Commission…
A: Code: #include<stdio.h>#define BASE_SALARY 1500.00#define BONUS_RATE 200.00#define COMMISSION…
Q: IN c Airline has just purchased a computer for its new automatic reservations system. The head has…
A: Coded using C language.
Q: Create a c++ program that asks the user to enter all of his 3 quizzes during the preliminary…
A: The cin and cout statements are used to read and print stream input. They use the stream extraction…
Step by step
Solved in 4 steps with 3 images
- In C pleaseCreate 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. 97Write a program for Fillowing cases beldi---7.
- The programming language is C++, write a program for each items base on the given statement. 1. Due to poor result of an examination, your professor decided toincrease each student by 1 point. Input the grade and print the newgrade. If the original grade exceeds 100, then it remains as such. 4. A college student who is registered for 21 units or more is consideredas full time student. The tuition fee for full time is 7000. A part timestudent is charged 300 per unit for tuition. Given the number of unitsa student is registering, calculate and print his tuition fee on the basisof the given criteria.Write a C++ program for the following problems:A. INPUT Name of Student Course Code (1, 2 or 3)]Given Table for Tuition Fee Course Code Tuition Fee 1 - BSIT 13000 2 - BSECE 15000 3 - BSP 12000 Wrong code 0 OUTPUT Tuition Fee to Pay B.Admission requirementsBSIT Track STEM, TECHVOC SHSAve at least 85BSP Track HUMMS SHSAve at least 85BSECE Track STEM SHSAve at least 90other courses (BSE, BSHRM) any SHS Track and SHSAve at least 80INPUT Track, SHSAveOUPUT - course allowed to enroll You can use code in entering the track:Example:TRACK1 – STEM 2 – HUMMS3 – TECHVOC4 - …5 - …0rTRACKA – STEMB – HUMMSC – TECHVOCD - …E -...RMU puts students into house groups based on the month that they were born in. Students bom in January, February, March or April are put into Ship house. Students born in May, June, July or August are put into Bridge House. All other students are put into Anchor house. Your task is to write a C program to accomplish the following: Ask the user to enter a number (1 to 12) relating to their birth month Decide which house they are in Keep a running total of how many students are in each house. Repeat the above for 10 students. When 10 students have entered their details, print out how many students are in each house. Office positions will be occupied by the house with the highest number of students. Determine the percentage distribution for the house to manage the office positions. Replace P in the output format with the actual figure
- PROBLEM: Write a program that computes for the Electric Field and Electric Potential at a given point in a spherical conductor with a radius (r) and a charge Q, depending upon the following cases: Calculate the electric field and electric potential at: d < r d > r d = r SPECIFICATIONS: - The program will depend on the input parameters to determine which case to use in computing for the electric field and electric potential at different points: Point is inside the conductor (d < r) Point is outside the conductor (d > r) Point is on the surface of the conductor (d = r) - The user will input the charge Q, the radius of the conductor (r) and the distance of the point from the center (d) - The constant k = 9x10^9 = 9000000000 - The program will provide an output for the electric field (V/m) and for the electric potential (V) - You may only use the codes that we studied in our lectures. - All lines of codes should have a comment/pseudocode. - Save your cpp file as…PROBLEM:Write a program that computes for the Electric Field and Electric Potential at a given point in a spherical conductor with a radius (r) and a charge Q, depending upon the following cases:Calculate the electric field and electric potential at: d < r d > r d = r SPECIFICATIONS: - The program will depend on the input parameters to determine which case to use in computing for the electric field and electric potential at different points: Point is inside the conductor (d < r) Point is outside the conductor (d > r) Point is on the surface of the conductor (d = r) - The user will input the charge Q, the radius of the conductor (r) and the distance of the point from the center (d) - The constant k = 9x10^9 = 9000000000 - The program will provide an output for the electric field (V/m) and for the electric potential (V) - You may only use the codes that we studied in our lectures. - All lines of codes should have a comment/pseudocode. PROBLEM:Write a program that…PROBLEM:Write a program that computes for the Electric Field and Electric Potential at a given point in a spherical conductor with a radius (r) and a charge Q, depending upon the following cases:Calculate the electric field and electric potential at: d < r d > r d = r SPECIFICATIONS: - The program will depend on the input parameters to determine which case to use in computing for the electric field and electric potential at different points: Point is inside the conductor (d < r) Point is outside the conductor (d > r) Point is on the surface of the conductor (d = r) - The user will input the charge Q, the radius of the conductor (r) and the distance of the point from the center (d) - The constant k = 9x10^9 = 9000000000 - The program will provide an output for the electric field (V/m) and for the electric potential (V) - You may only use the codes that we studied in our lectures. - All lines of codes should have a comment/pseudocode. - Save your cpp file as…
- The programming language is C++, write a program base on the given statement. Write a program that reads in the sales expenses of the Short DistanceTelephone Company for the past year and then calculate the profitand the next tax based on the ff. table PROFIT TAX RATE0 – 10000 010001 – 30000 100 + 3% OF THE PROFIT30001 – 50000 200 + 5% OF THE PROFITOVER 50000 300 + 7% OF THE PROFITWritten in C# Language Please! A fixed percentage of water is taken from a well each day. Request values for W and P where: ▪ W is the amount (in litres) of water in the well at the start of the first day ▪ P is the percentage of the water in the well taken out each day Write a program to print the number of the day, the amount taken for that day and the amount remaining at the end of the day. The output should be terminated when 30 days have been printed or the amount of water remaining is less than 100 litres, whichever comes first. For example, if W = 1000 and P = 10, the output should start as follows: Day Amount Taken Amount Remaining 1 100 900 2 90 810 3 81 729 Note: The amount taken and amount remaining should be displayed to 2 decimal places.Plz use c programming. Use: #include as the library And Use printf, scanf