The Meteorological service requires a program to allow the operator to enter the rainfall level. The program keep accepting the rainfall level until a zero value is entered. The program will keep displaying the current min, max and running average rainfall level after an entry is made. The program terminates by the operator entering a negative value and displaying the total number of entries made.
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: Write a program that prompts the user to enter two integer numbers x and y. The program must check…
A: Since , their is no any specific language is mentioned for writing a program so program is written…
Q: Given a set of cities, the central point is the city that has the short- est total distance to all…
A: code: #include <iostream>#include <iomanip>#include <cmath>using namespace std;int…
Q: Write a program that asks the user to enter a number of seconds. Solving the Time Calculator Problem…
A: sec=int(input("Enter number of seconds: ")) if sec<3600 and sec>=60 : print(f"Number of…
Q: Write a program that allows the user to input his/her name, gender, height (m) and weight (kg). Then…
A: C Program #include<stdio.h>int main(){ char name[50],s[20]; float weight,height,bmi;…
Q: Write program that takes two positive integer arguments and calculates the greatest common divisor…
A: Since no language is specified in the question. I am using c++ language to write the code. See…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: init = int(input("Enter your initial grade: ")) t_loss = int(input("Enter the late submission time…
Q: Program 2 Write a program to ask user to enter number of guests as an integer, and number of hotel…
A: Your python program is given below as you required with an output.
Q: Write a program that calculates how much a person earns in a month if the salary is one penny the…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION. Define…
Q: Write a program that asks the user to enter a float number and evaluate the function f(x) as…
A: x=float(input("Enter value of x :")) if(x<=0): f_x=-1*x elif(x<1 and x>0): f_x=x*x else:…
Q: Write a program that asks for the name of a pole vaulter and the dates and vault heights (in meters)…
A: Lets see the solution.
Q: Modify the above program to compute the side area, total area, and volume of a cylinder and the area…
A: GIVEN: Modify the above program to compute the side area, total area, and volume of a cylinder and…
Q: Write a program that reads from the user the registration fees, number of credits required for a…
A: Given: To write a program to calculate the payment to be paid by user each year and satisfying the…
Q: Write a program that prompts the user to enter an integer between1 and 12 and then displays the name…
A: Program approach: Input an integer between 1 and 12. Displays the name of the month that…
Q: Write a program that asks the user to enter the number of courses he/she is taking and then enter…
A: #include <iostream> using namespace std; int main() // main function { int n; //…
Q: Write a main function that performs the following: • Prompts user to enter 2 values A and B. ( • If…
A: Find the required code in C++ as language not mentioned given as below and output :
Q: A mail order house sells five different products whose retail prices are as follows: * product 1:…
A: Logic: Use while loop to check the user inputs -1 for productNumber. Repeated accept e product…
Q: a. Write a program that will display the 2 times table on the form as 2X1=2, 2X2=4, 2X3=6 and so on.…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost the other…
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: import java.util.*; public class InternetServiceProvider { public static void main(String[] args) {…
Q: Write a program using switch statement that reads each time a product number whose retail prices are…
A: C used to answer this question
Q: Write a program that reads from the user the registration fees, number of credits required for a…
A: Given: To write a Java program that reads from the user the registration fees and other requirements…
Q: code
A: Introduction Java is basically a type of programming language that is very much beneficial and can…
Q: Write a program that displays the current year, month, and day using the time(0) function.
A: Answer: Program Plan Define function displayCurrentDate() for displaying the current date in a…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: Note: Below is the required program in C++. Programming Approach: Defining the required header…
Q: PROBLEM: Write a program that prompts the user to input three (3) integers: MM, DD, and YYYY. For…
A: #include <iostream>using namespace std;// to check if year is leap year or notbool isLeap(int…
Q: Write a program that prompt the user to enter a food product category, and price in USD. The program…
A: C++ Program for above : #include <iostream> using namespace std; int main() { cout…
Q: Write a program that asks for the user’s name and then the program will output the last 4 characters…
A: Note : Since the programming language is not mentioned , I have used C++ language Algorithm : 1 :…
Q: This program should print only the characters from A-Z or a-z. Write a program that prompts the user…
A: Below is the required C++ code. Approach of a Program: Include a necessary header files and then…
Q: Write a program that asks the user to enter the number of students, then enter the grades of these…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: The Meteorological service requires a program to allow the operator to enter the rainfall level. The…
A: use while loop to take values until zero is pressed. store the values into array and then find min…
Q: Write a program that prompts the user to enter the number of courses taken by a student. The program…
A: C++ used to answer this question
Q: In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program…
A: def main(): #Prompt the user to enter the input. start_odo = float(input("Enter the initial…
Q: A java program that works out the charges for the month. The program should accept the following on…
A: //import the required package import java.util.Scanner; //Definition of the main class public class…
Q: Fox International sells pre-paid calling card with the following features: Calls to USo 1.2 cents…
A: Java program to create the Fox International Calling Card Calculator.This program takes account…
Q: An International Internet phone company has three different subscription packages for its…
A: Given: To write a program that calculates a customer’s monthly bill. It should input the customer…
Q: e to 10 decimal places is 2.7182818285 Write a program that prompts the user for a number of decimal…
A: C++ Code: #include <iostream>#include <iomanip>using namespace std; int main() { //…
Q: Canada has three national holidays which fall on the same dates eac Holiday New year's day Canada…
A: Python used to answer this question
Q: Write a program that asks the user to enter the number of employee's and depending on this number he…
A: Sample Response: //JAVA programimport java.util.*;//Declare a Class Employeeclass Employee{…
Q: Write a program that calculates the amount of money a person would earn over a period of time I f…
A: According to the information given:- We have to follow the instruction in order to get the desired…
Q: Write a program that prompt the user to enter the number of students and each student's score, and…
A: #include <iostream>using namespace std; struct student{ char name[50]; float marks;}…
Q: Write a simple payroll program that will display the employee's information, The program should…
A: Question given: Write a Java program that display employee's payroll information. Ask from user…
Q: Write a program to calculates the cost to a company for a proposed raise. The program prompts for…
A:
Q: The user must be able to enter the information for a number of bookings from the keyboard. Ask…
A: Step 1:- Given:- The user must be able to enter the information for a number of bookings from the…
Q: This code read a set of temperatures T(50), determine an average, and then calculate the deviation…
A: Answer is Option-3 i.e., 1-s=s+T(I) 2-Blank 3-A=s/50 4-For I = 1 To 50 5-Blank 6-D(I)=T(I)-A.
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: #include<iostream> using namespace std; int main(){ //variables to store each test score,…
Q: Within the program paython... you need to ask for 'input' numbers from 92 to 65 (num 1 (starting…
A: Pyhton is a object oriented programming language which is very easy to use and to implement. It is a…
Q: A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named…
A: #include <iostream>using namespace std;int main() { // Write C++ code here int…
Q: Write a program that asks the user to enter a day (from 1 to 31), a month (from 1 to 12), and a two…
A: here in this question we have asked to write a program which take a day (from 1 to 31), a month…
Q: Write a program that asks the user to enter a signed number and read it. Then display the content of…
A: Note: Since no language is mentioned # Input the number sign = int(input('Enter the signed number…
Hi, can help to list out the pseudo code in step by step and write the
Thanks.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Programming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTS//PROBLEM 1/* This program should play a game with the user asking her to guess a target number (randomly generated integer between 1 and 10). The user gets 3 attempts. If she gets it wrong, the program tells her to go up or down, depending on whether her number was less or more then the target. The output may look like this, for example: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go down. Enter your third and final guess: 5 You got it! CONGRATULATIONS! ============= or like this: ============= Guess the number between 1 and 10 in THREE attempts. Enter your first guess: 4 Nope. Go up. Enter your second guess: 6 Nope. Go up. Enter your third and final guess: 8 GAME OVER! You lost! The number was 9Assignment Write a program that tracks how much steps the user walks in total in a day and reports if the daily target is reached or not. The program will keep reading double values, each representing steps walked during an individual activity within a day (stepsWalked) until either the user enters a negative value or the daily target of 5000 steps is met. If the user enters a negative number, the program should print total steps walked as a double. Otherwise, if the target is exactly reached, the program should simply print "Target is reached", finally if the target is surpassed the program should print the text "Target is surpassed by", followed by the excess amount above the target as a double, and finally printing the text "steps". NOTE: You MUST use a repetitive statement in this question. NOTE: Each stepsWalked value will be given as a non-negative value. You do NOT need to check this. Input Output Answer assignment 3000 1300 500 2305.2 Target is surpassed by 2105.2 steps 450…
- Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…Create a programming flowchart that requires computing the grade ofa student through getting the average of the 5 exams. Then, if the student grade reaches the following grade range, corresponding remarks will be displayed: • 95% and above – Excellent• 90% - 94% - Very Satisfactory• 85% - 89% - Satisfactory• 80% - 84% - Low Satisfactory• 75% - 79% - Fair• Below 75% - FailedA boolean value can be returned by a function. True False
- (Statistical) In many statistical analysis programs, data values considerably outside the range of the majority of values are simply dropped from consideration. Using this information, write a C++ program that accepts up to 10 floating-point values from a user and determines and displays the average and standard deviation of the input values. All values more than four standard deviations away from the computed average are to be displayed and dropped from any further calculation, and a new average and standard deviation should be computed and displayed.(Civil eng.) Write an assignment statement to determine the maximum bending moment, M, of a beam, given this formula: M=XW(LX)L X is the distance from the end of the beam that a weight, W, is placed. L is the length of the beam.(Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz) Your program should calculate y for values of x ranging between 1 and 5 and values of z ranging between 2 and 6. The x variable should control the outer loop and be incremented in steps of 1, and z should be incremented in steps of 1. Your program should also display the message Function Undefined when the x and z values are equal.
- Task using C language Two spacecrafts are traveling at different speeds from Earth to Mars. While spacecraft A doubles its speed every day, spacecraft B triples its speed in the same period. Given their initial speeds, your task is to determine how many days spacecraft B will take to travel faster than spacecraft A. If the initial speed of spacecraft A is 7, it will be 14 after 1 day, 28 after 2 days, and so on. If the initial speed of spacecraft B is 4, it will be 12 after 1 day, 36 after 2 days, and so on. If the initial speed of spacecrafts A and B are 7 and 4, respectively, B will be faster than A after 2 days, as the speed of A will be 28 and the speed of B will be 36. Requirements Follow the format of the examples below. You will be given several test cases in a single run, and you must provide an answer for all of them. Use #define Examples (your program must follow this format precisely) Example #1 Number of cases: 3Speed of A: 7Speed of B: 4Case #1: 2 day(s)Speed of A:…PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum…Coding language c Write C program that will prompt the user for an integer n. If the user hasentered a non-integer, the user must be prompted again until he or she enters aninteger. If he enters non-integer numbers five times, the program must inform theuser the following message‘You have entered non-integers on five occasions, now the program is exiting”before coming to an end.On the other hand, if the user enters an integer n, the program must compute thesum of three consecutive factorials S=n!+(n+1)!+(n+2)! . Your program mustprint the resulting sum on the display