Write a C program that will input 10 names of student. Each student name has 4 exam scores (0 – 100). Determine and display the average score of each student. Output also the name of students whose average score is between greater than or equal to 75.
Q: Write a C++ program that reads student scores, determines the best score, and assigns grades using…
A: ALGORITHM:- 1. Take input for the number of student marks. 2. Create a marks array of that size. 3.…
Q: Write a C++ program, using function, to inputs a student's degree and returns "Excellent" if…
A: Cpp Code:- #include<iostream>using namespace std;int main(){ int i; float degree;…
Q: Write a c++ program that loop 4 times each time it prompts the user to enter a name of car and its…
A: Program plan:- 1. Include header file. 2. Using the namespace function. 3. Define the main function.…
Q: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A: Note- Your output is wrong f=(9/5)*20+32 = 68 is the correct answer and you are showing 55 which is…
Q: Use C++ Write a program with total change amount as an integer input, and output the change using…
A: #include <iostream>#include <vector>#include <sstream>using namespace std; void…
Q: Write a program c++ to calculate the value of purchases of a specific product. The value of one…
A: Given: Write a program c++ to calculate the value of purchases of a specific product. The value of…
Q: Write a C++ program that reads the information from the user to enter the name of the candidate, the…
A: Include the required headers. Declare the main function. Declare all the required variables. Prompt…
Q: Write a C++ program, using function, to inputs a student's average and returns 4 if student's…
A: In the solution of given problem, the else-if ladder statement has been used to test the multiple…
Q: Write a C++ program that outputs the year's day number given a date in the format month-day-year.…
A: Write a C++ program that outputs the year's day number given a date in the format month-day-year....
Q: Write a C++ program that allows the user to enter the last names of five candidates in a local…
A: Introduction of the Program: The C++ program takes 5 candidates names and votes from the user and…
Q: Write a c++ program that loop 4 times. Each time it prompts the user to enter a name of a car and…
A: Objective: This program reads the name and price of four cars and displays the name of the cars with…
Q: Write a C++ program that continues reading an instructor marks until he inputs 999. Your program…
A: Algorithm: Start Read marks in a vector Initialize first element of vector as max and min Iterate…
Q: Write a C program that will input 10 names of students. Each student name has 4 exam scores (0 –…
A: GIVEN: Write a C program that will input 10 names of students. Each student name has 4 exam scores…
Q: Write a C++ program that computes the rental fees of N cars; N is the first input by the user. For…
A: The problem is based on the basics of C++ programming language.
Q: Write a C++ program that print the symbol shown in column two with any letter of number that the…
A: In coding, loops are used to execute a block of statements many numbers of times. In loops, the…
Q: Q3) Write a C++ program to get the gender and haemoglobin test result from an adult patient, and…
A: The answer is ...
Q: Write a C Program to enter the details of 20 Food Items like Dish Name, Dish Price, Dish Discount on…
A: Code: #include <stdio.h> int main() { //Declare variables char dish_name[20][30];…
Q: CREATE A C++ PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZEN IF YES, THEN GIVE 20% OFF…
A: #include <iostream>#include <string>#include <string> using namespace std; int…
Q: Write a C++ program, using function, that reads two integers (feet and inches) representing…
A: C++ program for above : #include<iostream> using namespace std; //function to convert into…
Q: Write a C++ program to input the number of slices of pizza a customer would like to buy and output…
A: Algorithm: Start Read no.of slices ordered,n If n is 8, print cost as 200 Else if n<8 and…
Q: Write a C program hoursToDays.c that will convert a number of hours to days and hours the time is…
A: As per the requirement program is developed. Algorithm: Step 1: Write the main method Step 2: Define…
Q: Q1 / Write a C ++ program to read the name, the age, the phone number of a person, and print each…
A: The soltuion contains use of basic input output operations of c++ language.
Q: 3. Write a complete C program for a restaurant that takes the net profit of each day for 4 weeks…
A: Using procedural approach. Using two dimensional array to store daily salary.
Q: From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then calculate…
A: Input Code in C++ for the given condition :- #include <iostream>…
Q: Write an algorithm, draw a flowchart, and write a C program that calculates a customer water bill.…
A: #Algorithm for calculating the customer water bill. STEPS:- 1)Start. 2)Define the minimum pay value.…
Q: write a c++ program, Ask user to enter first name, last name,and city and then print the. each…
A: Since no programming language is mentioned, I am using python. As per the given question, we need to…
Q: Write a C++ program that reads the information from the user to enter the name of the candidate, the…
A: Write a program for election voting system. C++ code :- #include <iostream> using namespace…
Q: Write a c++ program to read 20 different numbers and find the maximum number among them? then if it…
A: Algorithm: Start Read 20 numbers in an array Take first element in the array as max Iterate…
Q: Q3) Write a C++ program to get the gender and haemoglobin test result from an adult patient, and…
A: Program Code: #include<iostream>#include<string.h>using namespace std;main(){ char…
Q: Write a C program that asks the user to choose 1 for squared value and 2 for cubed value then ask…
A: #include <stdio.h>int main(){ //prompting input printf("Enter 1) for squared value and…
Q: Exercise 3: Write a C++ program that receives in the radius of a circle as input and generate the…
A: #include <iostream>using namespace std; int main(){ float r, d = 0, c = 0, a = 0; cout…
Q: Write a C++ program that computes and display the final grade of the student based on the three…
A: #include<iostream> using namespace std; int main(){ int percentage; cin >>…
Q: Write a C program to take input the BMI of the user and print the grade of the user in the output.…
A: logic:- read bmi if(bmi<18.5)display "Underweight";else if(bmi>=18.5 &&…
Q: Write a C++ program that asks the user to enter a month (1 for January, 2 for February, etc.) and…
A: Given: Write a C++ program that asks the user to enter a month (1 for January, 2 for February, etc.)…
Q: Write a C++ program that prompts the user to input three (3) integers: MM, DD, and YYYY. For…
A: PROGRAM EXPLANATION: Include the header file. Define a function to find the leap year. The logic…
Q: Write a C++ program to convert a given number into hours and minutes. Separate the number of hours…
A: Here I have taken input from the user and stored it into a variable. Next, I have divided the…
Q: Write a C++ program that given a specific amount of cents, it calculates the number of quarters,…
A: C++ code is given below
Q: Write a C program to display the Chinese Zodiac Animals for given year in which you were born.
A: Answer the above program are as follows:
Q: Write a C program to read 3 real numbers, then find their sum and display the result. After that,…
A: #include<stdio.h>int main(){ // declare variable float num1, num2, num3; float sum; //…
Q: Write a c program that display the water invoice price on the screen as follows, according to the…
A: Below is the required code in C language. Program Approach: Include necessary header files to get a…
Q: From the given figure, write a program in C++ base Q3: LANGUAGE to read the height of cylinder then…
A: Introduction of Program: The C++ program takes height, radius, and the number of cylinders from the…
Q: Write a program in c++ to read the radian of a circle, check if it is bigger than zero, and if it is…
A: Required: Write a program in c++ to read the radian of a circle, check if it is bigger than zero,…
Q: write a program in c++ Type equal to 'G', If classification is equal to 5 then set the character…
A: #include <iostream> using namespace std; int main(){ int classification; cout <<…
Q: Write a complete C++ program to have a user enter a temperature and then determine If water would…
A: check three conditions: - if userInput >212 display “greater than boiling point” else if…
Q: Write a program that computes the rent in five years and the total rent for one year starting five…
A: Input Rent for a month and Calculate Rent for 5 years and also display rent per year
Q: Write a C program that calculates the Total Money to be paid by a customer of a supermarket if…
A: function main() Start Declare quantity, unitPrice, total Read quantity, unitPrice total = quantity…
Q: Exercise 4: Write a C++ program that reads all the sides of triangle and prints whether the triangle…
A: Step 1 : Declare three variables int a,b,c; Step 2 : ask user to enter two shortest side and store…
Q: Write a C++ program that reads student scores, determines the best score, and assigns grades using…
A: #include <iostream> using namespace std; char getGrade(int score, int best){ char…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.(Numerical analysis) a. The following is an approximate conversion formula for converting Fahrenheit to Celsius temperatures: Celsius=(Fahrenheit30)/2 Using this formula, and starting with a Fahrenheit temperature of 0 degrees, write a C++ program that determines when the approximate equivalent Celsius temperature differs from the exact equivalent value by more than 4 degrees. (Hint: Use a while loop that terminates when the difference between approximate and exact Celsius equivalents exceeds 4 degrees.) b. Using the approximate Celsius conversion formula given in Exercise 8a, write a C++ program that produces a table of Fahrenheit temperatures, exact Celsius equivalent temperatures, approximate Celsius equivalent temperatures, and the difference between the exact and approximate equivalent Celsius values. The table should begin at 0 degrees Fahrenheit, use 2-degree Fahrenheit increments, and terminate when the difference between exact and approximate values is more than 4 degrees.(Conversion) a. Write a C++ program to convert meters to feet. The program should request the starting meter value, the number of conversions to be made, and the increment between metric values. The display should have appropriate headings and list the meters and the corresponding feet value. If the number of iterations is greater than 10, have your program substitute a default increment of 10. Use the relationship that 1 meter = 3.281 feet. b. Run the program written in Exercise 6a on a computer. Verify that your program begins at the correct starting meter value and contains the exact number of conversions specified in your input data. c. Modify the program written in Exercise 6a to request the starting meter value, the ending meter value, and the increment. Instead of the condition checking for a fixed count, the condition checks for the ending meter value. If the number of iterations is greater than 20, have your program substitute a default increment of (ending value - starting value) / 19.
- (Computation) Among other applications, Pascal’s triangle (see Figure 7.22) provides a means of determining the number of possible combinations of n things taken r at a time. For example, the number of possible combinations of five people (n = 5) taken two at a time (r=2)is10. Each row of the triangle begins and ends with 1. Every other element in a row is the sum of the element directly above it with the element to the left of the one above it. That is, element[n][r]=element[n1][r]+element[n1][r1] Using this information, write and test a C++ program to create the first 11 rows of a twodimensional array representing Pascal’s triangle. For any given value of n less than 11 and r less than or equal to n, the program should display the correct element. Use your program to determine in how many ways a committee of 8 can be selected from a group of 10 people(Thermodynamics) a. Design, write, compile, and run a program that determines the work,W, performed by a piston engine providing a force of 1000 N over a distance of 15 centimeters. The following formula is used to determine the work performed: W=Fd F is the force provided by the piston in Newtons. d is the distance the piston moves in meters. b. Manually check the values computed by your program. After verifying that your program is working correctly, modify it to determine the work performed by six pistons, each providing a force of 1500 N over a distance of 20 centimeters.Numerical analysis) Given a number, n, and an approximation for its square root, a closer approximation of the actual square root can be found by using this formula: newapproximation=(n/previousapproximation)+previousapproximation2 Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation of the square root that’s accurate to 0.00001. (Hint: Stop the loop when the difference between the two approximations is less than 0.00001.)
- (Civil eng.) Write a C++ program to calculate and display the maximum bending moment, M, of a beam that’s supported on both ends (see Figure 3.8). The formula is M=XW(LX)/L, where X is the distance from the end of the beam that a weight, W, is placed, and L is the beam’s length. You program should produce this display: The maximum bending moment is xxxx.xxxx The xxxx.xxxx denotes placing the calculated value in a field wide enough for four places to the right and left of the decimal point. For your program, assign the values1.2,1.3,and11.2toX,W,andL.(Drawing Patterns with Nested for Loops) Write a c++ program that uses for statements to print the following patterns separately, one below the other. Use for loops to generate the patterns. All asterisks (*) should be printed by a single statement of the form cout « '*'; (this causes the asterisks to print side by side). [Hint: The last two patterns require that each line begin with an appropriate number of blanks. Extra credit: Combine your code from the four separate problems into a single program that prints all four patterns side by side by making clever use of nested for loops.Description This lab assignment is loosely based on the End-of-Chapter Exercises Engineering P4.25. Review the instructions there for helpful information, such as the formula for radioactive decay. The example provided is Technetium-99 with a half-life of 6 hours. Your program should allow the user to enter the name of the radioisotope and the half-life (in hours). Write a program in c++ that will 1. a) Greet the user by name. Provide the user with a brief description of the program. 2. b) Invite the user to try the program. Allow user to choose. 3. c) Ask the user for the name of the radioisotope and the half-life (in hours). 4. d) Based on the given formula for radioactive decay in the text, print out a table of time and remaining relative level of radioactivity. (You may choose the increment for time. Provide an explanation of your choice.) At hour 0, the relative amount is 1.000. Ask the user for the length of time, in hours, since exposure. The table should have rows for as many…
- Correct and detailed answer will be Upvoted else downvoted Write a C program to check whether the number is EVEN or ODD, without using any arithmetic or relational operators.Control structuresThe Fibonacci sequence is:0, 1, 1, 2, 3, 5, 8, 13, …The first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms. That is:Fib[n] = Fib[n - 1] + Fib[n - 2].Using this information, write a C/C++ program that calculates the nth number in a Fibonacci sequence, where the user enters n into the program interactively. For example, if n=6, the program should display the value 5. See the example output in Figure 2.1.TOPIC: COMPUTATION! In the Don Venustiano elementary school, teacher Pedro needs to deliver the grades by subject and the final grade determines whether the student passed or not, the pass of 7 subjects are mathematics, Spanish, history, geography, natural sciences. - Analyze the case, determine the inputs, processes and output, the type of variables to use and in what language would you recommend doing it - Make the algorithm diagram and Develop the flowchart- Create pseudocode, and then code in C or C++