Write a program that reads an integer age of kids, finds the maximum of them, and counts its occurances, finds the minimum of them, and counts its occurances. And Find the average ages. Assum that the input ends with number -1.
Q: Write a program that takes the user age and prints the following: Print too old, if age is greater…
A: Use if else if statements to check all the conditions one by one
Q: Write a program that prompts for and reads the radius and the height of a cylinder (in centimeters).…
A: Answer : Here is the C++ code: //included header file #include<iostream> //included namespace…
Q: Write a program which separates sentence, “there is a cat", into words as shown below. Output there…
A: PROGRAM INTRODUCTION: Use the required libraries and include them. Start the definition of the main…
Q: Write a program that accepts a date in the form month/day/year and out- puts whether or not the date…
A: Algorithm: Check if the month, day, and year can be converted to ints Check if values are in…
Q: Write a program in phyton that takes in an integer in the range 11-100 as input. The output is a…
A: The asked python program has been coded by using a while loop for printing the countdown numbers and…
Q: write a program that displays, in ascending order,the first names of those students who have…
A: Step 1:- In the question does not show in which language write the program therefor above program…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: The answer is
Q: Write a program that reads in hours, minutes, and seconds as input, and outputs the time in seconds…
A: h=int(input("Enter hours: "))m=int(input("Enter Minutes: "))s=int(input("Enter Seconds: "))sec=…
Q: Write a program that will compute for the salesman's commission based from his total sales for the…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that reads a person's first and last names separated by a space, assuming the first…
A: First, we will input first and last name. Then we will replace space with ", ". And finally, print…
Q: Write a program that will check and print if the person is a regular passenger, student or senior…
A: Program Code: #include<stdio.h>#include<conio.h>main(){ int ch,fare; printf("If you are…
Q: write a program in VB that requires from user to insert the total number of students and the number…
A: ' Program that reads total student and successful student and calculate' and display percentage of…
Q: Write a program to find the equivalent series and parallel resistance for 3 resistor values. Your…
A: As there is no programming language mentioned in question . program is attempted in c language user…
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: A required Java program is as follows, File name: “LabProgram.java” import java.util.Scanner; public…
Q: Write a program that computes the rent in five years and the total rent for one year starting five…
A: Program description: Assume, b be a user input integer variable that stores the basic salary. r is a…
Q: Write a program that takes a positive integer x greater than zero typed in by the user, and prints…
A: #include <stdio.h> int main() { //declaring variable int x,i; //take input from…
Q: Write a program that reads an integer and determines and prints whetherit’s odd or even. [Hint: Use…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //read…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Code with explanation: lst = [ ] // list to store the input strings.lt=[] // list to store the…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse.
A: Answer: In c: #include<stdio.h>#include<string.h>int main(void){ char str[100];…
Q: Write a program that reads a person's first and last names, separated by a space. Then the program…
A: Here the scanner object is scnr. Thus using this, we can read the firstName and lastName.
Q: Write a program to read two integers, then test if the two numbers are divisible by 5.6 at the same…
A: - The question wants us to write the code for the scenario that we are given two numbers a and b and…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Below i have given program:
Q: • write a program that reads two integer values from the user and then prints the Greatest Common…
A: We know that gcd of two number is (a*b)/LCM(a,b), where a and b is given number.
Q: Write a program to read and print 6 temperatures for 6 days and find the average for these degrees…
A: Since programming language was not mentioned , so I used PYTHON-- I have provided PYTHON CODE…
Q: Write a program that takes the x, y coordinates of a point in the Cartesian plane and prints…
A: Note: You didn't mention any languages so i use C language//include the header…
Q: Write a program that prints out the letters of a word, one on each line, in the format "The letter…
A: Logic :- use split() method to separate string and store it in array. display each word of array.
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner…
Q: Write a program that prints the day number of the year, given the date in the form month-day-year.…
A: Programming Approach Declare a header file. Using namespace. Define function prototypes Declare a…
Q: Write a program that can suggest an activity based on the temperature. If the temperature is between…
A: Hi. As you have not mentioned any programming language, I will choose Python. Let's move on to…
Q: Write a program that receives a number from a user and checks if it's float or integer. In case of…
A: First we declare the number variable, which gets input from the user. Also, we declare a variable…
Q: Write a program that plays a guessing game with the user. Have your program read and store an…
A: Input a number and then generate a random number The number should be from 1 to 10 So, applying %10…
Q: Write a program that reads in a series of integer numbers, and determines how many positive odd…
A: Since the programming language is not mentioned, so we'll do it in python. The programming…
Q: Write a program that takes a date as input and outputs the date's season. The input is a string to…
A: Use a dictionary to store the months and number of days in each month Check the month whether in…
Q: Write a program that reads in five integers and determines and prints the largest and the smallest…
A: Note: In this question, the coding language is not specified then we are doing this question in the…
Q: Write a program that reads 3 integers and prints the maximum value among them. (without using max())
A: function main: Start Read num1, num2, num3 if num1 >= num2 and num1 >= num3 then largest =…
Q: Write a numpy program to get the dates of today, yesterday, day before yesterday, tomorrow, day…
A: #importing numpyimport numpy #getting todays date using datetime64 function…
Q: Write a program that reads 10 numbers, finds the largest number, prints it, finds the smallest…
A: Given: Write a program that reads 10 numbers, finds the largest number, prints it, finds the…
Q: Write a program that will Input the name , position of the employee , Input the rate per hour, hours…
A: Program: #include <iostream> using namespace std; int main() { string name; int…
Q: Write a java program that find the Fibonacci series up to a given number of iterations that entered…
A: To write java program to find Fibonacci series.
Q: Write a program to read two integers, then test if the two numbers are divisible by (5,6) at the…
A: Write a program to input two numbers and check if both are divisible by 5 and 6 at the same time
Q: Write a program that reads an unspecified number of scores anddetermines how many scores are above…
A: Since you are not mentioning the programming language, here we are using Java to complete the…
Q: Write a program that reads an unspecified number of scores and determines how many scores are above…
A: # include <iostream> using namespace std; int main() { int i=0; int scores[i]; int count = 0;…
Q: Implement a program that requests four numbers from the user. Your program should compute the…
A: Programming language is missing in the question. So we will answer this program in Python language.…
Q: Write a program that can be used to compute the average exam grade for multiple students. Each…
A: You have not specified any particular programming language so, I have provided a python code…
Q: Write a program that read a positive number and determine whether it is odd or even number. Print…
A: In the solution i have Made an Python program for a positive number to input by the user and…
Q: Write a program that takes in an integer in the range 20-98 as input. The output is a countdown…
A: Since the Programming language is not mentioned in the question, we will answer this question in C…
Write a program that reads an integer age of kids, finds the maximum of them, and counts its occurances, finds the minimum of them, and counts its occurances. And Find the average ages. Assum that the input ends with number -1.
Step by step
Solved in 2 steps with 1 images
- Write a program that prompts for and reads the radius and the height of a cylinder (in centimeters). It then computes its volume by using pass by reference and pass by valueWrite a program that inputs a number and checks whether it is a perfect number or not. A perfect number is the number that is numerically equal to the sum of its divisors. For example, 6 is a perfect number because the divisors of 6 are 1, 2, 3 and 1+2+3=6Write a program that receives a number from a user and checks if it's float or integer.In case of being float, print for the user that his/her number is float with integer part andfractional part. In case of being integer, print to the user that his/her number is aninteger and odd/even numbeR
- Write a program that reads in a series of integer numbers, and determines how manypositive odd numbers are among them. Numbers are read until a negative integer is given.Use cycle and exit.Write a program that takes as input the speed of a car e.g 80. If the speed is less than 70, it should print “Ok”. Otherwise, for every 5 km/s above the speed limit (70), it should give the driver one demerit point and print the total number of demerit pointsWrite a program that computes the rent in five years and the total rent for one year starting five years from now
- Write a program that reads an unspecified number of scores anddetermines how many scores are above or equal to the average, and how manyscores are below the average. Enter a negative number to signify the end of theinput. Assume the maximum number of scores is 100.Write a program which reads the number of blocks the builders have,and outputs the height of the pyramids that can be built using these blocks.Write a program that reads two integers as input, and outputs the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Answer in Coral Language Ex: If the input is: -15 30 the output is: -15 -5 5 15 25 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first. For coding simplicity, output a space after every integer, including the last.
- Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and E, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F-. A + increases the numeric value by O.3, a – decreases it by 0.3. However, an A+ has value 4.0. Enter a letter grade: B- The numeric value is 2.7.Write a program that reads an integer and displays all its smallest factors in an increasing order. For example, if the input integer is 120, the output should be as follows: 2, 2, 2, 3, 5.Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both single words. Then the program outputs last name, first name. End with newline. Example output if the input is: Maya Jones Jones, Maya