You will create a Grade Program that will calculate students’ weighted averages. You are going to have the user enter lab grades, test grades, and project grades. You will then display a grade report of each individual average along with their overall average and letter grade. 1. Ask the user to enter their lab grades. Call the averageGrade function that will allow the user to enter their grades and calculate their average. 2. averageGrade Function: This will pass the average back to the main function. You should NOT send any parameters to this function. You will be using a while loop, with a priming read and a sentinel value to end the loop. This means the user should be able to enter any number of grades that they want and exit the loop when they are done entering grades. When they exit the loop, compute the average (Make sure to desk check the average) Then vou will return the average hack
Q: Program 3 Write a C++ program that reads business card information from a file (you make up the nam...
A: Let's understand step by step : 1. Declare a string named text in which file sentences should be s...
Q: Create an HTML document with the following specifications: (a) Heading of the page should be and sho...
A: The HTML code is given in next step
Q: Decimal 5311 Code 0000 1 0001 0011 3 0100 4 0101 0111 1001 7 1011 8 1100 1101 10 11 12 13 14 15
A: We are going to convert the given decimal numbers from 10 to 15 in 5311 code.
Q: 2). 4o111.00) - (1111. 4), using 2's Com Plemut: Gre4 Gro
A: First, convert the gray code into binary form Second, subtract the two binary equivalents using 2’s ...
Q: -Problem -2 When you execute your program it should ask user to input any number then check if the n...
A: Note: Programming language is not mentioned, so writing code in C++ In this question, we are asked t...
Q: What is computer programming and how does it work
A: What is computer programming and how does it work?
Q: How to encode a TM in binary
A:
Q: DRAW ER diagram for the Scenario given below: In a country each CITIZEN is identified by CitizenCode...
A: ER diagram for the given scenario:- Identified strong entities:- Person Residentcard Service Attribu...
Q: The period of a pulse waveform measures four horizontal divisions on an oscilloscope. If the time ba...
A: Given: The period of a pulse waveform measures four horizontal divisions on an oscilloscope. If th...
Q: int x1=200; int y1=300; int z1, z2, 23, z4; int d1, d2, d3; _asm{ mov EAX, x1; 200 mov EBX, y1; 300 ...
A: (Answer):-
Q: public static void main(String[] args) Scanner in = new Scanner (System.in); // Step 2: Asking for a...
A: In this question , we have been asked to keep on checking until we get any positive integer. We are ...
Q: Lhe listen silent lentss lentis slents
A: Code: from collections import Counterou=[]sl=str(input("Enter strings separated by space with first ...
Q: Show why it's frequently required to expand and adapt components for reuse, using the example of a c...
A: Show why it's frequently required to expand and adapt components for reuse. Using the example. Take,...
Q: Which of the following is correct code (compiles correctly and has the correct effect) for doing the...
A: Ans: The following code that is correct code for the following task : "Take an ArrayList of any elem...
Q: Nhat is the definition of risk management? What is the best way to keep track of isks? Give some exa...
A: You do not mention risk management in terms of what so I am going to solve this question risk in ter...
Q: Please help urgent! Please show the algorithm clearly thanks
A: For 1A) the following algorithms are coded below to seperate even and odds at left and right places.
Q: For each of the following languages, give two strings that are members and two strings that are not ...
A:
Q: What does the following program print? 1 void *helper(void *arg) { 2 int *num = (int*) arg; 3 *num =...
A: According to the Question Below the solution:
Q: Explain what a "compensation action" is and why these activities may need to be included in workflow...
A: Let's see solution what's compensation action
Q: Write a program that asks a user to input the height of triangle and draw a triangle that has the fo...
A: I give the code in Java along with output and code screenshot
Q: Define computer environment in your own terms and describe THREE distinct kinds of computing environ...
A: Introduction Define computer environment; The term computer environment indicates to the condition ...
Q: Write a C++ program to add, subtract, mulitply and divide two fractions and display the result fract...
A: Note: The program result is in the fractional form not in the reduced/simplified form. If required k...
Q: 16. Exception Project This assignment assumes you have completed Programming Challenge 1 of Chapter ...
A: As i have read guidelines i can provide answer of only 1 part of questions in case of multiple Quest...
Q: Write a program that asks a user to input non-negative integers (numbers that are >=0) until the use...
A: I have provided C++ CODE along with CODE SCREENSHOT and 2- OUTPUT SCREENSHOTS----
Q: Develop a program to encrypt plain text using Bacon's Cipher. And show the output а
A: The Bacon alphabet may optionally be extended to encode all lower case characters individually and a...
Q: Give two reasons why various software-based systems may fail in the same way.
A: Give two reasons why various software-based systems may fail in the same way. in the following secti...
Q: C Address filtering. How you would bypass MAC address filteri
A: MAC Address filtering
Q: 2. Write a JAVASCRIPT program to find the number of iterations of the loop given below. for (let i=2...
A: Write a JAVASCRIPT program to find the number of iterations of the given loop. Given Loop: for(let i...
Q: Given the following binary number in 32-bit (single precision) IEEE-754 format, the decimal value cl...
A:
Q: In C programming language
A: the answer to the following question:-
Q: 9. Use a proof by contradiction to prove the following statement: If the integers 1,2,3,···,7,are p...
A:
Q: 2. Explain why kd-tree is used in Instance-Based Learning.
A: Given: We have to explain why kd-tree is used in Instance - based learning.
Q: Why is object-oriented programming getting so much press these days?
A: Introduction: OOP code is non-deterministic, which means that, unlike functional programming, we can...
Q: Your organisation wants to shift away from utilising desktop apps and instead use services to access...
A: Introduction: The following are some of the potential dangers:Failure of Security Scalability of Man...
Q: 3. Design and implement a recursive program to determine and print up to the Nth line of Pascal's Tr...
A: PROGRAM INTRODUCTION: Import the required libraries. Start the definition of the main function. Cre...
Q: Give two reasons why various software-based systems may fail in the same way.
A: Introduction: A computer system that uses software to allow components to communicate with one anoth...
Q: As a security professional would you allow the implementation of loT devices in the workplace?
A: IOT devices can be implemented in workplace but with security tools with IOT devices Use authorised ...
Q: Consider the non homogeneous ODE with a nonlinear term called b: dy + 2Aw + w²y (1 + by²) = fo sin w...
A: Matlab Code: clear; clc; close all; % Description: Solves forced damped motion using ode45 w = 3; ...
Q: What is the difference between refactoring and software reengineering?
A: Refactoring and software re-engineering difference are given below:- Software reengineering it is th...
Q: Write a Python program to take a string that contains a single pair of parenthesis, print the new st...
A: Write a Python program to take a string that contains a single pair of parenthesis, and print the ne...
Q: 1-How can the CPU recognize the device requesting an interrupt ? 2-Since different devices are likel...
A: The CPU has numerous interrupt lines, and if you need more than that, there's a "interrupt controlle...
Q: Write a program that reads from a student his/her name and his/her ID whic program should display th...
A: import java.util.Scanner;public class Main{ public static String getDay(int code){ // divide code b...
Q: How is prolification of mobile devices that are locally powerful, use apps instead of full-fledged a...
A: Apps' Proliferation on Mobile Devices: Mobile devices in today's technology employ applications tha...
Q: STACK 100Н CODE 1ον AX MOV BX, 00000 ADD AX, BX MOV BX, Ox3C
A: Below the assembly code
Q: How can I make a fact table with only one process?
A: Introduction: To create a Fact table, pick Create New from the 'Fact Tables' folder (or one of its s...
Q: 3. Write a single pseudocode statement that indicates each of the following: The following condition...
A: We are going to write a single statement to fulfill the given requirements.
Q: How can I make a fact table with only one process?
A: Introduction: Dimensional data should be used to slice and dice the data in a fact table. For instan...
Q: model-driven architectures, it is theoretically feasible to produce executable code from a high-leve...
A: Using model-driven architectures, it is theoretically feasible to produce executable code from a hig...
Q: Write a single pseudocode statement that indicates each of the following: a) Display the message "En...
A: First take the name as input. Print the name. Take the a,b,c as the variables take the input. Calcul...
Q: What are the ettiquette inside the arnis room?
A:
I'm currently struggling on developing this program in c++.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Create a function named fnTuition that calculates the tuition for a student. This function accepts one parameter, the student ID, and it calls the fnStudentUnits function that you created in task 2. The tuition value for the student calculated according to the following pseudocode: if (student does not exist) or (student units = 0) tuition = 0 else if (student units >= 9) tuition = (full time cost) + (student units) * (per unit cost) else tuition = (part time cost) + (student units) * (per unit cost) Retrieve values of FullTimeCost, PartTimeCost, and PerUnitCost from table Tuition. If there is no student with the ID passed to the function, the function should return -1. Code two tests: 1) a student who has < 9 student units, and 2) for a student who has >= 9 student units. For each test, display StudentID and the result returned by the function. Also, run supportive SELECT query or queries that prove the results to be correct.Write a program that asks the user to enter five test scores. The program should display letter grade for each score and the average test score. Write the following functions in the program: calcAverage—This function should accept five test scores as arguments and return the average of the scores. determineGrade—This function should accept a test score as an argument and return a letter grade for the score based on the following grading scale: Score Letter Grade 90–100 A 80–89 B 70–79 C 60–69 D Below 60 F javascriptProject 5 Please write a program that computes the average of 3 exam scores of 3 students. It first asks the user three exam scores for each student and then compute the average of them. The program should have the following functions. • int getTestScore(): This function is called by main function. It asks the user to enter the score of the exam. Once it gets a user input data, the function returns it to the main function. Input Validation: Please check if the entered score is between 0 and 100 inclusive (considered valid). If not, repeat asking to enter a valid score. • double calAverage(int, int, int, int, int): This function is called by main function. It calculates the average of 3 exam scores passed from main function in int data type. Once the function calculates the average, it returns it to main function in double data type. • void display(string, double): This function is called by main function and displays the student’s name and average exam score. The arguments are…
- You are part of a team writing a system which keeps track of envelopes people sendthrough the postal system. The process begins when a person gives the envelope to apost office, at which point a barcode (containing all necessary information) is generated,and the envelope is labelled. Then, it is possible to keep track of the envelope betweendifferent cities/offices. The software has the following functions:i. generateBarcode()ii. createDatabaseRecord()iii. updateDatabaseRecord()iv. decodeBarcodeAndUpdateEnvelopPosition()v. getEnvelopPosition() (a) State and describe TWO types of beneficial module couplings that may be present inthis piece of software. (b) For each function, pick an example of possible module cohesion and explain the typeof that module cohesion. (c) We know that function updateDatabaseRecord() alters the actions of functioncreateDatabaseRecord(). State and describe the type of module coupling that exists inthe code containing these two functions.Carefully read the main() function below and then write the following three functions: Name: timeInput Job: function will readthe total elapsed time for an event in seconds from user and return it to the main. Name: HourMinuteSecondTime Parameters: total elapsed time in seconds. Job: The function will convert and return elapsed time to hours, minutes, and seconds using three reference parameters. (For example, if the elapsed time is 9630 seconds, then the function will return 2, 40, 30). Name: timeOutput Parameters: time in hours, minutes, and seconds. Job: The function will properly display the time in hours : minutes : second form. int main() { int h, m, s, ts; ts = timeInput(), HourMinuteSecondTime(ts, h,m,s); timeOutput(h,m,s); return 0; }Write a set of functions that calculate the cost of movie tickets for a family. These functions should use a pass-by-reference variable that accesses the double running_total variable in main(). Using a loop, keep displaying the ticket prices for each age group: Something like: Model Hall Movie Ticket Box Office Under Age 3 (free) Ages 3-11 ($10.25) Ages 12-54 ($15.50) Age 55 or older ($12) If 4 tickets are purchased (not counting under age 3) then 20% discount Within the loop: Keep asking the user to input the moviegoer age and to enter a zero for the age when they are finished inputting all the family members. Also, within the loop: Keep a running_total that is output to the screenafter each age has been entered. This running_total should be accessed through the functions using apass-by-reference variable. Finally, after the looping is done: Calculate the total cost, including a 7.5% sales tax, and output it to the screen.
- You will create a program to print the lyrics of one of the songs below. Your program will define and call functions for the verses and chorus, and call those functions to recreate the song. Old Mac Donald Had a Farm Your program shall, Create at least one function for the chorus of the song. Create a function that prints the entire song. This function calls the other functions created for this program. Use parameters as appropriate. Run and test the program to make sure it works correctlyIn C- I am creating a word jumble game and till now I have come up with a function that will jumble the letters of the word. I however also want to add a feature where in if the user needs help , the user can press a "1" and the the first letter of the jumbled word would be revealed so it could act as a clue. For instance if the word is "swing" the jumbled word is "nsigw". So I want to create a function which if the user presses, will result in the output to be "snigw" because the first letter of swing is "s". The code I currently have is - void scramble(char *p, int len) { int i = 0; while(i < len) { int c1 = (rand() % (len)); int c2 = (rand() % (len)); if(c1 != c2) { p[c1] = p[c1] ^ p[c2]; p[c2] = p[c1] ^ p[c2]; p[c1] = p[c1] ^ p[c2]; i++; } } } int main() { char word[] = "clay"; /* seed the randomizer */ srand( (unsigned)time(NULL) ); /* scramble the string */ printf("Original: %s\n", word);…Write a function named Weight that when called in the command window will compute the weight in pound force based on an input of mass in kilograms.
- Using Python, write an application that will calculate a loan payment. To complete this, you are required to write 2 functions, LoanPayment and InterestOnlyLoanPayment, as well as a test application that calls each of the functions to get the payment amount based on parameters supplied to the functions. The test application should output both the loan payment and the interest-only loan payment based on input values from the user. The LoanPayment function is defined as follows: Payment = Loan amount / Discount factor The discount factor is {[(1 + i)^n] - 1} / [i(1 + i)^n], where you have the following: n = Payments per year × Number of years i = Annual interest rate / Payments per year Take for example the following: D = {[(1 + 0.005)^360] – 1} / [0.005(1 + 0.005)^360] = 166.7916, where n = 12 × 30 and i = 0.06 / 12. Loan payment = $250,000 / 166.7916 = $1,498.88 The InterestOnlyLoanPayment is defined as follows: Interest-only payment = Loan amount × (Annual interest rate / 12) Take…Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. The function has 4 parameters: bill: The amount of the bill. people: The number of diners to split the bill between. tax_percentage: The extra tax percentage to add to the bill. tip_percentage: The extra tip percentage to add to the bill. The tax or tip percentages are optional and may not be given when calling split_check. Use default parameter values of 0.15 (15%) for tip_percentage, and 0.09 (9%) for tax_percentage. Sample output with inputs: 25 2 Cost per diner: 15.5 Sample output with inputs: 100 2 0.075 0.21 Cost per diner: 64.25 python # FIXME: Write the split_check function. HINT: Calculate the amount of tip and tax,# add to the bill total, then divide by the number of diners. ''' Your solution goes here ''' bill = float(input())people = int(input()) # Cost per diner at the default tax and tip percentagesprint('Cost per diner:', split_check(bill, people)) bill =…Write a program called Cylinder.java that calculates the volume of a cylinder. Your program should have a a static function named computeCylinderVolume . This function should accept both radius and height as doubles and should return the computed volume as a double. The formula for the volume of a cylinder is given by: V= π*r2*hPrompt the user to input two doubles, one for a cylinders height and one for its radius. Then display the result. (Do not print to console in computeCylinderVolume) The output is pictured below. The code must have the static function named computeCylinderVolume in it. Thanks