Complete the program below, so it works as shown in console window. User will enter wind speed and wind description must be displayed. The average is also shown. The while loop runs twice. Enter wind speed: 21 Enter wind speed: 35 Type of Wind: 21 Breeze 35 Breeze Average speed: 28 windSpeed add to message variable 6 to 19 (including 6 and Light Breeze 19) 20 to 39 (including 20 Breeze and 39) any other values Invalid written to screen
Q: The Nimble Fingers Typing School assigns grades based on words typed per minute, as shown in Figure…
A: Required:
Q: /rite a program that will ask the user to continuously enter a number until such time that the…
A: In step 2 I have pasted the python code, please go through it.
Q: Q1:\Write a program to check the temperature of a person and print the status in textbox.…
A: Form Design and Code Result:
Q: hallenge Problem (pyhton) T E S T S C O R E S Write a program that…
A: Program Approach: 1- As mentioned in the assignment created the main function. 2- def keyword used…
Q: Exercise #4: Write a program that finds the area of a triangle given the base and the height of a…
A: Below I have provided the answer based on C++ Programming. Refer to the comments for a better…
Q: Exercise 3. Write a program that will first allow a user to choose one of two options: 1. Convert a…
A: #include <iostream>using namespace std;int main(){ int option; //prompting for option to…
Q: There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and…
A: Since programming language was not mentioned , So I chosen PYTHON I have provided PYTHON…
Q: Q1: Write C program to display the below menu and act depending on the user choice. ******* Geometry…
A: Aim: C program to find the area of circle or volume of a sphere.
Q: On planet Groening, there are 8 months of the year as shown in the table. If the user chooses #1 in…
A: #include <iostream> using namespace std; int main() { intnumOfDays; /*used to store…
Q: Exercise 2 Write a Java application that computes the sum of even numbers and the product of odd…
A: Even numbers are those numbers that yield 0 as the remainder when divided by 2. Odd numbers are…
Q: Exercise 2: Write a program that uses input to prompt a user for their name and then welcomes them.…
A: Explanation: You did not mention programming language so I did this program using c,c++, java, and…
Q: A particular talent competition has five judges, each of whom awards a score between 0 and 10 to…
A: # copy the code and run it using python3# take care of the syntax while copying the code# if have…
Q: Questions) Q1 / write a program to find the area of a triangle with a suitable design.
A: As per the policy of Bartleby we can answer only the first question, please ask the other questions…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Note: Below is the required program in the C++ language. Programming Approach: Including necessary…
Q: (a) The length of a month varies from 28 to 31 days. In this task you are required to create a…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Note: Programming language is missing in the question. So we will answer this program in C++…
Q: Write a simple payroll program that will display employee's information. The program should perform…
A: Given The answer is given below
Q: Task4: Write a program that prompts the user to enter a number within the range of 1 through 10. By…
A: In this program we have to write a Linux based program which we can execute using Linux editor Bash…
Q: remember, some companies use letters to show their telephone number. For example, the telephine…
A: //Use "stdafx.h" only, if using visual studio. #include "stdafx.h" // Declare necessary header…
Q: Display basic salary, bonus and net salary
A: EXPLANATION--> Firstly input two variable named with salary and grade If grade is greater then…
Q: Tuary. deposit is then made of £1000 at the end of every month for the next 12 months. Interest is…
A: a. Code: amount=zeros(1,12);amount(1)=100000;interest=zeros(1,12);fprintf('Month\tInterest…
Q: When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees Fahrenheit.…
A: Given:
Q: A savings account is opened with £100000 at the beginning of January. A deposit is then made of…
A: As the programming language is not mentioned here, we will be using PYTHON The complete code is…
Q: Voltage readings are obtained from an electrical substation once every hour for six hours Write a…
A: The Program language is not mentioned here. So, I am using C language to answer your question. The C…
Q: Exercise 4 Write a program that allows a user to play HiLo game. User wins if he/she can guess the…
A:
Q: One interesting application of computers is drawing graphs and bar charts. Write a program that…
A: Read 5 numbers and store in array. Iterate from k=0 to k=4 n=arr[k] Iterate from i=1 to i=n…
Q: The two roots of a quadratic equationax2 + bx + c = 0 can be obtained using the following formula:b2…
A: Program Planning: Step 1: Take entries of values for a, b, and c from the user first. Step 2:…
Q: Exercise 2 : Write a Java application that computes the sum of even numbers and the product of odd…
A: Given: Exercise 2 : Write a Java application that computes the sum of even numbers and the product…
Q: Complete the program below, so it works. User enters amount to invest, interest percentage and…
A: This question explains about C# Program
Q: Case1: Write a menu driven program that allows you to visit cities of oman in random order with…
A: Answer: our guidelines is answer the first question form the first question so I have written code…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Programming language is missing in the question. So we will answer this program in C++ language. If…
Q: The recipe for a homemade window cleaner is water, alcohol, ammonia, and dishwashing liquid.…
A: Required:
Q: ecks whether the point is within the circle centered at (0, 0) with radius 10. For example, (4, 5)…
A: Given:
Q: Exercise 6: Two points in a plane are specified using the coordinates (x1, y1) and (x2, y2). Write a…
A: Since it is unclear which question you want, my code below is answer to both questions 6 and 7.
Q: (Racing car) Write a program that simulates car racing, as shown in Figure 9.29b– d. The car moves…
A: Solution:-- 1)To draw a fan and a moving car. 2)The above requirements are drawn using python code.…
Q: 2. Write a program asking for the Exam Score. The program then will display a remark if FAILED or…
A: Create a class first. Then use scanner class to read input from user. Scanner class can be found in…
Q: Add this comment: # LAB 1: Part 4 Write a program that asks the user to enter the mass of an object…
A: Program to convert mass from pounds to kilograms. Given : 1 pound = 0.545 kilograms Input :-…
Q: Question 2: Write a program to check responses of a student to the multiple-choice final exam. The…
A: C++ used to answer this question
Q: Programming Problem: Grading system conversion from percentage to numerical. The program will ask…
A:
Q: ShowCurrentTime.py, gives a program that displays the current time in GMT. Revise the program so…
A: Code to copy:- import time print("This Program Displays The Time In The Specified Time…
Q: Snack bar menu Write a program in phyton that allows the user to choose from the following menu…
A: The question asks for building a program giving user a set of menus to choose from. Based on the…
Q: 26.Temperature Conversion Write a program which prompts the user for a Fahrenheit temperature,…
A: the program is written below:- print("Enter 'x' for exit."); fah = input("Enter Temperature in…
Q: oln college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: - The question is to highlight the final grade using the formula using the provided formula and then…
Q: Using the dialog boxes in the JOptionPane class, write a program that calculates and prints the…
A: //Importing header import javax.swing.JOptionPane; //Defining class class LastnameClasscodeFinal1…
Q: SUPPLEMENTAL ACTIVITIES 1. Write a parameter and return program that will require the user to enter…
A: Solution: C++ PROGRAM: #include <iostream> using namespace std; // Function header and…
Q: Q1:\Write a program to check the temperature of a person and print the status in textbox.…
A: Since you didn't mention any specific program language, to check the temperature of a person and…
Q: Lab #05 Exercise Write a program to enter 2 out of 3 angles in a triangle, in degrees. Your program…
A: Please give positive ratings for my efforts. Thanks. PROGRAM a = float(input("Enter the first…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- here's the 3rd. Vehicle.cpp // Vehicle.cpp #include <iostream> using namespace std; class Vehicle { public: void setSpeed(double); double getSpeed(); void accelerate(double); void setFuelCapacity(double); double getFuelCapacity(); void setMaxSpeed(double); double getMaxSpeed(); private: double fuelCapacity; double maxSpeed; double currentSpeed; }; void Vehicle::setSpeed(double speed) { currentSpeed = speed; return; } double Vehicle::getSpeed() { return currentSpeed; } void Vehicle::accelerate(double mph) { if(currentSpeed + mph < maxSpeed) currentSpeed = currentSpeed + mph; else cout << "This vehicle cannot go that fast." << endl; } void Vehicle::setFuelCapacity(double fuel) { fuelCapacity = fuel; } double Vehicle::getFuelCapacity() { return fuelCapacity; } void Vehicle::setMaxSpeed(double max) { maxSpeed = max; } double Vehicle::getMaxSpeed() {…Create a Flowchart for this code. cars = ["Buick","Ford","Honda"]colors = ["Red","Blue","Black","White","Green"]aType = ["Sedan","SUV","Sports","Coupe","Truck"]arr = [[0 for i in range(len(cars))] for j in range(len(cars)*len(colors))]for i in range(0, len(colors)*len(cars)):for j in range(0, len(cars)):if j == 0:arr[i][j] = cars[int(i/5)]if j == 1:arr[i][j] = colors[int(i % 5)]if j == 2:arr[i][j] = aType[int(i % 5)]for i in range(0, len(arr)):print(arr[i])In the btnCalc_Click procedure, change the For…Next statement that controls the years to a Do…Loop statement. Option Explicit OnOption Strict OnOption Infer Off Public Class frmMainPrivate Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click Dim dblDeposit As DoubleDim dblBalance As Double Double.TryParse(txtDeposit.Text, dblDeposit) txtBalance.Text = "Rate" & ControlChars.Tab &"Year" & ControlChars.Tab & "Balance" &ControlChars.NewLine End Sub Private Sub txtDeposit_Enter(sender As Object, e As EventArgs) Handles txtDeposit.EntertxtDeposit.SelectAll()End Sub Private Sub txtDeposit_TextChanged(sender As Object, e As EventArgs) Handles txtDeposit.TextChangedtxtBalance.Text = String.EmptyEnd Sub Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.ClickMe.Close()End Sub Private Sub txtDeposit_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtDeposit.KeyPress' Allows the text box to accept only numbers, the…
- #include <iostream> #include <string> #include<iomanip> using namespace std; int main() { int monthlyUsage[12]; double consumption[12]; double discount[12]; double tax[12]; double bill[12]; string fullMonthName[12] = { "January","February","March","April","May","June","July","August","September","October","November","December" }; string month[12] = { "Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec"}; for (int i = 0; i < 12; i++) { cout << "please input monthly usage in kWh for " << fullMonthName[i] << ": " <<endl; cin >> monthlyUsage[i]; // Get user input and put it inside array monthlyUsage // TO DO CALCULATION FOR THE CONSUMPTION if (monthlyUsage[i] > 0 && monthlyUsage[i] < 101) { consumption[i] = (17.5/100) * monthlyUsage[i]; } else if (monthlyUsage[i] > 100 && monthlyUsage[i] < 201) { consumption[i] = 17.5 + ((monthlyUsage[i] - 100) * (18.5 / 100)); } else if (monthlyUsage[i]…Flowchart, create. #include <iostream> #include <string> using namespace std; double computeRate(int); double computeRate(int, string); int main() { int days; string mealPlan; string question; double rate = 0.0; cout << "How many days do you plan to stay? " << endl; cin >> days; cout << "Do you want a meal plan? Y or N: " << endl; cin >> question;if(question=="Y" || question == "y") {cout<<"Enter the meals code: "<<endl;cin >> mealPlan;rate = computeRate(days,mealPlan );} else {rate = computeRate(days);} // Figure out which arguments to pass to the computeRate() function and // then call the computeRate() function cout << "The rate for your stay is $" << rate << endl; return 0; } // End of main() function // Write computeRate functions here.double computeRate(int days) {return days * 99.99;}double computeRate(int days, string s) {if(s == "A") {return days * 169;} else {return days * 112;}}Fix the errors in the Customer class and the Program. DATA FILE ThinkAbout Tech 344 Park Ave, NY, NY 10022 Kemp Technologies 3601 Broadway, NY, NY 10021 Verizon 6 Hudson Street, NY, NY 10001 Merrill Lynch 7 World Financial Center, NY, NY 10001 Philips Laboratories 345 Scarborough Rd, Briarcliff Manor, NY 10510 CODE #include <iostream> #include <fstream>#include <string>using namespace std; class Customer { // Constructorvoid Customer(string name, string address) : cust_name(name), cust_address(address){acct_number = this.getNextAcctNumber();} // Accessor to get the account numberconst int getAcctNumber() { return acct_number; } // Accessor to get the customer namestring getCustName(} const { return cust_name; } // Accessor to get the customer addressstring getCustAddress() const { return cust_address; } // Set a customer name and addressstatic void set(string name, string address); // Set a customer addressvoid setAddress(string cust_address) { cust_address =…
- A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your Eclipse Project.( If your Eclipse Project name is Assignment2, the text file is located under Assignment2, NOT src folder) It contains data for one movie on each line.Each Movie contains the following data items:Title(String), Year(int-4 digits), Runtime(double). Example: Gemini Man,2019,1.97 Mortal Engines,2018,2.01 Write Java program(s) to do the following:1) Read the movies.txt Text file and write the data as a Serialized file called movies.ser to the local directory(same as movies.txt).2) Read the movies.ser serialized file and output the data on to the Console in the format shown below. NOTE: DO NOT just write out the data from movies.txt using System.out.println(). This will receive no credit. You MUST read the data from the movies.ser file and output the data.We will check the movies.ser file for grading. The spacing for the output is: Title(20), Year (8) and Runtime (10.2)Title and…oks My library > CST 112: Introduction to Programming home > 2.11: Integer division and modulo 211.3. Integer alvision and moquio. ACTIVITY 477358 3451196.73zqy? Jump to level 1 Integer variables totalVolume and itemVolume are read from input. An item takes up itemVolume cubic inches, and the volume of a box is given by totalVolume cubic inches. Assign remainingVolume with the remaining volume after filling as many boxes as possible. Ex: If the input is 13 4, then the output is Remaining volume: 1 1 import java.util.Scanner; 2 3 public class RemainingVolume { 4 5 6 7 TO68L 9 10 11 12 13 14 15 16 17 } public static void main(String[] args) { } Scanner scnr = new Scanner(System.in); int totalvolume; int itemVolume; int remainingVolume; EzyBooks catalog ? Help/FA totalvolume = scnr.nextInt(); itemVolume = scnr.nextInt(); /*Your code goes here / System.out.println("Remaining volume:" + remainingVolume); 1 2 31// EmployeeBonus2.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables. string employeeFirstName; string employeeLastName; double employeeSalary; int employeeRating; double employeeBonus; const double BONUS_1 = .25; const double BONUS_2 = .15; const double BONUS_3 = .10; const double NO_BONUS = 0.00; const int RATING_1 = 1; const int RATING_2 = 2; const int RATING_3 = 3; // This is the work done in the housekeeping() function // Get user input cout << "Enter employee's first name: "; cin >> employeeFirstName; cout << "Enter employee's last name: "; cin >> employeeLastName; cout << "Enter employee's yearly salary: "; cin >> employeeSalary; cout << "Enter employee's performance rating: "; cin >> employeeRating; // This is…
- Health application: BMI) Revise Listing 3.4, ComputeAndInterpretBMI.java, to let the user enter weight, feet, and inches. For example, if a person is 5 feet and 10 inches, you will enter 5 for feet and 10 for inches. Here is a sample run: Enter weight in pounds: 140 Enter feet: 5 Enter inches: 10 BMI is 20.087702275404553Microsoft Visual C# 7th edition. need help, please. Thanks In previous chapters, you created applications for Marshall’s Murals. Now, modify the version of the MarshallsRevenue program created in Chapter 5 so that after mural data entry is complete, the user is prompted for the appropriate number of customer names for both the interior and exterior murals and a code for each that indicates the mural style: L for landscape S for seascape A for abstract C for children’s O for other When a code is invalid, re-prompt the user for a valid code continuously. For example, if Y is input, output Y is not a valid code, and re-prompt the user until a valid code is entered. After data entry is complete, display a count of each type of mural. For example the output should be in the following format with the correct number next to each mural type: The interior murals scheduled are: Landscape 1 Seascape 2 Abstract 1 Children's 3 Other 9 The exterior murals scheduled are: Landscape 4 Seascape 0…Based on coding below, help me fix all the error until the program can be run properly and neatly #include <iostream>#include <iomanip>#include <ctype.h>#include <string> using namespace std; struct nodeBankAccount{string bank_acc_name;string bank_acc_num;double bank_acc_bal; nodeBankAccount*link;}; nodeBankAccount *head, *rear;nodeBankAccount *current;nodeBankAccount *newNode;nodeBankAccount *deleteBank;nodeBankAccount *previous;nodeBankAccount *found; void addBankAccount(){char answer;int insertOption; do{newNode = new nodeBankAccount; cout << "Fill in the details below" << endl;cout << "Bank Account Name: ";cin>>newNode->bank_acc_name;cout << "Bank Account Number: ";cin>>newNode->bank_acc_num;cout << "Bank Account Balance: " << "RM ";cin>>newNode->bank_acc_bal;newNode->link = NULL; if(head == NULL){head = newNode;}else{cout<<"Press 1 to insert the new record at front of the…