Write a program calculate the average for 20 student that have these information. using structure dogrood otogo Yoar
Q: One Computer Science program uses the following rules tor CS course placement: 1. if the CS AP score…
A: Objective: This program determines CS placement for students depending on certain given rules. The…
Q: Write a program to ask the user to: 1. Enter the number of courses taken. 2. Enter the total mark…
A: Program Approach: Create an integer array to store marks entered by user. Create variable n to…
Q: Air Pacific Limited, Fiji's international airline, operates international and domestic services…
A:
Q: e employee worked (up to 40 hours) times the hourly rate. The program is to compute an overtime pay…
A: Q. METHODOLOGY A bookstore owner wants you to write a program that calculates the gross pay of an…
Q: MATLAB QUESTION - As of 2018, the population of "A city" is 646 thousand and the population of "B…
A: %Data givencity_A = 646000;city_B = 269000;year = 2018;A_dec = 7.1;B_inc = 12.9; %checking passing…
Q: use visual basic Depreciation to a Salvage Value of 0 . For tax purposes an item may be depreciated…
A: Design
Q: Rent A Van wants a program that calculates the total cost of renting a van. Customers pay a base fee…
A: Answer is given below .
Q: PROGRAMMING PROBLEM The inventory of a shoe store lists shoes by stock number. With each stock…
A: The inventory of a shoe store lists shoes by stock number. With each stock number, there is…
Q: Decision Structure Problem For this assignment you will do 2 things: Solve the problem with…
A: Actually, pseudocode is an artificial and informal language that helps programmers develop…
Q: b) Write a C++ program to initialise an integer variable with value -10 without using assignment…
A: Write a program in C++ language to initialise an integer variable with value -10 without using…
Q: Create a program that lists all prime numbers from 1 to N. The input number N should be an integer…
A: The program is written in java. Here I pass an if-else statement for checking the number greater…
Q: Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
A: Given : Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
Q: Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you…
A: Python used to answer this question
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: Periodic compounding The total accumulated value, including the principal sum P, is given by the…
A: The Python code is given below with output screenshot
Q: In a chemistry class there are ten students and each the students has taken 5 tests.The total mark…
A: #include <iostream>using namespace std;/* Student class*/class Student{ public:…
Q: Solve the problem with pseudocode (FIRST) Code it in Python A person is eligible to be a US senator…
A: Take the age from the user Take the number of years of citizenship from the user If the person's age…
Q: Tutorial 3: A simple force balance on a spherical particle reaching terminal velocity in a fluid is…
A: Input : Particle density Diameter of particle Other constants Output : Terminal velocity
Q: Task using C language Two spacecrafts are traveling at different speeds from Earth to Mars. While…
A: Dear Student, The source code, implementation and expected output of your question is given below -
Q: C PROGRAM / C LANGUAGE Make a C program language. Input the number of players then input the number…
A: Algorithm: Start Read number of players n Initialize i=1 Read goal score by player i i.e m…
Q: Computer Science Question LabThere is only one list of N ingredients in the menu. Every ingredient…
A: Below is the detailed python code for the given problem statement:
Q: Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south,…
A: Start the program.Read an integer input from the user and store it in the variable n.Check the…
Q: A business law class of 25 students takes a midterm exam that has 100 true- or-false questions. The…
A: We need four arrays in this problem. The array KOUNT stores the number of times a grade is achieved…
Q: PYTHON PROGRAMMING ONLY PLEASE Assuming the ocean’s level is currently rising at about 1.6…
A: The Python program addresses the topic of predicting and visualizing the rise in ocean levels over a…
Q: PYTHON PROGRAMMING Write a program that perform the following tasks: a) Request a description of…
A: # Function to calculate depreciation amount with straight-line method of depreciation def…
Q: Programing C The program will ask for the information - Of the professor: Professor's ID Professor's…
A: Programming Instructions: Prompt the user to enter the ID of the professor and store it in an int…
Q: SOLVE IN C# Canada Government has announced 250 immigration visa lottery for third world countries.…
A: Lets analyze what information is provided to us and what is expected out of it. Programming language…
![Write a program calculate the average for 20 student that have
these information. using structure
averag sum
mati
St_na stage Year dep
study
degrees
e
mes
O.R.
Prog.
Arb
Math
on
65.66 65.66 65.66 65.66 65.66 ali
1
2020- 1
2021
65.66 65.66 65.66 65.66 65.66 ahme 1
2020-
2021
1
d.
65.66 65.66 65.66 65.66 65.66 abba
1
2020- 1
2021](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbe0fbfd4-898b-4971-8c03-3443bc1240be%2Fab24e306-9dad-4c30-a916-b810df425bd2%2Fg2sku2_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- haskell is the programming languagewrite a code using binary tree linked list data structures. In quiz game, questions are chosen in such a a way that they cover all fields of a typical quiz contest. The user’s general knowledge is tested with quiz questions regarding science, technology, movies, sports, general health, geography and many more. Quiz Game Project Introduction: Functions of projects and below is some function used in project:- Edit score--adds the prize won to the previous one upon giving the right answer to a question Help-- menu with game summary and rules Show record--shows the highest cash prize won by a particular user Show score--to view the highest score Reset score--to reset the highest score/ default In quiz game project, we can store the user’s name, view the highest score secured by a user, and even reset the score. The game ends when the user’s cash prize piles up to…In C++, write a program that outputs the nodes of a graph in a breadth first traversal. Data File: Please use this data file. Text to copy: 100 1 3 -9991 4 -9992 5 -9993 2 -9994 -9995 7 8 -9996 4 7 -9997 -9998 -9999 7 8 -999 Diagram: Also, please take a look at the attached figure on and calculate the weights for the following edges: 0 -> 1 -> 4 0 -> 3 -> 2 -> 5 -> 7 0 -> 3 -> 2 -> 5 -> 8 6 -> 4 6 -> 7 9 -> 7 9 -> 8 To calculates these weights, please assume the following data: 0 -> 1 = 1 0 -> 3 = 2 1 -> 4 = 3 3 -> 2 = 4 2 -> 5 = 5 5 -> 7 = 6 5 -> 8 = 7 6 -> 4 = 8 6 -> 7 = 9 9 -> 7 = 10 9 -> 8 = 11
- In C++, write a program that outputs the nodes of a graph in a breadth first traversal. Data File: Please use this data file. Text to copy: 100 1 3 -9991 4 -9992 5 -9993 2 -9994 -9995 7 8 -9996 4 7 -9997 -9998 -9999 7 8 -999 Diagram: Also, please take a look at figure 20-6 on page 1414 and calculate the weights for the following edges: 0 -> 1 -> 4 0 -> 3 -> 2 -> 5 -> 7 0 -> 3 -> 2 -> 5 -> 8 6 -> 4 6 -> 7 9 -> 7 9 -> 8 To calculates these weights, please assume the following data: 0 -> 1 = 1 0 -> 3 = 2 1 -> 4 = 3 3 -> 2 = 4 2 -> 5 = 5 5 -> 7 = 6 5 -> 8 = 7 6 -> 4 = 8 6 -> 7 = 9 9 -> 7 = 10 9 -> 8 = 11Write a function that is given a list of int id's as a parameter, the id of the person looked for, and the length of the array. Use the data: Bob 123456 89 Suki 234567 77 Felix 345678 55 Julie 456789 67 The function searches the id array and returns the index of the id or -1 if the id does not exist. The main program outputs the name of the person at that index or a message that the person was not found. The name array (up to length number of students) and id array are declared in function main. Show all the declarations and the actual call. A sample run may look like the following: int SearchPerson(const int id[], int length,int who); Enter the id of the person 345678 That person is: Felix with a mark of 55 Enter the id of the person 444444 That person does not exist.Maze Runner Function - Implementation of this function is done in a1_partd.py We describe a maze as having row x col cells. For example if row was 3, and col was 4, then we would have a grid of cells as follows. We describe a wall by the two cell numbers the wall separates. If every single wall existed, there would be (row-1)(col) + (col-1)(row) walls. 0 | 1 | 2 | 3 4 | 5 | 6 | 7 8 | 9 | 10 | 11 A Maze class (which you do not need to implement) describes a maze as mentioned above. This class is defined in maze.py. It has methods that you can use to travel through the maze (i.e. figure out where you are, find a neighbour cell etc.) use a recursive maze runner function: def find_path(maze, from_cell, to_cell); The find_path function will find a path from cell number from_cell to cell number to_cell and will return it as a list containing all the cell numbers along the path, from the from_cell to the to_cell. You are allowed to use this function as a wrapper to a recursive function that…
- C++Write c++ code Create a BST where each node stores the rollNumber and marks of a student. Your task is toprovide the implementation of following methods.constructorinsertRecord() functionupdateRecord() functioncountOfPassedStudents()showData() functioninside main() function, create an object of BST class.Insert the following data and create the BST according to the marks.● 19L-1941, 71 should be the root node● 19L-1942, 62● 19L-1943, 67● 19L-1944, 54● 19L-1945, 58● 19L-1946, 45● 19L-1947, 29● 19L-1948, 76● 19L-1949, 81● 19L-1950, 92Update the data of following record● Marks of 19L-1944 are 54. Update the marks to 47● Marks of 19L-1949 are 81. Update the marks to 85Call the countOfPassedStudents(). You can either display the count in the same function orreturn the value to main function.Call the showData() function to display all the records of BST in preorder traversal.Note: It is not mandatory to create a template classDesign and implement a service that simulates PHP loops. Each of the three loop variants should be encapsulated in an object. The service can be controlled via a parameter and execute three different simulations. The result is returned as JSON. The input is an array consisting of the letters $characters = [A-Z]. -The For loop should store all even letters in an array.-The Foreach loop simulation is to create a backward sorted array by For loop, i.e. [Z-A] .-The While loop should write all characters into an array until the desired character is found. Interface:-GET Parameter String: loopType ( possible values: REVERSE, EVEN, UNTIL )-GET parameter String: until (up to which character) Output:JSON Object: {loopName: <string>, result: <array> }
- Write a complete C++ program for a Class Record System. Create 6one-dimensional arrays, namely : SN[50] for Student Number,Q1[50], Q2[50], PE[50], FE[50] , and AVE[50]. The elements ofarrays SN, Q1, Q2, PE and FE are to be entered from thekeyboard. The elements of array AVE are to be computed asfollows: AVE = (Q1 + Q2 + 2PE + 2FE)/6After data entry, print the contents of the 6 arrays in tabulatedformat. Print first the header for the Table as:“SN Q1 Q2 PE FE AVE”. Print the student number data(SN array) on the 1st column, and the AVE data(AVE array) onthe last column of the Table. Print also the average of all theaverage grades and the median of the average grades below theTable. Print a 2nd Table below the 1st Table with the AVE datasorted in descending order using Selection Sort Method.Write a function that is given a list of int id’s as a parameter, the id of the person looked for, and the length of the array. Use the data: Bob 123456 89 Suki 234567 77 Felix 345678 55 Julie 456789 67 The function searches the id array and returns the index of the id or –1 if the id does not exist. The main program outputs the name of the person at that index or a message that the person was not found. The name array (up to length number of students) and id array are declared in function main. Show all the declarations and the actual call. A sample run may look like the following: int SearchPerson(const int id[], int length,int who); Enter the id of the person 345678 That person is: Felix with a mark of 55 Enter the id of the person 444444 That person does not exist. in C++ please use basic coding I'm not…C++ 2. A theater seating chart is implemented as a two-dimensional array of ticket prices,Like this10 10 10 10 10 10 10 10 10 1010 10 10 10 10 10 10 10 10 1010 10 10 10 10 10 10 10 10 1010 10 20 20 20 20 20 20 10 1010 10 20 20 20 20 20 20 10 1010 10 20 20 20 20 20 20 10 1020 20 30 30 40 40 30 30 20 2020 30 30 40 50 50 40 30 30 2030 40 50 50 50 50 50 50 40 30 Write a program that prompts users to pick either a seat or price. Mark sold seats by changing theprice to 0. When a user specifies a seat, make sure it is available. When a user specifies a price,find any seat with that price. 3. A supermarket awards coupons depending on how much a customer spends on groceries.For example, if you spend Ghc50, you will get a coupon worth eight percent of that amount.The following table shows the percent used to calculate the coupon awarded for differentamounts spent. Write a program that calculates and prints the value of the coupon a person can receive based on groceries purchased.Here is a sample…
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)