Draw a flowchart for a program that: 1) Asks the user to enter from the keyboard electricity consumption in kilowatts (KW) and municipality tax in BD. 2) Calculates the cost of consumed electricity (Elctcost ) as shown in the table below: Consumed electricity (KW)? O to 2000 more than 2000 Elctcost= 0.005xelectricity(KW) 0.020xelectricty(KW) 3) Calculates the monthlyPament(BD) = municipality tax + Elctcost. 4) Displays the value of calculated monthlyPament. %3D
Q: Draw a flowchart for a program that: 1) Asks the user to enter from the keyboard electricity…
A: As per the requirement program is completed. Algorithm: Step 1: Write the main() method Step 2:…
Q: C++ Celsius to Fahrenheit Write a program that converts user input in Celsius to Fahrenheit…
A: Here have to determine c++ code for Celsius to Fahrenheit.
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: // Take input from user policy number, customer last name, customer first name, age, premium due…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Below is the required code and sample output:
Q: Create the flowchart of a program that will ask the user to input the value of the temperature in…
A: Celsius = (Fahrenheit – 32) * 5/9 Fahrenheit = (Celsius * 9/5) + 32 fahrenheit = float(input("Enter…
Q: - If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Actually, program is an executable software that runs on a computer.
Q: money is left in a particular bank for more than 5 years, the bank pays interest at a rate of 4.5%…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION Define…
Q: 2. Write a program that calculates marked area of the square, given input of square length and the…
A: ALGORITHM:- 1. Take input from user. 2. Check if square side is greater than circle diameter. 3. If…
Q: Suppose you want to deposit a certain amount of money into a savings account with a fixed annual…
A: The first three steps are to get the inputs from the user which are the annual interest rate Number…
Q: Average acceleration is defined as the change of velocity divided by the time taken to make the…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: PROGRAM: //Importing the required header file import java.util.Scanner; //Defining the class…
Q: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: using System;class MoveEstimator { static void Main() { int baseRate = 200, hourRate =…
Q: eate a flowchart that will compute for the grade of students and print its equivalent grade point.…
A: We need to read in assignments, seatwork, quiz and exam marks, then compute the
Q: 4. An automobile travels at an average speed of 55 miles per hour for four hours. Draw a flowchart,…
A: Below is the required flow chart of the question: Flow chart:
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: File name: "Cost.java" import java.util.Scanner; public class Cost{ public static void…
Q: Q1: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the…
A: NOTE: We’ll answer the first question since the exact one wasn’t specified. Please submit a new…
Q: Create the flowchart of a program that will ask the user to input the value of the temperature in…
A: The question is to write flowchart for the given problem.
Q: For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the…
A: Program: //include the header file #include<iostream> using namespace std; //definition of…
Q: Q2: Write a program to compute and display a person's weekly salary as determined by the following…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read no.of hours n…
Q: Draw a flowchart for a program that: 1) Asks the user to enter from the keyboard electricity…
A:
Q: A) Write a program that inputs temperature and display a message according to the following data:…
A: Program: #include <iostream> using namespace std; int main() { float temp; cout <<…
Q: Driving is expensive. Write a program with a carsiles/gallon and gas dollars gallon (both floats) as…
A: C++ programming language is used to answer the given question. The formula to calculate the cost of…
Q: program so that the user enters the rate of tuition increase for the first year. the rate then…
A: C++ used to answer this question
Q: Write a program that prompts the user to enter the name of a football team and its foundation year.…
A: The programming languages include Java, c, c++. The program reads the input from the user that is…
Q: Draw the flowchart for a program that calculates the amount of tax withheld from an employee's…
A: The flow chart is a step by step process, it specifies the steps in diagramatic way by using flow.
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: According to the information given:- Drive-Rite Insurance Company gives automobile insurance…
Q: A retail company must file a monthly sales tax report listing the sales for the month and the amount…
A: Question. A retail company must file a monthly sales tax report listing the sales for the month and…
Q: You are given high of the cylinder (h) and radius of the cylinder base area (r) as in Figure 3(a)…
A: Please upvote. I am providing you the correct answer below. Please please please.
Q: The following table shows the approximate speed of sound in air, water, and steel:Write a program…
A: Given: You can calculate the amount of time ittakes sound to travel in air with the following…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: //import the required package import java.util.Scanner; //create a main class public class Gallon {…
Q: draw a flowchart for the following Sconario, Design an algrithm and Take the Basic Salary of an…
A: Algorithm is a sequence of instruction to solve a specific problem Algorithm for given problem:…
Q: You are required to write a pseudocode and draw a flowchart for a program to determine total marks…
A: The Pseudo Code to implement the given program is: START Declare the variable to store Username as…
Q: ate a Flowchart that will compute the real estate tax, given the following formulas: a. If value of…
A: I have given the c++ code for the given conditions below.
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: Write a program that allows the user to input their weight in, height in feet, age in years, and…
A: Body mass index is a person's weight in kilograms divided by the square of height in meters.
Q: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: C++ used to answer this question
Q: Make a flowchart where a program dispenses cash at an ATM machine that has been upgraded to dispense…
A: Since you needed the output screenshot I am attaching for both conditions thatis when amount is…
Q: Create a flowchart in which the program gets a number from user and checks If it's a multiple of 3.…
A: We need to create a flowchart. Where we take input from the user and check multiple conditions and…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: question :- Program using C++ language without the use of logical operators (&&, || ,!) To…
Q: Write a program that will calculate the account balance after we deposited the amount of money for a…
A: NOTE: Since programming language is not mentioned. Therefore answering in MATLAB. First input…
Q: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Step 1:- Program Approach:- 1.Include header file 2.Create the function whose name is year(int num)…
Q: 2. Write a program that calculates marked area of the square, given input of square length and the…
A: You had not specified any programming language for program but As the heading is assesment is…
Q: Write a program to calculates the cost to a company for a proposed raise. The program prompts for…
A:
Q: Suppose a person wants to apply for a loan in a bank. The bank gives loan on a fixed interest rate…
A: SOURCE CODE: #include<iostream> using namespace std; int main(){ double…
Q: The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a…
A: Since this is a multipart question as per guidelines we are allowed to solve only first three sub…
Q: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: Actually, the code has given below:
Q: Ajax Manufacturing needs a program for employees to calculate gross pay themselves in order to have…
A: Working of the flowchart Prompt user to enter hours worked Read hours Prompt user to enter pay rate…
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.
Step by step
Solved in 2 steps with 1 images
- Write a flowgorithm that asks the user to input a person’s age. The program should then display a message indicating whether the person is an infant, child, teenager or an adult based on the following guidelines 1 year or less, person is an infant Over 1 year but less than 13 years, person is a child At least 13 but less than 20, person is a teenager 20 years or greater, person is an adult can i see this in an actual flowgorithm chart please1. Federal law requires that hourly employees be paid “time-and-a-half” for work in excess of 40 hours in a week.For example, if a person’s hourly wage is $12 and he or she works 60 hours in a week, the person’s gross pay shouldbe (40 *12) + (1.5 *12 * (60-40)) = $840.Write a program that requests the floating number of hours a person works in a given week and the person’s hourlywage as input, and then displays the person’s gross pay. Save it as overtimePay.py. Write a program that will calculate the account balance after we deposited the amount of money for a given period (in years) with interest rate. The program shall ask the user to input the amount (m), period (n) and interest rate (r). Write a local function that will calculate the balance (B). Display the result of the balance calculation. Use the formula below for the balance. Save program as LE9-2.m and flowchart/pseudo-code as LE9-2.png or LE9-2.txt. B=m∗(1+r)n
- Create a flowchart that will compute for the grade of students and print its equivalent grade point. The formula for computing the grade is : GRADE = 10% assignment + 20% seatwork + 30% quiz + 40% exam. Equivalent Grade point ---------------------- 1.0 - 99-100 1.25 - 96-98 1.50 - 93-95 1.75 - 90-92 2.0 - 87-89 2.25 - 84-86 2.50 - 81-83 2.75 - 78-80 3.0 - 75-77 5.0 - below 75Given 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 Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a flowchart or pseudocode for the following: a. A program that accepts insurance policy data, including a policy number, customer last name, customer first name, age, premium due date (month, day, and year), and number of driver accidents in the last three years. If an entered policy number is not between 1000 and 9999 inclusive, set the policy number to 0. If the month is not between 1 and 12 inclusive, or the day is not correct for the month (for example, not between 1 and 31 for January or 1 and 29 for February), set the month, day, and year to 0. Display the policy data after any revisions have been made. c. A program that continuously accepts policy holders' data until a sentinel value has been entered, and displays the data for any policy holder who is at least 18 years old. d. A program that continuously accepts policy holders' data and displays the data for any policy holder no more…
- The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Design a flowchart or pseudocode for the following: a. A program that accepts insurance policy data, including a policy number, customer last name, customer first name, age, premium due date (month, day, and year), and number of driver accidents in the last three years. If an entered policy number is not between 1000 and 9999 inclusive, set the policy number to 0. If the month is not between 1 and 12 inclusive, or the day is not correct for the month (for example, not between 1 and 31 for January or 1 and 29 for February), set the month, day, and year to 0. Display the policy data after any revisions have been made. b. A program that continuously accepts policy holders' data until a sentinel value has been entered, and displays the data for any policy holder over 40 years old.The following table shows the approximate speed of sound in air, water, and steel:Write a program that asks the user to enter “air”, “water”, or “steel”and thedistance that a sound wave will travel in the medium. The program should thendisplay the amount of time it will take. You can calculate the amount of time ittakes sound to travel in air with the following formula: Time = Distance / 1,100You can calculate the amount of time it takes sound to travel in water with the following formula:Time = Distance / 4,900You can calculate the amount of time it takes sound to travel in steel with the follow- ingformula:Time = Distance / 16,400Write a program that asks the user to enter the monthly costs for the following expensesincurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses,and the total annual cost of these expenses.
- C++ write a program that calculates and prints the take-home pay for commissioned sales employee. Allow user to enter value for the name of employee and the sales amount for the week. Employee receive 7% of the total sales. Federal tax rate is 18%. Retirement contribution is 10%. Social Security tax rate is 6%. Use appropriate constantsPLEASE MAKE SURE OUTPUT MATCHES THE EXAMPLE PHOTO Write a program that will read in the number of liters of gasoline consumed by the user’s car and the number of miles traveled by the car, and then output the number of miles per gallon the car delivered. Yourprogram should allow the user to repeat this calculation as often as the user wishes. Define a function to compute the number of miles per gallon. Your program should use a globally defined constant for the number of gallons per liter. Note: A liter is 0.264179 gallons. An example run of the program is shown below: Hints:1. What will your function do? Document that in the comment.2. What are the parameter(s) to the function? What type? What type is the returned value?3. What kind of a loop should you use? What’s the minimum number of times the user will go through theloop? How to write a function1) Determine the type and number of parameters2) Determine the type of the return value3) Declare the function (usually at the top of the…4. An automobile travels at an average speed of 55 miles per hour for four hours. Draw a flowchart, and write an algorithm that displays the distance driven, in miles that the car has traveled after 0.5 1.0, 1.5 hours and so on until the end of the trip.