WRITE A C PROGRAM: A particular type of packing carton costs P2.50 per square foot at the bottom and the sides, and P5.00 per square foot for the top. Write a C program to calculate the cost of such a shipping crate if the user supplies the carton dimensions.
Q: Write a C++ program that reads student scores, determines the best score, and assigns grades using…
A: ALGORITHM:- 1. Take input for the number of student marks. 2. Create a marks array of that size. 3.…
Q: Write a C++ program that inputs the price of a shoe in a shop, then deducts the discount from the…
A: The program is written in C++. Please find the source code and outputs in step 2.
Q: Create a C++ program for this problem: Suppose that the cellular phone bill of a client is…
A: C++ program to calculate the bill of the client. The calls rate are: First 5 min = P100.00 (minimum…
Q: Write a C program to read side ( S ) of a square room . Calculate the area of a room using the…
A: #include <stdio.h> int main(){ int s; printf("Input side of room: ");…
Q: Write a C# program that prints a table with a list of at least 5 students together with their grades…
A: Please find the answer below :
Q: Write a C program that will provide an ATM user with the proper change for any dollar amount up to…
A: Run the code for $19, $55, and $200 $19 will be split into 4 dollar notes that will be $10, $5, $2×2…
Q: Write a C program to perform the following using if else ladder or switch statements. The program…
A: Required: Write a C program to perform the following using if else ladder or switch statements.…
Q: Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and…
A: Introduction: Here we are asked to create a program in C++ program that will allow the user to…
Q: To make a profit, a local store marks up the prices of its items by a certain percentage. Write a…
A: formula used: sp=(mp/100)*price+price; final_price=sp+(tax/100)*sp; Answer in step2
Q: Write a C++ program that takes as input an arbitrary number of red blood cell counts in the range 0…
A: #include <iostream>using namespace std; int main() { int i, count ; float…
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 that plays the game of "Guess the Number" as follows: Your program should choose a…
A: The program Declaration and initialization of the variables. Initialize n and count equal to zero.…
Q: Write a c++ program that plays a game with a single die (or dice). Each number on the die is…
A: function main: Start declare dice, sum =0 declare user_choice do for i = 1 to 5 folow step 6…
Q: Write a C program to perform the following using if else ladder or switch statements The program…
A: #include<stdio.h> int main() { float omani; int choice; char name[50];…
Q: 2 = ABC 3 = DEF 4 = GHI 5 = JKL 6 = MNO 7 = PRS 8 = TUV 9 = WXY No digits corresponds to Q and Z.…
A: Write a C program that input a single letter and prints out the corresponding digits on thephone.…
Q: onstruct a C program using conditional statement base on the word problem presented below: A senior…
A: Condition operator is a ternary operator ie it operates on three operands and produces output.…
Q: Suppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display…
A: START DECLARE year = 1 and payment = 100 WHILE payment <= 50000 do steps 4 to 5 INCREMENT year by…
Q: To make a profit, a local store marks up the prices of its items by a certain percentage. Write a…
A: Program: //including essential header file #include <iostream> //using standard namespace…
Q: Write a c++ program that allows the user to enter the last names of five candidates in a local…
A: Algorithm: 1. Declare array names as name[5] and array votes as votes[5]. 2. Initialize winner index…
Q: Write a C program that takes x-y coordinates of a point in the Cartesian plane and prints a message…
A: Solution Explanation: First I asked for the user to give values for x,y printf("Please enter x, y…
Q: Write a C++ program that helps the user count his change. The program should ask how many hundreds…
A: C++ Program: #include <iostream>using namespace std;int main() { int h,f,t,fives;…
Q: Write C program that can solve the following equation: z= (x-y*w+x)/x z= (x-y*w+y)/y otherwise z=…
A: Program: #include <stdio.h> int main() { int x = 0, y = 0, w = 3, z; if (x != 0) { z =…
Q: Write a C++ program to calculate the perimeter and area of a circle using the function float…
A: The program is written in C++ 1. initially iostream header file 2. function declaration 3. enter the…
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: Please write a c++ programming code that can work on codechum according to the instructions below.…
A: Coded using C++.
Q: Write a C program to ask the user to input the name of boy and name of girl. Count the number of…
A: code : #include<stdio.h>int main(){ char boy_name[20],boy_cmn[20]; char…
Q: Write a C program that reads the coefficients of a linear equation as inputs to calculate the…
A: A linear equation with one variable is in the form of ax + b + c = 0. The formula for solving x is…
Q: write a c++ program: Your time machine is capable of going forward in time up to 24 hours. The…
A: As you have not provided the sample output, so we have provided the output in most appropriate and…
Q: Admission requirements BSIT Track STEM, TECHVOC SHSAve at least 85 BSP…
A: Solution of Question A: Programming language used: C++ Program code: (Note: all necessary comments…
Q: XYZ Telegram Company charges P18.50 for a telegram that do not exceed 12 words and P1.50 for every…
A: C program: #include <stdio.h> int main() { char c; int words; scanf("%c",&c);…
Q: Write a c program that computes the square footage of a house given the dimensions of each room.…
A: EXPLANATION: - double readRoomDimensionAndComputeArea(): - The user is given the prompt to enter…
Q: Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and…
A: INTRODUCTION : Here we write a c++ program that allow the user to input the First Name , Last Name ,…
Q: Write a program c language to calculate electricity bill charged to a consumer. Ask him to enter…
A: The main objective of the C- program,main.c is to prompt users to enter the number of units…
Q: (B) Write a program that reads from the user the values of x and h to implement the equation below.…
A: Code: #include <iostream>#include<cmath>using namespace std;int main(){ //declaring…
Q: Python Programming. Write a program that computes the cost of a long-distance call. The cost of…
A:
Q: Write a C++ program that translates a letter grade into a numeric grade point. Here are the details:…
A: Check for Invalid Input Check for Invalid letter grade Check for Invalid Combination Assign value
Q: write a program in C++ using if-else or switch for calculating electricity bill, the range of the…
A: GIVEN: write a program in C++ using if-else or switch for calculating electricity bill, the range…
Q: c++ program with total change amount as an integer input and output the change as the fewest coins.…
A: Required: write a c++ program with total change amount as an integer input and output the change as…
Q: rite a C++ program using if-else or switch statements for calculating electricity bill, The range of…
A: We need to use the following data to compute the bill: 1) 1 to 100 units then the per-unit price is…
Q: Write a C program that requires a user to input weight and height so that it can calculate weight to…
A: Given: Write a C program that requires a user to input weight and height so that it can calculate…
Q: Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each…
A: Objective: This program implements the Bank account problem in which the user inserts values for his…
Q: student attendance and print whether the student is eligible to sit in the class or not Note:…
A: The answer for the above mentioned question is given below in step 2.
Q: Write a C program to simulate tossing a “fair” coin. Allow the user to enter the number of tosses.…
A: #include<stdio.h> #include<stdlib.h> #include<time.h> int main(){ double…
Q: Write a C++ program that assign a value to double variable cost depending on the value of integer…
A: Code #include<iostream>#include <stdio.h>using namespace std; int main(){ double…
Q: Write a C++ program that would solve the problem below (you must use variable declaration and…
A: The area of upper part is l*w The remaining area is l*w+2*w*h+2*h*l
Q: Write a C++ program to calculate the telephone bill. The calling rates per minute are as follows: If…
A: Algorithm: Begin READ Minutes IF Minutes<=600: billAmount=Minutes*2ELSE:…
Q: Construct a c program language using conditional statement base on the word problem presented below:…
A: Introduction of C Program: The C program takes the number of consumed kilowatt-hours as an input…
Q: Write a C++ program that assign a value to double variable cost depending on the value of integer…
A: #include <iostream>using namespace std;int main(){ //For user input integer distance int…
Step by step
Solved in 3 steps with 2 images
- Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz), medium (12oz), and large (15oz). The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00. Write a menu-driven program that will make the coffee shop operational. Your program should allow the user to do the following: a.Buy coffee in any size and in any number of cups. b.At any time show the total number of cups of each size sold. c.At any time show the total amount of coffee sold. d.At any time show the total money made. Analysis The buy coffee option allows the customer to select the number of cups in each of the sizes they want to order. When the customer has completed the order, an itemized receipt for that order is displayed.The other three options are used by the owner to check on the status of the coffee shop resources and revenue. The program is started when the coffee shop opens and shut down whenthe coffee shop closes,and the manager has gotten the final tally…(C++) Jason opened a coffee shop at the beach and sells coffee in three sizes:small (9 oz),medium (12 oz),and large (15 oz). The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00. Write a menu-driven program that will make the coffee shop operational. Your program should allow the user to do the following: Buy coffee in any size and in any number of cups. At any time show the total number of cups of each size sold. At any time show the total amount of coffee sold. At any time show the total money made. Your program should consist of at least the following functions: a function to show the user how to use the program; a function to sell coffee; a function to show the number of cups of each size sold; a function to show the total amount of coffee sold; and a function to show the total money made. Your program should not use any global variables and special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.…Jason opened a coffee shop at the beach and sells coffee in three sizes:small (9 oz),medium (12 oz),and large (15 oz). The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00. Write a menu-driven program that will make the coffee shop operational. Your program should allow the user to do the following:Buy coffee in any size and in any number of cups.At any time show the total number of cups of each size sold.At any time show the total amount of coffee sold.At any time show the total money made. Your program should consist of at least the following functions: a function to show the user how to use the program;a function to sell coffee;a function to show the number of cups of each size sold; a function to show the total amount of coffee sold; and a function to show the total money made. Your program should not use any global variables and special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.Below is an…
- In visual basic programming, write a button click even that will take a given amount in cedis and exchange rate and calculate the equivalence in US dollars when the user chooses "Yes", returns the cedi valuewhen the user chooses "No" and Zero when the user chooses "Cancel".A discount of 20% will be given to any goods that is bought from GMART shop. Write a program that can accept an input price of goods and calculate the actual price of goods after discount. Write all the steps involve to solve the above problem before you get the following output. Price of goods : 10.00 Actual price of goods after discount : 8.00Given an airplane's acceleration and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula. length=v^2/2*a. write a program that prompts the user to enter V in meters and acceleration an in meter/second and display the minimum runway length.
- The Konditorei coffee shop sells coffee at $10.50 a pound plus the costof shipping. Each order ships for $0.86 per pound + $1.50 fixed cost foroverhead. Write a program that calculates the cost of an order.You've decided to order a pizza for dinner. The restaurant you're ordering from has three sizes of pizza: S, M, and L. Each size has a different base price and price per topping. The prices are indicated in the table below. Create a program to calculate the total cost of your pizza. The program should prompt you for the size of pizza and the number of toppings, then output the cost. Size Base Price Price per Toppings S $4.99 $0.75 M $5.99 $1.50 L $6.99 $2.25 The input should be a character (for size) and non-negative integer (for number of toppings) and the output should be a double. Sample run: What size pizza would you like to order? S How many toppings do you want? 3 Your total is $7.24 Note: The total cost should be formatted with a two-digit precision. You can use the setprecision() function with the fixed manipulator from <iomanip> library to do so. Bad formatting: 10.8 Good formatting: $10.80 Ensure you are doing input validation similar to the last question.…Assuming that all residents are given the first 1000L of water for free by the municipality, then are charged R2.00 per litre thereafter. Write a program that will prompt the user to enter the amount of water used by a resident and then computes the amount to be paid. For example, if a resident uses 1200L, then the amount to be paid will be R400
- make an program that has an 3 options. For example it displays " (1) Burger = 200$ " "(2) Sandwhich = 500$" "(3) Fries = 650$" Input "Enter your choosen snacks by its number." Then for example i input 2 and it will display "You have ordered Sandwhich." Then input how many amount of snacks would you like Then for example I input 3 so the snacks sandwhich "500$ x 3" Then displays "Your sandwhich cost ... " Make this on Flowgorithm.(c program only) 2. Jack `N Poyby CodeChum Admin Jack `N Poy is a very common game since our childhood days. Just thinking about it makes me reminisce how I crushed my cousin in this game until he cried ? I want to feel the glory again of being very good at something. Could you help me recreate the game? It's really simple. In Jack `N Poy, there are two players who both select either one of the following options: RockPaperScissors The winner is selected depending on the following rules: Rock beats ScissorsScissors beats PaperPaper beats RockIf both players chose the same option, then it's a tie Instructions: In the code editor, you are provided with an enum called option which contains three possible named values:ROCK - 'r'PAPER - 'p'SCISSORS - 's'Your task is to ask two users for there chosen options. And then based on their options, determine the winner.Input 1. Option selected by Player 1 2. Option selected by Player 2 Output If Player 1 wins, print the message "Player 1…A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Qt: 10 -19 Discount: 10% Qt: 20 -49 Discount: 20% Qt: 50 -99 Discount: 30% Qt: 100 or More Discount: 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Python programming question