Design a pseduocode function named getFirstName that asks the user to enter his or her first name and returns it. Please declare all constants and variables clearly and provide comments.
Q: You are provided with the isLeapYear() function which is already declared and defined for you. Your…
A: I have provided C CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS-------------
Q: function comments. (a) Consider the following main function: int main() { display_numbers…
A: // studio.h is the C standard library it is a header file stdio.h which stands for standard…
Q: Rules of Movement Our robot can only move in one of the following directions: right(r), left(1),…
A: We use java.awt.Robot class to capture pixels of screen. It provides method like createScreenCapture…
Q: Just do this one please.. the menu function only... I will be the one to make the functions in the…
A: Here I have created a function named displayMenu(). In this function, I have used the print…
Q: 5. Design a pseudocode function named getFirstName that asks the user to enter his or her first…
A: for 5th ques your code is given below:
Q: flowchart for this Design a function named FindMax_697 (where 697 is last 3 digits of your student…
A: Flowchart: => It is a type of diagram that represents a workflow or process. => A…
Q: //The function must return the value indicated in the comments // The calcDiscountPrice function…
A: As given, we need to find out the variable value that needs to be returned from the function.
Q: Use C++ to produce the Bernoulli number function
A: I have written a simple Bernoulli number function C++ code up to 60. The output is attached in step…
Q: Write a program that determines which of five geographic regions within a major city (north, south,…
A: Algorithm : getNumAccidents() function : Step 1 : declare variable. Step 2 : use while loop and…
Q: Please write the code for the removeBad function. Will thumbs up if correct!
A: Algorithm: Step1: Test() function is called by main method. A random movie rating integer array is…
Q: C++ Please Create a simple program that asks user to enter their name and displays the name with an…
A: The program creates two character array with maximum size of 10. Then the user is asked to input a…
Q: code up the addAppointment() function. This function runs when the user clicks on the 'MAKE…
A: In this question we have to write a HTML and JavaScript program where we have implement…
Q: Create a structure flowchart that will let the user choose an application to perform from a set of…
A: A flowchart is a picture of the separate steps of a process in sequential order.
Q: A vertical tab escape sequence. \n O lb If char is a letter of the alphabet, this function returns…
A: Vertical Tab Escape Sequence: An escape sequence is a series of characters that, when used inside a…
Q: Create a structure flowchart or pseudocode that will let the user choose an application to perform…
A: Given: Xxxhhhkkskks
Q: Be able to define your function using pseudocode and flowchart, also be able to call your function…
A: Pseudocode: Function Integer sum (Integer num1, Integer num2) Declare Integer result…
Q: Create a C# application that asks the user for a character to be displayed, number of rows, and…
A: Algorithm: Start Read a character ch Read no.of rows and store it in rows Read no.of columns and…
Q: Create a flowchart that will determine and show the winner in a beauty pageant. Allow the user to…
A: Given: Goal: Create a flowchart to decide the winner of the pageant based on the scores given.
Q: In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open…
A: Actually, given information Open the Seminars Solution.sln file contained in the Seminars…
Q: LEFT, CENTER, and RIGHT are named constants defined in the tkinter module.Use a print statement to…
A: #import all definitions from tkinterfrom tkinter import*# create a…
Q: Write a Visual Basic statement that invokes the GetSales function, passing it two Decimal variables…
A: Statement: decTax = 0.08 * GetSales(decSale1, decSale2)
Q: Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below…
A: function sumArray(arr) { let sum = 0; for (let i = 0; i < arr.length; i++) { sum+= arr[i] }…
Q: SwapPoints Objective: To write two missing functions that manipulate objects, to complete a given…
A: Solution Code: import java.util.Scanner;class test{ private int x,y; public void…
Q: 5. The equation for the area of a circle is A = tr². Create a user-defined function that calculates…
A: Given: Area =pi*r*r pi=22/7 and r is the radius. input argument is the radius r user defined…
Q: Using Visual Basic A function named GetPayed receives a Double value and returns a Double value.…
A: Here have to determine function named GetPayed receives a Double value and returns a Double value.
Q: Flowchart a process to make change for a given value using quarters, dimes, nickels, and pennies.…
A: Here, I have to provide a flowchart to the above question.
Q: (True/False): When using the PROC directive, all parameters must be listed on the sameline.
A: PROC directive: The PROC directive allows listing the parameters that whose values are to be changed…
Q: The part of a program that uses a function is called thea) user b) caller c) callee d) statement
A: Function is block of statements to perform a particular task which can be used by simply calling it…
Q: displayed as a result of executing the code segment
A: displayed as a result of executing the code segment
Q: the lowest score in the group is dropped. It should use the following function: getScore - This…
A: The answer given as below:
Q: Create a function that asks the user for their age Use a while loop to ensure they give you a number…
A: C++ used to answer this question
Q: Create a function Write that gets the value from the input textbox and displays the text in the div…
A: Create a function Write that gets the value from the input textbox and displays the text in the div…
Q: Class-level variables are declared in____________ .a. an event procedureb. a Sub procedure c. the…
A: The class-level variables are declared in class but outside the constructor, method or block. It has…
Q: Task 2: Using Function-Temperature Table The formula for converting a temperature from Fahrenheit to…
A: Basically, we have to write a function for temperature conversion. Here is the c++ implementation:…
Q: Instructions: • Use switch case • Once the user selects any option A, B,C, D, E, in the 1* screen,…
A: Start. Ask the user to select any one option to perform the operation. According to the operation,…
Q: End statement is used to ends the execution and exit from the application.
A: End statement is used to ends the execution and exit from the application true false in the…
Q: An integer n is passed as argument to a function named convert0to5. This function returns an integer…
A: Since programming language is not mentioned so I have used C++ programming language. Given: An…
Q: Function Name: comboLock Parameters: num1 – a positive integer representing the first digit in the…
A: Solution: The following function checks whether the five integers is in the order (odd, even, odd,…
Q: What is the benefit of dividing your application's code into smaller functions?
A: Introduction: The following are some advantages to dividing the code up into smaller parts:
Q: Question 2) Write a user defined function called AdvancedMenu that simulates a menu with options the…
A: For defining a function we have to look at the syntax of the function, and other syntax used in the…
Q: Microsoft Visual Basic Studio Programming1. Change the CalcDiscount procedure to a function. 2.…
A: the solution is an given below :
Q: (True/False): The PROC directive can contain a USES operator, but the PROTO directive cannot.
A: PROC directive The PROC directive is one of the assembly directives that identify the beginning of…
Q: Flowchart, create. #include #include using namespace std; // Write performOperation() function…
A: Flowchart is in step 2.
Q: ite a function named "sum_from_to" that takes two integer arguments, call them "fi. st", and returns…
A: Lets see the solution.
Q: The following samples of code contain errors. Rewrite the incorrect statements to correct all…
A: The precedence of the operator defines a grouping of the terms in the expression and defines how to…
Q: Create a flowchart that will ask the user to input the 10 numbers that will be stored in an array…
A: Flow chart: It is used to represent program steps in the pictorial representation. Using the flow…
Q: FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz",…
A: Note: Programming language is not mentioned so doing in python. In the question, we are asked to…
Q: Create a user-defined function that calculated the Reynolds number pVD μl Re= where p is the fluid…
A: The user defined function is given below along with VBA code and sample data
Design a pseduocode function named getFirstName that asks the user to enter his or her first name and returns it. Please declare all constants and variables clearly and provide comments.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- 1. Retail Price CalculatorWrite an application that accepts from the user the wholesale cost of an item and its markup percentage. (For example, if an item’s wholesale cost is $5 and its retail price is $10, then the markup is 100%.)The program should contain a function named CalculateRetail that receives the wholesale cost and markup percentage as arguments, and returns the retail price of the item. The application’s form should look something like the one shown in Figure 6-22.printTodaysDate is a function that accepts no parameters and returns no value. Write a statement that calls printTodaysDate.Text-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. Modify the application below (week3.py) so that the selection variable is sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. You will need to add an if statement in the choice() function to make the correct selection.
- Function for button "Show the Grades": • Name this function by your first name (for example, function fadil). • The user should fill all the textboxes: "Exam-1", "Exam-2", "Project" and "Exam-3" and then press the button. In case one of the textboxes is empty, a message will appear in alert box with the text "You should fill all the textboxes", This page says CSCI375 Grades You should fill all the textboxes Exam-1 78 Exam-2 Project 67 Exam-3 66 Show the Grades Your Grades: Publishing Date Published on: Change Background Color • The user should enter all the grades of the activities greater than or equal to 60, otherwise a message will appear in alert box with the text "You failed one of the activities", This page says CSCI375 Grades You failed one of the activities Exam-1 59 Exam-2 88 Project 76 Exam-3 90 Show the Grades Your Grades: Publishing Date Published on: Change Background Color After filling all the textboxes, entering the correct grades and pressing the button "Show the…Design an application that accepts 10 numbers and displays them in descending order.Phython: Create a function so that when giving you a month it tells you the season of that month, for example: if it is January it will be winter.Using the def, try and except ValueError functions.
- A(n) ____ variable is defined inside a function and is not accessible outsidethe function .____ are declared within the body of a function. (A) Variables (B) Local variables (C) Main functions (D) Arrays2. What data type would you use to allow a function to receive an Int or nil value as its parameter? func display(num: ____ ) { if num == nil { print("Not a number") } else { print(num) } } display(num: 5) display(num: nil)
- Starting Out With Visual Basic 8th edition chapter 6 #1 made in visual studio 2017 Retail Price CalculatorWrite an application that accepts from the user the wholesale cost of an item and itsmarkup percentage. (For example, if an item’s wholesale cost is $5 and its retailprice is $10, then the markup is 100%.)The program should contain a function named CalculateRetail that receives thewholesale cost and markup percentage as arguments, and returns the retail priceof the item. When the user clicks the Get Retail button, the program should do the following:• Verify that the values entered by the user for the wholesale cost and the markuppercent are numeric and not negative• Call the CalculateRetail function• Display the retail cost as returned from the functionThe Problem__: Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: ⚫ void getScore() should ask the user for a test score, store it in a reference param- eter variable, and validate it. This function should be called by main once for each of the five scores to be entered. ⚫ void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. ⚫int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. Input Validation: Do not accept test scores lower than 0 or higher than 100. YOU MUST USE THE STATED FUNCTIONS AND COMPLETE Input VALIDATION. **DO NOT use an ARRAY OR GLOBAL VARIABLES!!. you MUST USE function prototyping TEST THE FUNCTION TWICE.…Student Number, Grade 101029383,90 192736611,10 109800384,0 292833315,80 Complete the function below. If a line is long, you may write it in multiple lines at one blank, but please only write a single statement. def write_final_grades (assignment_grades: Dict, resubmit_grades: Dict, fname: str) -> None: """Write final marks to a final grade file named fname. assignment_grades maps student numbers to grades for the original assignment submission. resubmit_grades maps student numbers to grades for the resubmission of the same assignment. The resubmit penalty of 20% has not been applied within resubmit_grades. The higher mark, after resubmit penalties are applied, is the final mark for a student. Assume that the same student IDs are in both dictionaries. Assuming "grades.txt" is the original grade file shown (on the previous page) and "resubmit.txt" is the file above this function header: >>> original = make_dictionary ("grades.txt") >>> resubmit = make_dictionary ("resubmit.txt") >>>…