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
- a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered is greater than 12 or less than 1, display an error message; otherwise, display the valid month with a message such as 3 is a valid month. b. Write a program named CheckM0nth2 that prompts a user to enter a birth month and day. Display an error message if the month is invalid (not I through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between I and 29 for February). If the month and day are valid, display them with a message.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.Question # 4: Write a program that calculates the electricity bill. The rates of electricity per unit are as follows: If the units consumed are 300 and 8 2000 2750 Question # 6: Write a program that converts the angle from degree to radian and displays each value.
- Write a program that converts U.S. dollars to Canadian dollars, German marks, and British pounds, as shown in Figure 36.18. The user enters the U.S. dollar amount and the conversion rate, and clicks the Convert button to display the converted amount.Write a program which prompts the user for a Celsius temperature, convert the temperature to Fahrenheit, and print out the converted temperature. Write a program which prompts the user for a Celsius temperature, convert the temperature to Fahrenheit, and print out the converted temperature.A county collects property takes on the assessment value of property, which is 60 percent of the property's actual value. For example, if an acre of land is valued at #10,000, it assessment value is $6,000. The property tax is then 72 cents for each $100 of the assessment value. The tax for the acre assessed at $6,000 will be $43.20. Write a program that asks for the actual value of a piece of property and displays the assessment value and property tax.
- write a program that prompts the user to enter the number of students and each student name and score and finally display the name of student with highest score and the student with second highest score.Write a program that prompts the user to enterthe month and year and displays the number of days in the month. For example, ifthe user entered month 2 and year 2012, the program should display that February2012 has 29 days. If the user entered month 3 and year 2015, the program shoulddisplay that March 2015 has 31 days.A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10
- A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.101 .Write a program that prints out three different tic tac toe winning results. Make each one bigger than the last, separated by more spaces and lines: 2. Write a program called TriangleArea, which calculates and outputs the Area of a triangle with a Base value of 3.5 and a Height value of 4.85. The formula for the area of a triangle is: 1/2 ×???? × ????ℎ?. Your program should output the correct answer. 3. Write a program that will tell me the conversion of 60 miles, into kilometers. Remember that 1 mile is 1.60934 kilometers. 4. Write a sequence of output statements to display your initials (2 – 3 letters) using a cool pattern for each letter. For example, here is a simple pattern for the initials IL: II LL II LL II LL II LL II LL II LL II LL II LL LL LL LL Use around 8 statements to complete this exercise. 5. Write a program that asks the user to input a number. Then…Write a program that reads the amount of a monthly mortgage payment andthe amount still owed—the outstanding balance—and then displays theamount of the payment that goes to interest and the amount that goes toprincipal (i.e., the amount that goes to reducing the debt). Assume that theannual interest rate is 7.49 percent. Use a named constant for the interest rate.Note that payments are made monthly, so the interest is only one twelfth ofthe annual interest of 7.49 percent.