6. Write a program to calculate sum of 6 subjects and find percentage obtained.
Q: a program to generate random numbers between the given range?.
A: : justify;" data-mce-style="text-align: justify;">The program first imports the random module,…
Q: Girl Scout Troop 815 has 18 members. Write a program in which the troop leader can enter the number…
A: Please find the answer to the above question below:
Q: write a program that enters the names of three of students, then for each student, the program will…
A: The program is written in Java. Please check the source code and output in the following steps.
Q: Write a program to determine the price for a portrait sitting. The price is determined by subjects…
A: A program to determine the price for a portrait sitting: #include <iostream>using namespace…
Q: Ask the user for a name and for a list of test scores. Show the number of tests taken and the…
A: import java.util.ArrayList;import java.util.List;import java.util.Scanner;public class Main {…
Q: Problem 2: Multiple stages There are only two rest days in the Tour de France. You will now write…
A: Since the Programming language is not mentioned in the question, we will answer this question in C++…
Q: Program ends after entering l, please correct.
A: In the given code, first we take input the length of string and then take input string. After…
Q: 2. Write a program that generates a two-column table showing Fahrenheit temperatures from -40F to…
A: The given program is in java.
Q: 3. Write a program that picks a random number between 1 and 100 inclusive. It then prompts the user…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT…
Q: v. Write a program that inputs the age of different persons and counts the number of persons in the…
A: Code : #include<stdio.h> #include<conio.h> void main() { int i,n,age[100],count=0;…
Q: % WRITE CODE BELOW: % Step 1: Write a function called "collatz" below where you take an input % n,…
A: Here is the matlab code of the problem. See below steps for code and output.
Q: Q1: Write a program that read 10 Marks and print number of failed and succeeded marks.
A: Note: As no programming language is mentioned, therefore answering in python. Input to the Program :…
Q: B: Write a Program to compute the area of triangle with design.
A: Answer :-
Q: create a program that swaps 2 numbers value.
A: Note: C programming language is used below to write the program Algorithm: Algorithm to swap 2…
Q: : Find the even multiples of any number chosen by the user in a given range - the user should…
A: #!/bin/bash # Get number from the user to which the user wants to get even multiples read -p "Enter…
Q: Write a program to calculate the average of student who has registered n number of courses.
A: Given: Write a program to calculate the average of student who has registered n number of courses.
Q: Task 2: Find the terms of any linear sequence given by the rule Term = a*n + b, where a and b are…
A: psedocode:- declare an int n,a,b,arr[100],sum=0,count=0 display "enter value of n: " read n…
Q: Write a program to roll 2 dies (use the “rand” function) for 36,000 times and then calculate the…
A: stdlib.h includes a function named rand() which generates us a random integer value from 0 to an…
Q: The name of this program will be LastProgram6. This program will be a Doggy Day Care. The menu…
A: Answer: import java.io.*; import java.util.*; class Dog{ static int numberOfDogs=0; private String…
Q: Q2: Write a program to calculate the average of student who has registered n number of courses.
A: We will explain code with output.
Q: Write 4 different programs. These are simple modifications to original sample program given. The…
A: Try 1:Task: Add user input and then add 64 to it.Explanation: Ask the user to input a number. Take…
Q: Write a program that reads an unspecified number of scores (1 - 99) and displays the following…
A: NOTE: Programming language is not mentioned, so doing in C++ In this question, we are asked to write…
Q: def matrix_ops (data): data.append([1]) for i in range (99999999999): data = data[::-1]…
A: The solution is given below with output screenshot Happy to help you ?
Q: Question 1 A cylinder water tank holds x litres of water. the volume of the cylinder is given by v =…
A: A cylinder can be defined as the solid 3D object having two circular faces connected with the…
Q: Write a program to read the information of 10 patients (name, id , disease, age , blood . (, فصيلة…
A: Required: write a program to read information of 10 patients. Required code with comments for…
Q: Write a program to number of Armstro to theck Armstrongi
A: l=[]for i in range(20): n=int(input()) l.append(n)count=0for num in l:# initialize sum sum…
Q: The greatest common divisor (gcd) of the two integers 4 and 2 is 2. The greatest common divisor of…
A: Greatest Common Divisor is refers to the greatest positive integer that is a common divisor for a…
Q: the data has 2 columns "horse power" and "top speed" where we are using horse power to predict the…
A: import numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.linear_model import…
Q: Assignment Write a program that tracks how much steps the user walks in total in a day and reports…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: 3. Write a program to read 20 integer numbers, each number consist of 3 digits, then find the number…
A: // Taking 20 numbers of three digits and storing them to a list numbers = [] for i in range(20):…
Q: Interest on a credit card's unpaid balance is calculated using the average daily balance. Suppose…
A: To write program to find interest. i used C++ language.
Q: Ex: Write a program to evaluate the area and circumference of a circle.
A: Since no programming language is being in the program so writing in C language. Problem Statement:…
Q: 2. Write a program that read two integers then print the even and odd number (using functions).
A: A number is even if it is perfectly divisible by 2. When the number is divided by 2, we use the…
Q: Q3: By using Select-Case; write a program to calculate (BMI body mass index) (11 M) weight BMI =…
A:
Q: The bird of paradise called the Helipixsal is renowned for its magnificent tail feathers which range…
A: The answer is given below. Algorithm: Prompt the user to input values in an array of length 20,…
Step by step
Solved in 2 steps
- Screen Shot f 2021-05..8.59 PM angel retirement kandy pdf.pdf Part 4: Write an average-of-three-numbers program awtonsclass.co... Screen Shot 2021-05...3.54 PM This program will get three integers from the user and then print the average of them (using integer division). Here is a sample run of what the program should look like when you run it and type in 7, 10, and 15: + solution g++ -std=C++17 avg.cpp -o avg → solution ./avg Type the first number: 7 Type the second number: 10 Type the third number: 15 The average is 10. + solution rminal. HERO8 BLACK Screen Shot 2021-05..8.40 PM So you need to output the prompts "Type the first number: " and so on, and the user will type in the 7 and press enter. Make sure your output looks exactly like this for those inputs. Make sure to test it with other inputs too! 99 rminal. Compile your code with g++ -std3c++17 avg.cpp -o avg CodeBlocks..Jnk Screen Shot MinGW 2021-05...4.22 PM Installer.Ink. 17,614 AUG 18 W XC Program Write a program that will compute for the salesman's commission based from his total sales for the month. if total sales is Commission isabove 0 but below 10,000 2% of total salesat least 10,000 but below 25,000 5% of total salesat least 25,000 but below 50,000 10% of total salesat least 50,000 but below 75,000 13% of total salesat least 75,000 but below 100,000 15% of total sales at least 100,000 25% of total sales Input the total sales and print Commission = <the computed commission>Write a program that prompt the user to enter the number of students and each student's score, and display the highest and the second highest scores.
- Given a square matrix with elements 0 or 1, write a program to find a maximum square submatrix whose elements are all 1s. Your program should prompt the user to enter the number of rows in the matrix and then the matrix and displays the location of the first element in the maximum square submatrix and the number of the rows in the submatrix. Assume the maximum number of rows is 100.Write a program to read the scores of 20 students and print the pass rate.Implement programs involving the use of while, do..while and for loop statement. Objectives: Topics Covered: Implementing programs using loops. Description FRIDAY THE 13TH When will Friday the 13th occur in 1990? Write a program that will find all months in 1990 in which the 13th falls on a Friday. You need to know the following. 1. January 1, 1990 was on a Monday. 2. September, April, June, and November have thirty days, all the rest have 31 except for February which has 28 except in leap years when it has 29. 3. 1990 is not a leap year. Note: To make it fair for everyone, you may not use any built-in date functions from your computer language. Sample Output if Applicable Sample Run In 1990, Friday the 13th occurs in the months: APRIL
- Transient PopulationPopulations are affected by the birth and death rate, as well as the number of people who move in and out each year. The birth rate is the percentage increase of the population due to births and the death rate is the percentage decrease of the population due to deaths. Write a program that displays the size of a population for any number of years. The program should ask for the following data: The starting size of a population P The annual birth rate (as a percentage of the population expressed as a fraction in decimal form)B The annual death rate (as a percentage of the population expressed as a fraction in decimal form)D The average annual number of people who have arrived A The average annual number of people who have moved away M The number of years to display nYears Write a function that calculates the size of the population after a year. To calculate the new population after one year, this function should use the formulaN = P + BP - DP + A - Mwhere N is the…6. A palindrome is a number or text phrase that reads the same backwards or forwards. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write a program that reads a 5 digit integer and determines whether it is a palindrome. Hint: One way to do this is to use division (/) and modulus (%) operators to separate the number into individual digits.3. Write a program to input the marks of five students and find and display the average marks.
- Example-6 A number of rivers (N), each river has three (pH) values. Write a program to read the (pH) values and find the average for each river, then print the state of water (neutral, acidic, alkaline). if pH =7 neutral pH > 7 alkaline pHQuestion 2: Write a program to read student ID and check whether it is odd/even number. Output a 4X4 badge if the student ID is even number and output a 3X3 badge if it is odd number. The badge is built up by the (height X width) of asterisks. (Use for-loop to draw the asterisks, do not hard-coded)Exercise 3 Modify the program that computes paint cost to allow the user to enter the number of doorways that do not have to be painted. Assume that each doorway is 14 square feet. Output the number of gallons needed and the cost of the job. *Help me solve this question with step-by-step solution. Thank you in advance.