5. Design a pseudocode function named getFirstName that asks the user to enter his or her first name, and returns it. JYlnit
Q: (Financial application: calculate future investment value) Write a program that reads in an…
A: The program is written in Java. Please find the program in step 2.
Q: A. Feet to Inches One foot equals 12 inches. Design a function named feet Tolnches that accepts a…
A: Start Take the input value as feets Convert to inches Print results
Q: 1.Balloon Emporium sells both latex and Mylar balloons. The store owner wants a pro-gram that allows…
A: Answer:-
Q: Design a pseduocode function named timesTen that accepts an integer arguement. When the function is…
A: Function timesTen Pass In: any integer "num" as parameter Compute : result = num *…
Q: Draw hierarchy charts or flowcharts that depict the programs. Design a hierarchy chart or flowchart…
A: Hierarchy charts or flowchart of given problem:-
Q: Financial application: compare loans with various interest rates) Write a program that lets the user…
A: Actually, program is a executable software that runs on a computer.
Q: (Financial application: loan amortization schedule) The monthly payment for a given loan pays the…
A: Given: (Financial application: loan amortization schedule) The monthly payment for a given loan pays…
Q: V/ This pseudocode segment is intended to compute and display // the average grade of three tests…
A: The program is made up of 3 components called by the primary program. These components are:…
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: 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: Exercise 1 The following codes will show the difference between reference by value or address.…
A: Difference between call by value and call by reference Call by value Call by reference A…
Q: The following declaration, program, and program segment has errors. Locate as many as you can.…
A: The errors in the following program are:-
Q: Create a structure flowchart or pseudocode that will let the user choose an application to perform…
A: Given: Xxxhhhkkskks
Q: (Financial application: calculate tips) Write a program that reads the subtotal and the gratuity…
A: //Whenever if you asked programming related questions you should always have to specify in which…
Q: (Current time) Listing 2.9, ShowCurrentTime.cpp, gives a program that displays the current time in…
A: Given: (Current time) Listing 2.9, ShowCurrentTime.cpp, gives a program that displays the…
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: language: HTML design a simple shopping cart with only 3 items (names can be left as…
A: Here I written HTML with JavaScript for given Problem. I hope you like it.
Q: programming questions / 5. Search a character [Problem description] Write a function that searches…
A: In this question we have to write a C program for which we have search for the character from a…
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: int main() #Fil in the code to define and initialize to 1 the variable onth float total = 0, rain,…
A: A sentinel value is a special value that is used to terminate a loop. In the given problem the month…
Q: 3.28 LAB: Name format Many documents use a specific format for a pėrson's name. Write a program…
A: According to the information given:- We have to take input in the format of first, middle and last…
Q: The following declaration, program, and program segment has errors. Locate as many as you can.…
A: Answer: The "function header" is a portion of the function definition. It denotes, Function's…
Q: The following code intends to input a user’s first name, last name, and age.However, it has an…
A: Corrected Code: #include <iostream>#include <string.h>using namespace std; int main(){…
Q: The following declaration, program, and program segment has errors. Locate as many as you can.…
A:
Q: *: mean () equal not equal less and grater It is a space in memory filled with fixed value that will…
A: Answer: Our instruction is answer the first three part from the first part and . I have given…
Q: A. Feet to Inches One foot equals 12 inches. Design a function named feetTolnches that accepts a…
A: def feetToInches(feet): #1 feet = 12 inches #x feet = 12*x inches return 12*feet def…
Q: (Requirement) Poker Hand Ranking Develop a program that determines to rank and display poker hands'…
A: Answer is in given below.
Q: #include #include #include double area (double r); // this starts the definition for the area…
A: #include <iostream> #include <math.h> #include <cstdlib> double area (double r);…
Q: PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This…
A: To correct the pseudo code there are various while loops which is not necessary as w3e can check it…
Q: Question#1. Test Scores and Grade Write a program that has variables to hold three test scores. The…
A: Import the java utility packages In main class declare the integers variables testS1, testS2 and…
Q: Define text box
A: is the area used by the user to type a text. Textboxes created can be one line or multi lined.
Q: Design function called month_name() which takes the month number as a parameter and returns a string…
A: Store all the months names in list and then we return the value present at index number-1
Q: A(n) __________ is the part of a program in which a variable may be accessed.a. declaration spaceb.…
A: A scope is the part of a program in which a variable may be accessed.
Q: Re-write code Comment also in code Provide right code Gurantee downvote for in correct…
A: I have re-write the code below witch attached a screenshot of the code with output:
Q: E zyBooks catalog Many documents use a specific format for a person's name. Write a program whose…
A: take the name as a single line input split it on the basis of space " " save it in an array declare…
Q: a. What is the syntax error in Program B. b. Correct the syntax error. You are only required to…
A: Note: The answers of the first three subparts are given only. Please repost the last subpart to get…
Q: A. First and Last Design a program that asks the user for a series of names (in no particular…
A: Answer: Here is the python Code : END = "END"#creating a list to store the namesls = []#prompt…
Q: 3. Decision-making structures require that the programmer should specify block conditionally…
A: Given 3. To know about the decision-making structure that executes one set of a statement from…
Q: 6. Body Mass Index Design a modular program that calculates and displays a person's body mass index…
A: According to the question below the solution:
Q: (Health application: BMI) Body Mass Index (BMI) is a measure of health on weight. It can be…
A: Code import java.util.Scanner;public class test{ public static void main(String args[]){…
Q: Microsoft Visual Basic Studio Programming1. Change the CalcDiscount procedure to a function. 2.…
A: the solution is an given below :
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: c++ program #include<math.h>#include <iostream>using namespace std; //driver functionint…
Q: Rectangle Area The area of a rectangle is calculated according to the following formula: Width X…
A: Program Code: #include<stdio.h>int area(int w,int l){ int area; area=w*l; return;}main(){ int…
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: C++ In this program , we just have to enter all values required to calculate initialDepositAmount .…
Q: Predefined Function: ceil(), floor(), rand(), srand() 1. Create a program that will round off a…
A: C Program for above : #include <stdio.h> #include <math.h> int main() { //get…
Q: The following declaration, program, and program segment has errors. Locate as many as you can. A)…
A: GIVEN: The following declaration, program, and program segment has errors. Locate as many as you…
Q: Assignment statements based on input value Write an if-else statement that assigns finalValue with…
A: Answering first question as per the guidelines. The problem is based on the basics of functions in…
Q: First and Last Design a program that asks the user for a series of names (in no particular order).…
A: The, code has given below:
Q: Feet to Inches Problem One foot equals 12 inches. Use pseudocode to design a function named…
A: As per the given question, following things are required : Pseudocode function that converts feet…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- change.py Create a program, change.py, that has a function that takes 5 arguments thatcorrespond to the number of $1 dollar bills, quarters, dimes, nickels, andpennies, respectively. Calculate the total value of that change, and print "Thetotal value of your change is $x" where x is equal to the total value.Python question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. Develop function fingerprint() that takes text (as a string) as input and creates andreturns the text “fingerprint” obtained as follows: replace each word in the text by itslength (i.e., the number of letters) and concatenate these numbers.>>> fingerprint('This is a secret message')'42167'>>> fingerprint('This message has a different fingerprint')'4731911'>>> fingerprint('Very Short')'45'1 - Nuclear Power Plant (python) The nuclear powerplant at Threeyedfish will automatically run a program to print a warning message when the reactor core becomes unstable. The warning message reads: NUCLEAR CORE UNSTABLE!!! Quarantine is in effect. Surrounding hamlets will be evacuated. Anti-radiationsuits and iodine pills are mandatory. Since the message contains crucial information, it should be printed three times. To do this, write a function that prints this message. This function has to be used three times.
- 3) Username Program. Write a program that builds a computer system user name given a person’s name. Ask the user for the first name and last name (separately) and then displays the computer system user name which is the first 3 characters of the last name, the first 3 characters of the first name followed by a number 7. Write a function to return the username. Start with the program username.py and add your function makeusername. Sample output: Give me a first name: Neil Give me a last name: Thompson Computer System name is: ThoNei7JAVA CODE PLEASE Functions With Parameters and Return Values Quiz by CodeChum Admin Create a function named oppCase that receives one character input that is an alphabet. Return the opposite case of that character. In the main function, write a program that asks for a character input and assign it to a character variable. Call the oppCase function by passing in the character variable and assign the returned value to a variable. On the next line, print the value assigned to the variable. Input 1. One line containing a character Output Enter·a·character:·A a01. Question Code in Develop a Java program using NetBeans for Codex. Your program should initially display a menu to the user. The menu should have three options, namely (1) Register for a Training Programme (2) Check Registration details (3) Exit Program (see Figure 3 attached). The program should make use of two functions, registerApplicant() for registering a new applicant andsearchDetails() for searching the registrant details. The registerApplicant() function should accept four lines of arguments namely: the registrant’s name, the registrant’s surname, the registrant’s ID number and training programme. It should then write these details to a text file.To write to the text file or retrieve the product details from the text file, you must have a text file to which you write and store the registrant details. Your text file should be named registrants.txt Also, ensure that the program repeatedly shows the menu until the point when option 3 is selected which terminates the program. .
- Instructions Write a function create_password() expects two parameters: pet_name (a string) and fav_number (an integer). The function returns a new password generated using the following pattern: fav_number followed by the pet_name followed by the star * and fav_number again (see the example below). Create a program that gets a pet name and a favorite number as input from the user, calls the above function, and then prints the output as shown below. Example Input: Angel 3 Output: Your new password is "3Angel*3". Note that the double quotes are part of the output. The assert in the provided template is checking that this function call is returning the correct value (i.e., a correctly-formed string). assert create_password("Angel", 3) == "3Angel*3" Hints Remember that you cannot directly concatenate an integer and a string - you need to convert an integer into a string using either str() or by using f-strings. Troubleshooting If you are getting AssertionError make sure that your…Using C Language, write a program. PROGRAMMING EXERCISES 6-5Four track stars have entered the mile race at the Penn Relays. Write a program that scans in the race time in minutes and seconds for a runner and computes and displays the speed in feet per seconds and in meters per seconds. Hint: there are 5280 feet in one mile, and one kilometer equals 3282 feet.Write and call a function that displays instructions to the program users.JAVA CODE PLEASE Functions With Parameters and No Return Values Practice l by CodeChum Admin Create a function named palindrome that asks the user an integer input if called. If the number is a palindrome, print “{input} is a palindrome!”, otherwise print “{input} is not a palindrome!” In the main function, call the palindrome function. An initial code is provided for you. Just fill in the blanks. Input 1. One line containing an integer Output Enter·a·number:·121 121·is·a·palindrome!
- 99.Code in Develop a Java program using NetBeans for Codex. Your program should initially display a menu to the user. The menu should have three options, namely (1) Register for a Training Programme (2) Check Registration details (3) Exit Program (see Figure 3 attached). The program should make use of two functions, registerApplicant() for registering a new applicant andsearchDetails() for searching the registrant details. The registerApplicant() function should accept four lines of arguments namely: the registrant’s name, the registrant’s surname, the registrant’s ID number and training programme. It should then write these details to a text file.To write to the text file or retrieve the product details from the text file, you must have a text file to which you write and store the registrant details. Your text file should be named registrants.txt Also, ensure that the program repeatedly shows the menu until the point when option 3 is selected which terminates the program.Implement a function named get_player_selection. This function has parameters for the players number (which will be either 1 or 2), and the number of sticks remaining on the board. For this function you will need to do the following: Use the input function to get the player to type in their selection. Validate the user’s input, printing out a message if they enter an invalid number and continually prompting them until they do enter a valid number. The user may enter any number between 1 and 3, unless there are fewer than 3 sticks remaining, in which case they can only enter between 1 and the number of sticks remaining. As in the example, the input prompt should list the valid range of numbers. Return the (validated) number as an integer (not a string). You should test that this function works by running it in the REPL. Make sure you try different scenarios, like the user entering an invalid number multiple times in a row. After you are done testing and fixing any errors you find,…Python question please include all steps and screenshot of code. Also please provide a docstring, and comments through the code, and test the given examples below. Thanks. Write a function crypto() that takes as an input a string s and returns an encryptedstring where encryption proceeds as follows: split the text up into blocks of two letterseach and swap each pair of letters (where spaces/punctuation, etc. is treated like letters).If the input string>>> crypto('Secret Message')'eSrcteM seaseg'>>> crypto('Secret Messages')'eSrcteM seasegs'