Task: Create a program that will compute and display the number of days based on th input starting and ending year. Sample output: Enter the starting year: 1999 Enter the ending year: 2001 No. of year/s: 3 No of days: 1096
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: Program: user_input = input() tokens = user_input.split() sum=0 # Initially sum is 0 maxNumber =…
Q: Practice 2: 20 minutes Write a program that prompts the user to enter a positive integer ranging…
A: The code C++ for given problem.
Q: 1. Sind Ask the user to input the triangle size (in main) a Your program should work for any…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: Write a program to find all even numbers between 100 and 400. The number obtained should be printed…
A: There is no programming language mentioned so we are using c++ as default. This can be solved using…
Q: The program segment has errors. Find as many as you can. int num1 = 0, num2 = 10, result; num1++;…
A: Lets see the solution.
Q: 5. The program snippet is known as follows: a = 10; b = 1; c = 2; do { b = b + 1…
A: Please make a code generator for the above program fragment. Following is the code generated in c++…
Q: Divide by x Write a program using integers user_num and x as input, and output user_num divided by x…
A: Given data If the input is: 2000 2 Then the output is: 1000 500 250
Q: Create a program that displays the numbers with duplicates from a set of numbers entered by the user…
A: Read the size of the array then read an array of elements from the user. Sort the given elements…
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: Make a program that input position number and day of work and compute the total salary earn...…
A: import java.util.*;public class Main { public static void main(String[] args) { Scanner scan…
Q: Create a simple program that asks the user to input First name, Last name, subjects(3), and…
A: //I solved you program in c++ becasue you did not metion any programming language #include…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: Code import java.util.*;public class Main{ public static void main(String[] args) { int…
Q: Write down a program that will take a year as input and will print number of days in that year.
A: #include <iostream> using namespace std; int main() { //declaring variable int…
Q: Type the program's output def compute (numbers) : result = 0 for num in numbers: result -= num * 3…
A: The program creates a list named values[] with three values. The list is then passed to a function…
Q: Write a program that prompts the user to enter Expo2020 pass (Season, Multi-day, or One-day), adult…
A: ## As no language is mentioned, the code is written in Python. passName = input("Enter…
Q: 2. Write a while loop program that accepts numbers, then identify which of the numbers entered is…
A: Given: Write a C program.
Q: Create a program that gives the user to display the sum of the first and second numbers, difference…
A: Since the programming language is not mentioned therefore writing code in Python language. print…
Q: Write a program that keeps reading integers from the user until he enters zero. The program should…
A: Language is not mentioned so code is written in C++ programming. C++ program: #include…
Q: 1. Create a program that can accept a number and display that number as many times as the inputted…
A: Coded using Java.
Q: Armstrong numbers between two intervals Write a program to print all the Armstrong numbers in the…
A: Find Your Code Below
Q: In many sports events, contestants are rated by judges with an average score being determined by…
A: PROGRAM INTRODUCTION: Declare and initialize a variable to store the sum of the scores. Start the…
Q: (Find future dates) Write a program that prompts the user to enter an integer for today's day of the…
A: Python program to find future days from today is given below.
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: At a certain university, students have to submit their exams online. The administration decides that…
A: As per the guideline provided solution for Problem 1. Provided the c++ program that asks the user…
Q: Enter number of month M (1 January,..., 12 December): 6 Enter number of day D: 30 The zodiac sign is…
A: Here is the approach : Take input for the date and month Create the function to get the number of…
Q: Blissful number: a number where every digit is greater than its immediate left digit is called a…
A: Here, Code instruction is given.
Q: |Write a program that prompts the user to enter the numerator and denominator of a fraction. The…
A: import java.util.*; public class fractioncheck {public static void main(String args[]) { Scanner…
Q: Write a program that prompts the user to enter Expo2020 pass (Season, Multi-day, or One-day), adult…
A: The C++ code along with the snapshot of code and output.
Q: Instructions An object's momentum is its mass multiplied by its velocity. Write a program that…
A: Given:
Q: [Problem description] Write a program that reads an unspecified number of integer s, and print the…
A: Hello student Greetings Hope you are doing great. Thank You!!!
Q: You decide to buy some stocks for a certain price and then sell them at another price. Write a…
A: Write a program that determines whether or not the transaction was profitable. If your transaction…
Q: Write a program to display the Fibonacci series upto n terms. Attach the output with the program.
A: As the programming language is not mentioned so I am using a C language to write a code. If you want…
Q: Type the program's output def compute(numbers) : result = 0 for num in numbers: result += num - 2…
A: the answer is given below:-
Q: (Find the two highest scores) Write a program that prompts the user to enter the number of students…
A: You have not mentioned any specific language so I did the code in Python and also provide the code…
Q: Create a program that reads a duration from the user as a number of days, hours, minutes, and…
A: Start Take the input of number of days, hours, minutes, and seconds. Read the input values. Compute…
Q: The following program or program segment has errors. Find as many as you can. char x = 'a', y = 'a';…
A: The strcmp() compares 2 strings character by character. If the strings area unit equal, the operate…
Q: Show what the program segment would display on the screen. int x = 0; if (++x) cout << "It is…
A: a) In the first part given code is: int a = 7,b=10,num; num =a++*--b; After this code execute,…
Q: Write a program that asks user to enter two numbers. Then the program should print the even numbers…
A: Task : Write a program to print even numbers between two numbers. C++ program :- #include…
Q: Write a program that asks the user for their name and how many times to print it. The program should…
A: Use a loop to iterate the for specified number of times and print the name in each iteration
Q: Write a program that takes in two integers as inputs and outputs the largest value.
A: Required: Write a program that takes in two integers as inputs and outputs the largest value.…
Q: // This program gets student names continuously until XXX is entered. Then, for each student, quiz…
A: All the return boxes should be connected under one box.
Q: Exercise : Make a program that takes 5 test scores from the user, calculate the average Score and…
A: According to the Question below the Solution: Output:
Q: Create a program that gets values as CMD args as follows, a person's name, year of birth and gender.…
A: public class Lab01_Task04{ public static void main (String[] args) { int…
Q: Armstrong numbers between two intervals Write a program to print all the Armstrong numbers in the…
A: A=int(input()) B=int(input()) flag = False for i in range(A, B+1): x = len(str(i)) sum1 =…
Q: need this answered in c++
A: #include <iostream> using namespace std; int main() { int a,b,c; cout<< " Enter…
Q: Question 1: Write a python program that takes two numbers (Integer) as inputs from the user.…
A: One program is asked in python programming language. Program prints one pattern using two inputs,…
Q: t a certain university, students have to submit their exams online. The administration decides that…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION. Define…
Q: Create an odds/even program that prompts the user for a number. This number will be top (cap)…
A: num = int(input ("Enter a number: ")) if num <= 0: print("Sorry I can not calculate odd…
In C# please
Step by step
Solved in 4 steps with 2 images
- Sample OUTPUT Celsius: 0 Fahrenheit: 32.0 Sample OUTPUT Celsius: 1 Fahrenheit: 33.8 Sample OUTPUT Celsius: 35 Fahrenheit: 95.0 Create a program that will convert Degree Celsius to Degree Fahrenheit. Please help!!Create a program that takes in the following from user input; an grocery item name, its unit price and the quantity a customer wants to buy. Your program should then calculate the total cost of the items including a 15% of VAT (Value Added Tax). Sample run 1: Enter item name: Grape Juice Enter unit price: 18.99 Enter quantity purchased: 1 Output: 1 items of Grape Juice were bought at a total cost of N$21.84 including VAT. Sample run 2: Enter item name: Simba Chips Enter unit price: 7.65 Enter quantity purchased: 6 Output: 6 items of Simba Chips were bought at a total cost of N$52.79 including VAT.Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max. You can assume all the input integers are valid. For output, round the average to the nearest integer.
- Given three numbers from user input, decrement the first number by 1 and increment the third number by 2, Then do the magic calculations as follows: get the sum of the first two numbers, deduct the third number from the second and get the product of the first and third number, then sum up the results of the three magic calculations and finally divide your outcome by 3. Sample run 1: Enter three numbers separated by spaces: 4 2 3 Output: Result of Magic calculations = 5 Sample run 2: Enter three numbers separated by spaces: 2 8 5 Output: Result of Magic calculations = 5 a) Write a Pseudocode to solve the above problem b) Create a flowchart for the above pseudocode SUBMIT TWO DIFFERENT PDF FILES FOR THE ABOVE TASKS.Create a program which will implement the sum of digits. When completed, the program will allow the user to input a positive integer then the program will add all the digits of this integer and output the sum. For example, if the user enters 325 then the program will output 10 Test your program with the following inputs a. 5 (sum is 5) b. 107 (sum is 8) C. 5148 (sum is 18) Write in C++ Please and thank you.Given the following program segment: int first = 3; int second = 4; int j; for ( j = 1; j <= first; j++) { cout << second * j <<endl; second= second + (j - 1); } cout << endl; Your task is to write a while loop and a do ... while loop which will produce the same output.
- Create a program that takes in the following from user input; an grocery item name, its unit price and the quantity a customer wants to buy. Your program should then calculate the total cost of the items including a 15% of VAT (Value Added Tax). Sample run 1: Enter item name: brown bread Enter unit price: 16.25 Enter quantity purchased: 4 Output: 4 items of brown bread were bought at a total cost of N$74.75 including VAT.Create a program that will get 2 numerical inputs and output if the first number is greater or lesser than or equal to the second numberWrite a program that reads integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0. Write a program that reads integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0. Here is a sample run of the program: Enter integers from 1-100 (input 0 value to end inputs): 2 5 6 5 4 3 23 43 2 02 occurred 2 times3 occurred 1 time4 occurred 1 time5 occurred 2 times6 occurred 1 time23 occurred 1 time43 occurred 1 time
- Create a program that accepts input from the user and outputs information about the test scores: Input: Poll 5 students for their grade on the exam Output: Print the average score, the highest score, and a message to all students who received an A gradeWrite a program which repeatedly reads several people's height numbers in cm(centimeter) until the user enters "done". Once "done" is entered, print out the max, min, and average of the height numbers. Correct height data should be number between 50cm and 250cm. If the user enters number out of the range, or anything other than a number, detect the mistake and print an error message and skip to the next number. Sample input and output: Enter a height: 300 Invalid input Enter a height: 10 Invalid input Enter a height: 200 Enter a height: good Invalid input Enter a height: 180 Enter a height: 165 Enter a height: done Max: 200.0 Min: 165.0 Average: 181.671.21 LAB: Divide by x Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded). 247772.2002516.qx3zqy7 LAB ACTIVITY 1.21.1: LAB: Divide by x