8. Write a program that calculates and displays the area of a circle from its radius. The radius will be an integer read in from the keyboard. 9. Write a program that reads the number of cents display the number of dollars and cents 10. write a program that displays the correct change for a given dollar amount price for item purchased $27.65 buyer gives cashier $100.00 41. write a program that calculates and displays i = v/r Read v and r from the kbd as double
Q: Q#1: Write a program that prints the numbers from 1 to 1000 On the same line it should also print…
A: Program plan: Create a function name printSquare() loop from i=1 to 1000 print(str(i)+". Squared…
Q: Write a program that takes a range from the user and display all the even numbers between the range…
A: Note - Since there is nothing mentioned about the programming language to be used, so this program…
Q: السؤال you have the following variable string name = "John"; To print a combination of a text…
A: In this question, we are asked what is the correct method to print a combination of a text 'Your…
Q: C++ One way to create a pseudo-random three digit number (and we are including one- and two-digit…
A: Code: #include <iostream>#include <cstdlib>#include <ctime>using namespace std;…
Q: write a program to calculate electricity bill charged to a consumer.Ask him to enter the unit…
A: Program: #include <stdio.h> /* Main Function */ int main() { /* Declare the variables */…
Q: Write a program which reads two integer values. If the first is less than the second, print the…
A: Here I have declared 2 variables num1 and num2 of integer data type. Next, I have taken input from…
Q: Write a program that asks user to enter a number until user enters -1. Then the program should…
A: Since you have not mentioned programming language I'm doing this in c++.
Q: Create a program that will distinguish the age of the student. If the student is 13 to 19 years old,…
A: Step-1: Start Step-2: Declare a variable age and take input from user Step-3: If age is greater than…
Q: Write a program which calculates the balance of a savings account after the first three months. To…
A: The question has been succesfully solved with Screenshot of code and output with 100%…
Q: Q2/ Write a program that reads a code and temperature. If the code is 1, convert from centigrade to…
A: C programming: C programming is a procedural programming language that was developed by Dennis…
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: A function is a square of code which possibly runs when it is called. You can pass information,…
Q: Q1: Write a program that determines whether the input year is Leap or Simple, Where the leap year is…
A: //Program of leap year #include <stdio.h>int main() { int y; printf("Enter a year: ");…
Q: Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the…
A: Store minutes as long int to store longer values
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: As no programming language is mentioned, it is solved using basic C++
Q: 1. Write a program that prints your name, age, and department in console 2. Write a program that…
A: As no programming language is mentioned, it is solved using C++
Q: A. Write a program that asks the user to enter a number of seconds. • There are 86400 seconds in a…
A: While doing programming in any programming language, you need to use various variables to store…
Q: A county collects property takes on the assessment value of property, which is 60 percent of the…
A: Since the coding language is not mentioned, I have done the code in C++. Algorithm : Step 1 :…
Q: 18. Write a program that allows the user to input two integers, one for the length of the rectangle…
A: Sol 18: The below given C++ program will obey the following rubrics: Including necessary header…
Q: Write a program to check whether the given number is even or odd.
A: NOTE : As the question is not specific about the programming language to be used to write the code ,…
Q: 1. Write a program that converts miles to feet. If the distance is more than 15,000 feet, tell the…
A: logic:- read values in miles. Multiply miles value by 5280 and store in feet variable. If feet…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: 1- Note: Since you have not provided the language to write the code so I am using java language to…
Q: Q2a) A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk…
A: 2a) The code is given below: #include <iostream>#include <iomanip> using namespace…
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: #include<iostream> #include<algorithm> using namespace std; int main(){ cout…
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: Concept: If X is +ve and Y is +ve, then Quadrant is 1 If X is +ve and Y is -ve, then Quadrant is 4…
Q: 9. Write a program which asks the user for their score on the exam. Display their letter grade based…
A: Ans: Code: grad = input('Grad> ') if grad >= 90 fprintf('A'); elseif grad >= 80…
Q: 8. Write and run a program that reads the user's age and then prints "You are a child." if the age <…
A: As Bartleby guidelines i can solve one question at a time so please post another question again.…
Q: Write a program that will ask the user to enter salary amount. And then compute for the TAX amount.…
A: As the language is not specified answer written in c++ 1)Read input 2)Using if else check…
Q: 3. Create a program that will input a number in kilowatt and display its equivalent measure in…
A: As per our company guidelines we are not supposed to answer more than one question per post and…
Q: Write a program that asks user to enter a number. Then the program should print the sum of all…
A: Given: Write a program that asks user to enter a number. Then the program should print the sum of…
Q: 1. Write a program that prints your full name. Write a program that prints your full name using…
A: 1.) #include <iostream> using namespace std; int main(){string name;cout<<"Write your…
Q: Write a program that prompts the user to enter two integers.
A: Since the programming language is not mentioned in the question, we will answer this question in C++…
Q: Write a program that reads an integer and uses a single variable to add 5 to the integer, multiply…
A: Given :- Write a program that reads an integer and uses a single variable to add 5 to the integer,…
Q: Write a program that helps the teacher to correct the exam automatically. The program should work as…
A: Accept input as string Then count the number of matching responses of each student Based on the…
Q: Write a program that will ask the user to enter 10 numbers and display the largest number entered.…
A: Note - As per our guidelines, we can provide solution only for one question. Since you have asked…
Q: 1. Write a program that converts miles to feet. If the distance is more than 15,000 feet, tell the…
A: C program to solve the given problem is below.
Q: Q5/ 1. 1. Write a program to read three marks and calculate the average. If the student's average is…
A: Since no programming language is mentioned, I am using python. As per our guidelines, we are…
Q: E2.11 Write a program that asks the user to input • The number of gallons of gas in the tank • The…
A: As Language is not defined i'm going to do it in C++
Q: C++) Write a program with total change amount as an integer input, and output the change using the…
A: /*Write a program with total change amount as an integer input that outputs the change using the…
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: #include <stdio.h>void quadrant_of_x_y(float x, float y){ if (x > 0 and y > 0)…
Q: C++ coding In order to paint a wall that has a number of windows, we want to know its area. Each…
A:
Q: Write a program that can be used as a math tutor for a young student. The program should display two…
A: Introduction: Write a programthat can be used as a math tutor for a young student. The program…
Q: Write a program that prompts the user to input their names and age and then displays your name and…
A: I have given an answer in step 2.
Q: Write a program in python that asks the user to enter a word and then capitalizes every other letter…
A: PROGRAM CODE: st = input("Enter the string: ") // take original string from…
Q: **3.22 (Geometry: point in a circle?) Write a program that prompts the user to enter a point ( x, y…
A: The given problem is to find the position of a point in x,y cordinate on x-y axis and find whether…
Q: Write a program which prompts the user for a Celsius temperature, convert the temperature to…
A: For convenience I've provided the code in two different language i.e. C++ and Python Code: Output:
Q: 2. Write a program that computes the cost of painting and installing carpet in a room. Assume that…
A: Actually, program is a executable software that runs on a computer.
Q: Given an airplane's acceleration and take-off speed v, you can compute the minimum runway length…
A: The given problem can be solved using simple arithmetic operations in any programming language.…
Q: Create a program that will distinguish the age of the student. If the student is 13 to 19 years old,…
A: INTRODUCTION: Here we need to tell create a program that will distinguish the age of the student.
Q: 6) Write a program that prompts the user to input a number. The program should then output the…
A: According to the asked question, the solution is given below with a proper explanation.
Please can you type and execute all four
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönder1. Write a program that does the following: Ask the user to enter the price of their items. The user can enter as many items as they want until the user enters the integer 0. Print out the total of their checkout. If the sum is greater than $100, print out "That's expensive!" Sample run of program: Enter the price of an item: > 27 Enter the price of an item: > 80 Enter the price of an item: > 0 Your checkout total is $107. That's expensive!
- Write a program that calculates and prints the volume of a pyramid given the base (b) and the height (h) of the pyramid. The formula to calculate the volume is: Volume = (1/3) *b * h Enter the base of the pyramid: 3 Enter the height of the pyramid: 2 The volume is 1.9998Madison 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.use flowcharts 4. Accept two integers from computer user and check whether they are equal or not. 5. Write a program to check whether a given number is even or odd. 6. Write a program to check whether a given number is positive or negative 7. Write a program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0when m is 0 and -1 when m is less than 0
- Body Mass Index (BMI) is a measure ofhealth on weight. It can be calculated by taking your weight in kilograms anddividing, by the square of your height in meters. Write a program that prompts theuser to enter a weight in pounds and height in inches and displays the BMI. Noteone pound is 0.45359237 kilograms and one inch is 0.0254 meters. Here is asample run: Enter weight in pounds: 95.5 ↵EnterEnter height in inches: 50 ↵EnterBMI is 26.8573Question 1 Write a program that asks the user to enter the number of passengers in an airplane and the weight of baggage for these passengers. Your program should then print the average weight of all baggage; it should also print the weights in reverse order. Sample run: Enter the number of passengers in the airplane: 8 Enter the weights of 8 baggage: 16 45 60 13 24 29 50 30 The average weight of all baggage is 33.375 The entered weights in reverse order are 30 50 29 24 13 60 45 162. Write an if...else statement that determines whether a variable called points is outside the range of 9 to 51 (exclusive). If the variable is outside this range it should display "Invalid points". Otherwise, it should display “Valid points". 3. Write an if...else statement that determines whether a variable called speed is inside the range of 0 to 200 (inclusive). If the variable is inside this range it should display "Valid Speed". Otherwise, it should display "Invalid Speed".
- Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen.Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen. Use C ++ program, cin, cout, and iostream.of the two numbers. 6. Write a program that reads in the radius of a circle as an integer and prints the circle's diameter, circumference and area. Use the constant value 3.14159 for pi. 7 Writo set inpuuts a five-digit integer senarates the integer into its individual cdigits and