Questions) Q1 / write a program to find the area of a triangle with a suitable design.
Q: (Algebra: solve 2 * 2 linear equations) A linear equation can be solved using Cramer’s rule given in…
A: code:
Q: Q8: - Use (If – Then -. Endlf) statement to write a visual basic program to read an integer number…
A: Use (If - Then - Endif) statement to write a visual basic program to read an integer number and…
Q: Celsius to Fahrenheit: Write a program that converts Celsius temperatures to Fahrenheit…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for fixed()…
Q: (Geometry: area of a regular polygon) A regular polygon is an n-sided polygon in which all sides are…
A: import java.util.Scanner; public class AreaOfAregularPolygon4_5 { public static void main…
Q: (Area and perimeter of a circle) Write a program that displays the area and perimeterof a circle…
A: Program code: //Class definition Circle public class Circle { //Main function public static void…
Q: Description Write a program that asks the user to enter an amount of money in the format of dollars…
A: Program: # Asking for a dollar and cent amount from the user # Prompting a message to enter a amount…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: (Average speed in miles) Assume that a runner runs 15 kilometers in 50 minutesand 30 seconds. Write…
A: code: //class definition public class Main { //main method public static void main(String[] args)…
Q: (Geometry: great circle distance) The great circle distance is the distance between two points on…
A: The Java program is written where it takes the latitude and longitude degrees from the user for the…
Q: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the user to…
A: Given: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the…
Q: Write a program in Visual Basic Design a form and write a code to find the average value of N…
A: VB.Net is a simple, modern, object-oriented computer programming language developed by Microsoft to…
Q: Q8: - Use (If – Then – Endlf) statement to write a visual basic program to read an integer number…
A: In Visual Basic, an If – Then - Else statement allows to take decision depends on the given test…
Q: (Cost of driving) Write a program that prompts the user to enter the distance to drive, the fuel…
A: Since, the programming language is not mentioned, below is the complete c++ program:
Q: Summary During winter when it is very cold, typically, everyone would like to know the windchill…
A: Program code: //include required header files #include <iostream> #include <cmath>…
Q: C++ One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to…
A: PROGRAM: //Header file #include <iostream> //Using namespace using namespace std;…
Q: The great circle distance is the distance between two points on the surface of a sphere. Let (x1,…
A: Usinh Haversine Formula d = radius * arccos(sin(x 1) * sin(x 2) + cos(x 1) * cos(x 2) * cos(y1 -…
Q: Create Flowchart from the given problem b. create a program that will display all the numbers…
A: A flowchart to display all the numbers divisible by 5 from 1-100 is given below.
Q: PART A: Selection Statement You are required to write a program to compute the area of square (area…
A:
Q: The following formula gives the distance between two points, (x1, y1) and (x2, y2) in the Cartesian…
A: A required program is as follows, //Include header files #include<iostream>…
Q: Q1: Write a VB program (design a form and write a code) allow you to enter 5 numbers, and then find…
A: Solution:-- 1)Given in the question is to provide the code in Visual basic programming…
Q: Write a program in (Visual Basic 6.0) Design a form and write a code to find the average value of N…
A: To execute a program written in high level language must be translated into machine understandable…
Q: Program 4) Body Mass Index (BMI) is a measure of health based on weight. It can be calculated by…
A: As the language is not specified answer written in c++
Q: Marks) Write a program to enter three scores and calculate the average for them, then display the…
A: As no programming language is mentioned, solving this in c++. #include <iostream> using…
Q: QI: b- write a visual basic program that uses a procedure to find how many numbers between N numbers…
A: Public Class Form1 Private Sub InputBoxButton_Click(sender As System.Object, e As…
Q: Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight…
A: Below I have provided Java Programming. Also, I have attached the screenshot of the code and output…
Q: Example: the screen appears as follows: Enter 3 characters (A-Z)? ΑΗΜED No. of characters are= 5
A: #include <iostream> using namespace std;int main(){ // to store character, string str;…
Q: Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units:…
A: Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: Complete the program to read four values from input and store the values in variables first_name,…
A: Note: The code is written in python language as the language is not mentioned. Given: To write a…
Q: 2. *Find the lowest score* Write a program that prompts the user to enter the number of students and…
A: Dear Student, As no programming language is mentioned I am assuming it to be c++.
Q: (Find the two lowest scores) Write a program of C++ that prompts the user to enter the number of…
A: Actually, c++ is a powerful general purpose language.
Q: 5. (Algebra: solve 2 x 2 linear equations) You can use Cramer's rule to solve the following 2 X 2…
A: Input the numbers from the user, split the number and convert them into float. unzip the list item…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: Program: import java.util.Scanner; public class Main { // months name[] // 0 index is empty so…
Q: Finish the following c++ code by following the instructions Your program is to work as follows:…
A: A C++ program for the given criteria is as follows, #include<iostream> using namespace std;…
Q: v Details Ask the user to enter a product description as a sentence. If the user enters "end" or "…
A:
Q: (Area and perimeter of a rectangle) Write a program that displays the area and perimeter of a…
A: Algorithm: The algorithm to find the area and perimeter of the rectangle is: Start w=4.5 h=7.9…
Q: Two points in a plane are specified using the coordinates (x1,y1) and(x2,y2). Write a program that…
A: We need to find the slope of a line through the two point which is non vertical and that point…
Q: C-Program for blood pressure. The program (screenshot below) compares the systolic & diastolic…
A: //BloodPressure.h#ifndef BLOODPRESSURE_H#define BLOODPRESSURE_H#include <string>using…
Q: (C++ OOP) We have a house with 3 rooms. We need the user to enter 1 integer as the window number, 2…
A: Program Plan: Create a class house. Declared a private variable. Create a constructor. Create…
Q: Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can…
A: Source Code: #include<iostream>using namespace std; int main(){ cout<<"Enter…
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a program that displays…
A: #include<iostream> using namespace std; int main(){ int distanceTravelledInKMS=15;…
Q: circles) Write a program that prompts the user to enter the center coordinates and radii of two…
A: Here is the Java program according to the problem given: import java.util.Scanner; public class…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: import java.util.Scanner;public class Exercise7 { public static void main(String[] strings) {…
Q: LAB ASSIGNMENTS, CONT. avg rainfall.py: Write a program that collects rainfall data and calculates…
A: Answer: Python Source Code: total_sum = 0years = int(input("How many years are in your rainfall…
Q: 1-Write a program that will ask the user to enter an integer number and display the (even and…
A: here in this question we have asked to write a program which take an input integer and based on this…
Q: --s) write a program that asks the user to enter the temperature grades for the last ten days with…
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner…
Q: (Table of Squares and Cubes) Using only the techniques you learned in this chapter, write a program…
A: Program code: #include <stdio.h> int main(void) { int num=0;…
Q: (Slope of a line) Write a program that prompts the user to enter the coordinates of two points (x1,…
A: Here is the Python program: x1 = float(input("Enter the x-coordinate for point1: "))y1 =…
Q: (Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, yl),…
A: Given:
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Questions) Q1 / write a program to find the area of a triangle with a suitable design.
Q ۲ / Write a program to insert a student's name and two degrees for him in the
SSH / write a program that does the following: When you press the command key, the following message box appears: Action
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- (Geometry: great circle distance) The great circle distance is the distance between two points on the surface of a sphere. Let (x1, y1) and (x2, y2) be the geographi- cal latitude and longitude of two points. The great circle distance between the two points can be computed using the following formula: d = radius * arccos(sin(x1) * sin(x2) + cos(x1) * cos(x2) * cos(y1 - y2)) Write a program that prompts the user to enter the latitude and longitude of two points on the earth in degrees and displays its great circle distance. The average earth radius is 6,378.1 km. The latitude and longitude degrees in the formula are for north and west. Use negative to indicate south and east degrees.(Algebra: solve 2 * 2 linear equations) A linear equation can be solved using Cramer’s rule given in Programming Exercise 1.13. Write a program that prompts the user to enter a, b, c, d, e, and f and displays the result. If ad - bc is 0, report that “The equation has no solution.”(Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.
- Q4: (Find the two lowest scores) Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the lowest score and the student with the second-lowest score.C-Program for blood pressure. The program (screenshot below) compares the systolic & diastolic measurements to output whether the blood is (low, ideal, pre-high, or high) The code I wrote is able to successfully determine the blood pressure type as long as it lies within the same range. However, if it goes outside that range it prints an error. FOR EXAMPLE**** PLEASE READ*** If the user inputs their systolic variable as 100 and their systolic as 90, it will print an error. If the systolic & diastolic measurements are vastly different the program prints an error, if you could help resolve this issue it would be greatly appreciated.4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }
- CSharp program that prompts the user for the volume and height of the cylinder shown below, in cubic centimeters. Based on the user input, your will find and display the diameter of the cylinder, in centimeters, and the side of the square inscribed inside the circle, in centimeters.(Area and perimeter of a circle) Write a program that displays the area and perimeterof a circle that has a radius of 6.5 using the following formula:π = 3.14159perimeter = 2 x radius x πarea = radius x radius x πCoin Converter Lab Description Write a program that asks the user to enter an amount of money in the format of dollars and remaining cents. The program should calculate and print the minimum number of coins (quarters, dimes, nickels and pennies) that are equivalent to the given amount.Hint: In order to find the minimum number of coins, first find the maximum number of quarters that fit in the given amount of money, then find the maximum number of dimes that fit in the remaining amount, and so on. File Name coins.py Score There are five tests each worth 2 points For example, an execution should look like this:Please enter the amount of money to convert:# of dollars: 2# of cents: 37The coins are 9 quarters, 1 dimes, 0 nickels and 2 pennies python labs
- Summary During winter when it is very cold, typically, everyone would like to know the windchill factor, especially, before going out. Meteorologists use the following formula to compute the windchill factor, W: W = 35.74 + 0.6215 × T - 35.75 × V0.16 + 0.4275 × T × V0.16 where V is the wind speed in miles per hour and T is the temperature in degrees Fahrenheit. Instructions Write a program that prompts the user to input the wind speed in miles per hour, and the temperature in degrees Fahrenheit. The program then outputs the current temperature and the windchill factor. Your program must contain at least two functions: one to get the user input and the other to determine the windchill factor.circles) Write a program that prompts the user to enter the center coordinates and radii of two circles and determines whether the second circle is inside the first or overlaps with the first, as shown in Figure 4.11. (Hint: circle2 is inside circle1 if the distance between the two centers <= | r1 - r2| and circle2 overlaps circle1 if the distance between the two centers <= r1 + r2.(Average speed in miles) Assume that a runner runs 15 kilometers in 50 minutesand 30 seconds. Write a program that displays the average speed in miles per hour.(Note that 1 mile is 1.6 kilometers.)