Write an efficient Selection Structure that accomplishes the following task: Covid-19 Vaccination cost based on patient weight, output cost for a particular patient. Patient weight less than 100 lbs 100 lbs to 180 lbs 181 lbs to 250 lbs over 250lbs cost $35.00 $38.00 $40.00 $45.00
Q: char[] charArray = {'a', 'c','d', 'e','g', 'k', 'm', 'n', 't', 'w', 'z'}; a) Indicate, in order, the…
A: A sorted array may be searched using the binary search method by continually halving the search…
Q: Develop of analysis Frequency Response and Mean Square Error at program of Linear Prediction Model…
A: The question has been answered in step2
Q: Write a C program to receive an integer number from the user and count number of digits in the given…
A: Introduction System software is designed in a system programming language. Given that it can be used…
Q: What is ergonomics?
A: Ergonomics is related to the performance of a system.
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: so we have to Display the customers in each city in the united state so we have to find which…
Q: What is main memory in a computer?
A: Introduction: Computer memory is a storage device used for storing data or information. It is…
Q: What is the asymptotic run time of the following function? Function f(n) r = 0 for i from 0 to n for…
A: The question has been answered in step2
Q: 7.-Prepare a four-panel chart that summarizes the advantages and disadvantages of using programmable…
A: Programmable hardware is a type of computer hardware that can be configured by a user or a…
Q: You need to write a function named shiftX. The function is described below: shiftX: takes an int…
A: The complete C++ code is below:
Q: What is the myth of the Infinitely fast machine?
A:
Q: n HexWorld, instead of the decimal (base 10) number system we are used to, the hexadecimal number…
A: # Function getHexChar returns the hexadecimal character for dec_digitdef getHexChar(dec_digit):…
Q: Question 15 What is the output of the following code? for r in range (1, 3): O O O for c in range…
A: for r in range(1,3): for c in range(1, 2): print(c, end = '') print()
Q: Please answer both questions.
A: The question has been answered in step2
Q: Write particle velocity update equation
A:
Q: What are the different types of direct access storage devices?
A: A direct-access storage device is another name for secondary storage devices that store data in…
Q: Full explain this question and text typing work only thanks You will create a Python notebook. You…
A: Answer: We have done code in python and also attached code and code screenshot and output…
Q: List human input-output channels and discuss briefly about it.
A: We have to list human input-output channels and explain briefly about it.
Q: JAVA Implement the equals method of the Arrow class. Two arrows are equal when they have the same…
A: The equals(Object obj) method of Method class compares this Method Object against the specified…
Q: Consider the binary search tree in the picture below. Delete key 80 and show the tree after…
A: Binary Search Tree is a data structure which has the following properties: The value of the key of…
Q: 3. Modify the evaluate() method in RPN.java to add the commands listed below. These commands can…
A: This java program deals with exception handling along with different methods of stack class. Swap…
Q: 1. The fundamental cause of XSS vulnerabilities is that HTML allows JavaScript code to be mixed…
A: Solution -The primary reason for XSS vulnerabilities is that HTML enables the blending of data and…
Q: 'n Exercises 5-8, a network and flow are given. By performing the flow augmentation algorithm on…
A: Data augmentation is the process of modifying, or “augmenting” a dataset with additional data. This…
Q: The only way to get both higher precision and range is to increase the number of bits. True False
A: According to the information given:- We have to define the mentioned statement is true or false.
Q: What is the longest common prefix array of the string "abbaba$"? Assume that the longest common…
A: The longest common prefix for an array of strings is the common prefix between two different…
Q: Write a C program that allows you to erase multiple spaces in a text file. Then re-write the…
A: ALGORITHM:- 1. Write the space separated string a file named demo.txt. 2. Remove the spaces from the…
Q: Use KMeans in Sklearn to do clustering and find the nearest cluster centroid for each SIFT feature;…
A: Use KMeans in Sklearn to do clustering and find the nearest cluster centroid for each SIFT feature;…
Q: A system has an n-layer protocol hierarchy. Applications generate messages of length M bytes. At…
A: The complete answer is below:
Q: name (as a string) a last name (as a string) an address (as a string) a city (as a st
A: def postalLabel(): # get inputs first_name = input('Please enter your first name: ') last_name =…
Q: Explain discovering cloud service development service and tools.
A: Solution: Given, Explain the discovering Cloud Services Development Services and it's different…
Q: Problem #01] What are the full-adder inputs that will produce the outputs shown below? (a) = 0, Cout…
A: Problem 1 A B Cin Sum Cout 0 0 0 0 0 0 0 1 1 0…
Q: 8A-
A: The above given is a default schema of a database.
Q: Question-1 a) Discus and compare circuit-switching and packet-switching. b) What are the main…
A: Circuit-switching is a method of implementing a telecommunications network in which two network…
Q: Implement a bubble sort that accepts an array of integers a, and an integer aSize, and sorts a in…
A: Implement a bubble sort that accepts an array of integers a, and an integer aSize, and sorts a in…
Q: C++ In this project you will implement two small programs. One program will show an example of stack…
A: #include <iostream>#include <bits/stdc++.h>using namespace std;//Function to print the…
Q: Commonly used turtle me -Python 3.7.1rc1 dow the turtle methods and f
A: Introduction Python is a type of programming language that provides a kind of level or pattern that…
Q: Given the temperature t (in Fahrenheit) and the wind speed v (in miles per hour), the National…
A: Steps to write the code is : 1. checking number of the command line arguments is 3 2. converting the…
Q: The Extended Euclidean Algorithm allows us to efficiently compute inverses in Z∗n (and also in…
A: Program Approach:- 1. Include header file 2. Create the user-defined function whose name is…
Q: Facilities / Activity: Computer laboratory Known or expected hazards: 1. Ergonomics (Work-Related…
A:
Q: Make a Turning Machine TM for the expression
A: To make a Turning Machine for the expression aba*
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: A Foreign key is a field in a table that is used to reference the Primary key of another table. It…
Q: What is centralizing email communications in cloud computing?
A: What is centralizing email communications in cloud computing?
Q: Given the following data definitions: myList1 DWORD 9876543Ah myList2 BYTE 25h, 36h, 47h, 58h (i)…
A: Given, myList1 DWORD 9876543Ah myList2 BYTE 25h, 36h, 47h, 58h
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: Here we have given the suitable options for the asked query with select statement. You can find the…
Q: 21 python
A: Dictionaries are used to store data values in key:value pairs.
Q: In 2 1 2 Out 1 Out 2 In _ 1 A "path" in 2D space can be defined as a list of 2D points, where each…
A: Logic: The program must do the following: Define the method path_length which takes a path as…
Q: Write generic ant algorithm. Describe application of particle Swarm Algorithm.
A:
Q: def findRecommendations (matches): Specific Restrictions (in addition to the general restrictions…
A: 1) Below is python program which defines a function findRecommendations, which takes a list as…
Q: definit_(self, lin, st, sz): # Initializing Variables self.start = st self.size = sz self.cir =…
A: Answer: We need to write the remaining code and we have done in python code and also have attached…
Q: Using integer division and modulus operator input a number from 1 to 3000 and output the value in…
A: source code Test.java import java.util.Scanner; public class Test { public static String…
Q: Make a program that takes bets on horse races. There will be four types of bets described below.…
A: Below is the desired Java code. Please go through the comments import java.util.Arrays; // Import…
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:
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images
- create a prog that will compute the final grade for a certain student and will display the final grade and a remark if it is passed or failedPass = 75 aboveFailed = 74 belowCS= 60% quiz + 40 assignmentPG =[ 2(Pcs) + PE] / 3TMG = [2(Mcs) +ME] /3MG = [2(TMG) + PG] / 3TFG = Fcs +ME + SFEFG = [2(TFG) + MG ] / 3sample output:enter name of student: Cruzenter quiz Score: 75enter assignment Score: 75enter PE Score: 75PG of Cruz is : 75enter Mquiz Score: 75enter Massignment Score: 75enter ME Score: 75MG of Cruz is: 75enter Fquiz Score: 75enter Fassignment Score: 75enter SFE Score: 75enter FE Score: 75MG of Cruz is: 75FG of Cruz is : 75congrats you PASS>> IN C PROGRAMMING LANGUAGE ONLY << COPY OF DEFAULT CODE, ADD SOLUTION INTO CODE IN C #include <stdio.h>#include <stdlib.h>#include <string.h> #include "GVDie.h" int RollSpecificNumber(GVDie die, int num, int goal) {/* Type your code here. */} int main() {GVDie die = InitGVDie(); // Create a GVDie variabledie = SetSeed(15, die); // Set the GVDie variable with seed value 15int num;int goal;int rolls; scanf("%d", &num);scanf("%d", &goal);rolls = RollSpecificNumber(die, num, goal); // Should return the number of rolls to reach total.printf("It took %d rolls to get a \"%d\" %d times.\n", rolls, num, goal); return 0;}C++ programming Chapter(s) Covered: Chapter 1-8 Concepts tested by the program: Working with one dimensional parallel arrays Use of functions Use of loops and conditional statements Project Description The Lo Shu Magic Square is a grid with 3 rows and 3 columnsshown below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 – 9 exactly. Each number 1 – 9must not be used more than once. So, if you were to add up thenumbers used, The sum of each row, each column and each diagonal all add upto the same number, Write a program that simulates a magic square using 3 onedimensional parallel arrays of integer type. Each one the arrays corresponds to a row of the magicsquare. The program asks the user to enter the values of the magicsquare row by row and informs the user if the grid is a magicsquare or not. See the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this…
- CS 116 – Programming Fundamentals for Computer Science Lab #3D Objectives To learn to code, compile and run a program containing SELECTION structures Assignment Plan and code a program utilizing one or more selection structures to solve the following problem: Write a program for Pentagon Parking Lot for all customers that use the lot during the day. Charges for vehicles are based upon the following rates: Cars: First 2 hours Free Next 3 hours $1.00 per hour Next 11 hours $0.50 per hour Trucks: First 2 hours Free Next 2 hours $2.00 per hour Next 12 hours $1.00 per hour Senior Citizens: No charge Have the user enter a character designation for rate of charge (C, T, S), the total time parked entered separately in hours and minutes. Determine the total number of hours (any minutes over 30 are to be counted as a full hour). A car may not be parked more than 16 hours. Compute the appropriate charge and print out a ticket for each customer. Be sure to check for invalid data…Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7 p.m., or 9 p.m. Design a program that accepts reservations for specific tables at specific times; the user enters the number of customers, the table number, and the time. Do not allow more than four guests per table or invalid table numbers or times. If an attempt is made to reserve a table already taken, reprompt the user. Continue to accept reservations until the user enters a sentinel value or all slots are filled. Then display all empty tables in each time slot. For this homework assignment you need to: create a flowchart using RAPTORSolve the Problem with C++ (Financial application: compare loans with various interest rates)Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.Sample RunLoan Amount: 10000Number of Years: 5Interest Rate Monthly Payment Total Payment5.000% 188.71 11322.745.125% 189.28 11357.135.250% 189.85 11391.59...7.875% 202.17 12129.978.000% 202.76 12165.83
- Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7 p.m., or 9 p.m.Design a program that accepts reservations for specific tables at specific times; the user entersthe number of customers, the table number, and the time. Do not allow more than four guests pertable or invalid table numbers or times. If an attempt is made to reserve a table already taken,reprompt the user. Continue to accept reservations until the user enters a sentinel value or allslots are filled. Then display all empty tables in each time slot. Pseudocode and flowchart (RAPTOR please) if possible. Do not write it in any particular language, that is not required.most_frequent_word() takes a string as the input parameter and returns two values; the word that appears most frequently in that string and the total number of times that word appears in that string. In case of a tie, return the first word that appears in the string. Hint: you can use the unique_words function that you wrote in (4). Sample outputs:>>> data = “chapter one hottest day summer so far drawing close drowsy silence lay over large square houses privet drive cars usually gleaming stood dusty drives lawns once emerald green lay parched yellowing”>>> word = most_frequent_word(data)>>> print(word)('lay', 2)>>> data_2 = "a cat in a hat and a big black bear on a big black rug">>> word = most_frequent_word(data_2)>>> print(word)('a', 4)Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.
- In C++: Menu driven conversion program. Write a menu-driven program to convert measurements from miles to kilometers, degrees F to degrees C. Use function subprograms to carry out the necessary conversions. Input: OPTION, MILES, DEGF Output: Equivalent of MILES in kilometers, or DEGF degrees Fahrenheit in degrees Celsius.coding in C++ Tic Tac Toe game that will match a player against the computer. Do's: Use a typical 3 x 3 board. The horizontal axis should be labeled A, B, C. The vertical axis should be labeled 1, 2, 3. The horizontal axis (ROWS) should be labeled A, B, C. The vertical axis (COLUMNS)should be labeled 1, 2, 3. Use User-Defined Functions. Use Branching. Use Loops. Use String functions. Randomly determine who will move first, the human or computer. Assign O to the computer and X to the Human player. Ask the user to select their move using the horizontal and vertical position. For example: A1 for the upper left square, or B2 for the center square. After each move, redraw the board with the X's and O's in the right positions. After each game, ask the user if they want to play again. If they do, start the game again. Do not's: Don't use User Classes or Objects Don't use imagesIn C programming language. Objectives:• Use of functions and passing by value and reference.• Use of selection constructs.• Use of repetition constructs (loops).• The use of the random number generator and seeding.• Display formatted output using input/outputstatements.• Use format control strings to format text output. Description: For this project you are tasked with building a user application that will select sets of random numbers. Your application must use functions and pass values and pointers. Your program will pick sets of 6 random numbers with values of 1 to 53. The user should be able to choose how many sets to produce. The challenge will be to ensure that no number in a set of 6 numbers is a repeat. The number can be in another set just not a duplicate in the same set of 6. Your program should prompt the user and ask them how many number sets they wish to have generated. The program should not exit unless the user enters a value indicating they wish to quit. Minimum…