ACE balloon shop sells balloons to customers at 10 Fils cach. If the customer buys 500-1000 balloons, the price; is 8 Fils each. If the customer buys over 1000 balloons, the price is 6 Fils each. Write a C++ program that reads the number of balloons to purchase and prints the amount of the bill in BD.
Q: Armstrong Number in C Before going to write the c program to check whether the number is Armstrong…
A: The required C program for checking if an inputted number is Armstrong's number or not has been…
Q: wtite a program c++ If the number is positive, add the number to the variable positivesum; else,…
A: //Including library#include <iostream>using namespace std;//Main of the codeint…
Q: Write C++ program On Hotel reservation. The program should include: 1- A welcome message should…
A: the answer to the following question:-
Q: Q3. A water distribution company charges its consumers depending the type of customer: R-…
A: Program approach: Declare all essential variables. Use do while loop for repetition. Input a…
Q: The population of an Arab country in 1980 reached about 12 million people, if you know that the…
A: Required: program The population of an Arab country in 1980 reached about 12 million people, if you…
Q: 21. Write a C++ program in which the user enters the height in the format feet.inch and the program…
A: Write a C++ program in which the user enters the height in the format feet.inch and the program…
Q: 3. Farhan must pay a bill to a shopkeeper. The shopkeeper doesn't have any change, so Farhan must…
A: Given :- Farhan must pay a bill to a shopkeeper. the shopkeeper doesn't have any change, so Farhan…
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: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Procedure Followed: Include header files. Start main method. Declare variables:…
Q: We calculate weight normally in the unit of tola. Write a C++ program to enter the amount of gold in…
A: #include<iostream> using namespace std; int main(){ float tola,grams,amount,zakat;…
Q: Write a C++ program. A software company sells a package that retails for $109. Quantity discounts…
A: To write a C++ program using the if/else if/else statement that asks for the number of units sold…
Q: Time left 047:29 Write a complete C++ program that prompts the user to enter a string, and prints…
A: start input string using if else print appropriate statement stop
Q: in c++ Write an expression that will cause the following code to print "less than -15" if the value…
A: The questions asks that to take a input and store it in variable named userNum and if it is less…
Q: B-A- Write a program in C++ to determines the patient if he is infected with corona virus or not…
A: #include<iostream> using namespace std; int main() { string name; int temp;…
Q: We calculate weight normally in unit of tola. Write a C++ program to enter amount of gold in tola,…
A: A required C++ program is as follows, //Include header files #include <iostream>…
Q: Mars hyper market gives discount to customers based on their spending. If a customer spends 20 Omani…
A: #include<iostream>using namespace std;int main(){ float spending; cin>>spending;…
Q: Write a program in C++ to help Buddy (the sheepdog) calculate the average age of all his sheep. The…
A: #include <iostream>#include <iomanip>using namespace std; int main(){ int age; int…
Q: In C++ (Find the number of days in a month) Write a program that prompts the user to enter the…
A: Answer: This is my answer: But the complier reported: 1. Compiler error : fatal error 2. #include 3.…
Q: Q1. Write a C++ program which initializes the earning of an employee. The program should calculate…
A: NOTE: As per the guidelines, we are allowed to answer only one independent question per post. Kindly…
Q: The domestic tariff charged by Sabah Electricity Sdn Bhd (SESB) is given in Table 1. Based on the…
A: #include <iostream> using namespace std; int main() { // Taking input of monthly usage from…
Q: The Kingdom of Aleria uses gold coins and other metals for their money and their exchange rate is as…
A: 1 gold coin is equivalent to 15 silver coins 1 gold coin is equivalent to 25 nickle coins 1 gold…
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: 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: A) Use (switch statement) to write a program in C++ to show company structure. I r is (A), print…
A: Here we need to use switch case on some character input. The syntax for switch case is…
Q: ). The force of gravity is different for each planet of the nine planets in our solar system. For…
A: #include<iostream>#include<bits/stdc++.h> #include<string>using namespace std;…
Q: A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write a…
A: We need to write a C++ language program to find the total price, delivery cost, and tax of the sofa…
Q: Time left 0:47:29 Write a complete C++ program that prompts the user to enter a string, and prints…
A: Algorithm: Start Read a string s Store length of string s in n If n>=0 and n<=3, then print…
Q: You have been given 10 body temperatures of 10 individuals. Write a C# program that reads these body…
A: Algorithm: 1] Initilialise an array which stores the body temperatures of 10 people. 2] Display the…
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: Here, first you need to declare some variables for all salaries. Then prompt user to enter basic…
Q: In C++ Write a cout statement to print out your favorite food.
A: Here in this question we have asked to write a c++ statement that print your favorite food.
Q: In C++ write a program that prints the day number of the year, given the date in the form…
A: Code: #include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;…
Q: Q3. Write a C program in which the user can enter his/her body temperature in Fahrenheit and the…
A: I give the code in C as per your requirement along with output and code screenshot
Q: Q2) A store asks you to write a C program to make cash payment easier for cashiers. Write a C…
A: We have to write a code about payment system
Q: write a Program in C++ to Priht the humbers that are betweeh i ahd 50 dividable oh 3 using (uhile)…
A: #include <iostream> using namespace std; int main(){ //declaring variable int i=1;…
Q: This link describes a simple gravity pendulum which consists of a point mass suspended from a string…
A: the answer is given below:
Q: 1. The Boston Electric Co. charges for electricity as follows: Kilowatt-hours Cost 1 - 50 51-200 P…
A: Algorithm : Step 1: declare character array. Step 2: declare variables. Step 3: ask for the…
Q: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: C++ program is given below
Q: Q6: Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap…
A: Leap Year Complete Program in Step 2
Q: (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say,…
A: File name: “main.cpp” //Import the header files #include <iostream> #include<iomanip>…
Q: Given a number in the range of 100 and 999, write a program to accept input and validate this range.…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
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: 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: Modify the craps program to allow wagering inside of C#. Initialize variable Balance to 1000…
A: Solution:: package april.april16; import java.util.Random; import java.util.Scanner; public…
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…
Q: The following C program requests four string from the user, sorts the four strings alphabetically…
A: #include<stdio.h>#include<string.h>int main(){ int i,j,count; char…
Q: Write a program in C++ to help Buddy (the sheepdog) calculate the average age of all his sheep. The…
A: Hello student, hope you are doing good. The code is attached below along with explanation and output…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys500-1000 balloons, the price is 8 Fils each. If the customer buys over 1000balloons, the price is 6 Fils each. Write a C++ program that reads the number ofballoons to purchase and prints the amount of the bill in BD.ACE balloon shop sells balloons to customers at 10 Fils each. If the customer buys 500-1000 balloons, the price is 8 Fils each. If the customer buys over 1000 balloons, the price is 6 Fils each. Write a C++ program that reads the number of balloons to purchase and prints the amount of the bill in BD. Sample input/output: How many Balloons do you want to purchase? 300 The cost to buy 300 Balloons = 3.000 BD Another Sample input/output: How many Balloons do you want to purchase? 2000 The cost to buy 2000 Balloons = 12.000 BDUse C++ codingWrite a program that calculates a student's GPA. Ask the user to enter grade and also the credit hours of the course in a loop until user enter “N” or “n”. Earned points in that course becomessum of all points in all subjects/ Total credit hours i.e.,GPA= sum of earned points in all subjects/total credit hoursGrade points of each grade are as followsGRADE GRADE POINTSA 4B 3C 2D 1F 0FOR EXAMPLEYou got “A” grade in Computer Programming theory course and the credit hours are 3.So your earned grade points=4*3=12 Similarly if you get “C” grade in another subject e.g., Computer Fundamentals and the credit hours are also 3 here. Now earned grade points = 2*3=6If you get “B” grade in Circuit and Systems theory and the credit hours are 3. So yourearned grade points=3*3=9 Now your GPA = (12+6+9) / 9 = 3
- Create 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. 97Hey i need help with coding in c++ Q1 // with steps Write a program that determines a student's grade. The program will read three types of scores (quiz, mid-term, and final scores) and determine the grade based on the following rules: -if the average score =90% =>grade=A -if the average score >= 70% and grade=B -if the average score>=50% and grade=C -if the average scoregrade-FWrite a c++ program for a bank account that has initially $1000 in it and the owner earns interest every year at the rate of 4% of the original value. Calculate the total money inthe account with interest until next 10 years with the increase of 4% every year. Note: Use for loop for every year increment. Also display the incremented amount in account for every year Use while or for loop.
- Write a C++ program: Blood sugar is considered normal if its rate is less than 140 and greater than 70 , it is considered high its rate is greater than or equal to 140 , and it is considered low its rate is less than or equal to 70 . Write a C ++ program that asks the user to input the rate of blood sugar of each patient in a hospital ( -1 to indicate the end of the data . ) The program should calculate and print the flowing : • The number of patients with normal blood sugar . • The number of patients with high blood sugar . • The number of patients with low blood sugar . • The total number of patients entered by the userprogram used is C++ (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Instructions Write a program that prompts the user to enter: The total number of units. The rent to occupy all the units. Amount to maintain a rented unit. The increase in rent that results in a vacant unit. The program then outputs: The number of units to be rented to maximize the profit The maximum profit Since your program handles currency, make sure to use a data type that can store decimals with a decimal precision of 2.c++ programming Write a program for a lawn mowing service. The lawn mowing season lasts for twenty weeks. The weekly fee for mowing a lot under 400 square feet is RM25. The fee for a lot 400 square feet or more but under 600 square feet is RM35 per week. The feet for a lot 600 square feet or over is RM50 per week. Input the length and width from the keyboard for twenty weeks, calculate the area of the lawn, determine and display the total of twenty weeks mowing fee.
- Using c++ Madison County collects property taxes on the assessed value of property, which is 60 percent of its actual value. For example, if a house is valued at $158,000, its assessed value is $94,800. This is the amount the homeowner pays tax on. At last year’s tax rate of $2.64 for each $100 of assessed value, the annual property tax for this house would be $2502.72. Write a program that asks the user to input the actual value of a piece of property and the current tax rate for each $100 of assessed value. The program should then calculate and report how much annual property tax the homeowner will be charged for this property. Design. You will be using an IPO diagram to design your program. See IPO diagram attached to this assignment. Under INPUTS, list everything the program will need to produce the result. Under OUTPUTS, list what the program is going to produce. Under the PROCESS heading, list the detailed pseudocode steps that need to occur to produce the program’s…C++ OOP Write a program that prompts the user to input a length expressed in centimeters.The program should then convert the length to inches (to the nearest inch) andoutput the length expressed in yards, feet, and inches, in that order. For example,suppose the input for centimeters is 312. To the nearest inch, 312 centimeters isequal to 123 inches. 123 inches would thus be output as:3 yard(s), 1 feet (foot), and 3 inch(es).soleve with c++ use case Write a Mark Sheet program that accepts the marks of the different subjects from the user. Calculate total marks, percentage and grade. If per<60 and per >50 then Grade is "C" If per<70 and per >60 then Grade is "B" If per<80 and per >70 then Grade is "A" If per >80 then Grade is "A-1" If per<50 then prints FAIL.