correct pseudocode
Q: .in c language code: A car showroom wants to put cars on exhibition. The cars are to be displayed…
A: Program description: c is a car structure that stores 3 details (model, name, and price) of 100…
Q: Rust programming Write a program to print the company name and country origin . You must take 2…
A: Initialize the string as:- Company = Bartleby Country = India Then print the whole line. Exit.
Q: Assignment: Carefully read the instructions and write a program that prompts the user to enter a…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Most Frequent Character Create an application that lets the user enter a string and displays the…
A: Since, programming language is not mentioned in the question, we will answer this question in Python…
Q: $Instructions$:$Please$ $create$ $an$ $optimized$ $structure$ $in $building $your $code $by $using$…
A: Algorithm: Start Create a class named OOP with saleAmount, paidAmount as its attributes Implement…
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: Fill-in-the-Blank A data structure that points to an object of the same type as itself is known as…
A: Self Referential structures are those structures that have one or more pointers which point to the…
Q: 2. (Phone key pads) The international standard letter/number mapping found on the telephone is shown…
A: The required Java code is given below: import java.util.Scanner;public class Keypad{ public static…
Q: Selection Pseudocode Problem • Design pseudocode for a program that accepts two numbers from the…
A: Pseudocode: It defines how a given problem can be implemented from an algorithm. It helps in…
Q: Create aC++ function named countWords that counts the number of words in the current string and…
A: Given: Create aC++ function named countWords that counts the number of words in the current string…
Q: REQUIREMENTS: The following structures MUST be evident in the program. • Use Conditional structure •…
A: Use conditional structure to check whether number is positive or not Use looping to check for…
Q: V/ This pseudocode is intended to display employee net pay values // All employees have a standard…
A: The solution for the above given question is given below:
Q: Programming Exercises 1. Backward String Design a program that prompts the user to enter a string…
A: Given requirement, Backward String: Design a program that prompts the user to enter a string and…
Q: Visual Basic language The following sequence is called a Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13,…
A: Given:- Visual Basic language The following sequence is called a Fibonacci sequence: 1, 1, 2, 3, 5,…
Q: Please help me solve this problem
A: Program design:Since the corner positions are a1,a8,h1,h8 in a chess board and the borders are any…
Q: ata structure & Algorithum Write code that accomplishes the following tasks: Consider two bags…
A: Required: Write code that accomplishes the following tasks: Consider two bags that can hold strings.…
Q: Sum of Numbers in a String Create an application that lets the user enter a string containing series…
A: Let us consider a sum of Numbers in a String that lets the user to enter a string containing series…
Q: Groups and ranges indicate groups and ranges of expression characters. The regular expression xly…
A: Algorithm: First we will pass the input string in the log then match the sting with regular…
Q: V/ This pseudocode is intended to display employee net pay values. // All employees have a standard…
A: 1) Pseudocode in question does below activity It declare variables name, hours, rate, DEDUCTION,…
Q: PART 2. STRINGS Implement a program that reads two strings from the user and merges them into a new…
A: Here i have written string concatenation without using string.h
Q: // SuperMarket.cpp - This program creates a report that lists weekly hours worked // by employees…
A: #include <vector> #include <iostream> #include <string> struct Day {…
Q: Programming language is C : (please write with more comments ..thank you) 1- Write a program to…
A: #include <stdio.h> int main(){ int c1 = 0, count1 = 0; char s1[1000]; printf("Input a…
Q: 4-20) (Process a string) Write a program that prompts the user to enter a string and displays its…
A: Program to enter string by the user to displays string length and its first character. as in the…
Q: palindrome.py -> using sys.argv ● Create a program, palindrome.py, that has a function that takes…
A: Given: Create a program, palindrome.py, that has a function that takes one string argument and…
Q: Password modifier Many user-created passwords are simple and easy to guess. Write a program that…
A: Program plan Delete a character type variable to store user-entered password. Declare an integer…
Q: (Requirement) Poker Hand Ranking Develop a program that determines to rank and display poker hands'…
A: Answer is in given below.
Q: // Program lets user input scores on four tests // Average is computed and letter grade is…
A: Actually, program is an executable software that runs on a computer.
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: Assume character variable ch already has a value in it Please write a boolean expression that will…
A: A boolean expression that will be true if “ch” is a lowercase alphabet letter is as follows, ch…
Q: Lab Activity for the students: Exercise 5: Write a program that asks the user to input a letter. The…
A: ANSWER:-
Q: ead a name from the user( assume the user enters first, middle and last names. The name pai eparated…
A: CODE - JAVA : import java.util.*;public class Main{ public static void main(String[] args) {…
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: Unit 4 Debugging Exercises The following 2 debugging assignments begins with some comments…
A: Hey there, I am writing the required solution of the questin mentioned above. Please do find the…
Q: Nested-if structure Book Club Memberships Yes No Non Student 300 200 Student 60 50 Write a…
A: Note: No langauge is mentioned, therefore answering the given question in python. # Input the…
Q: 24. Word Game Write a program that plays a word game with the user. The program should ask the user…
A: sample output
Q: Body wanted to go on a tour but he was confused about what items to bring. In order to show his…
A: Hello student. As per the policy, I'll answer the first question. For the solution to second…
Q: Assignment: Carefully read the instructions and write a program that prompts the user to enter a…
A: import java.util.Scanner; public class StringTest { public static void main(String[] args) {…
Q: Write an MPI program, countprimes which will count the number of prime numbers in the numbers from 1…
A: #include <math.h> #include <mpi.h> #include <stdio.h> #include…
Q: Module main() // Local variables Constant Integer SIZE = 7 Declare String friend[SIZE] = “Jim”,…
A: Given: Module main() // Local variables Constant Integer SIZE = 7 Declare String friend[SIZE] =…
Q: PROGRAMMING: PERMUTATIONS ASSIGNMENT INSTRUCTIONS OVERVIEW Using the double variable type, you will…
A: Below is the code in C++ and sample output:
Q: Sports exercise advisor algorithm. In this algorithm you will start out with a temperature value in…
A: The given requirement is to develop an algorithm for deciding the sports exercise based on the…
Q: LAB ASSIGNMENT, CONT. 3. feedback_collector.py - use all.of the mipo_ ex program features for this…
A: EXPLANATION: - The program comprises 4 functions namely main, validate_str,process_str, and…
Q: ng Exercises • 1. The programmer intends for this pseudocode to display three random numbers in the…
A: Random number generator From the range of 0 to 7 Print the random numbers.
Q: Phone key pads) The international standard letter/number mapping found on the telephone is shown…
A: import java.util.Scanner; public class SmartPhoneKeyBorad { public static void main(String[] args)…
Q: C++ reverse string allow the user to enter a string, display the results short code
A: #include<iostream>#include<string>using namespace std; int main(){ string s; char…
Q: Learning Outcomes • Develop a menu-based interface using control structures. • Use switch statements…
A: import java.util.*; public class main8{ public static void main(String args[]){ Scanner…
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:
PEN and PAPER Debugging the Pseudocode. Hand write the correct pseudocode using pen and paper. for DEBUG03-02.txt:
// This pseudocode is intended to display employee net pay values.
// All employees have a standard $45 deduction from their checks.
// If an employee does not earn enough to cover the deduction,
// an error message is displayed.
start
Declarations
string name
num hours
num rate
string DEDUCTION = 45
string EOFNAME = "ZZZ"
num gross
num net
output "Enter first name or ", EOFNAME, " to quit"
input name
if name not equal to EOFNAME
output "Enter hours worked for ", name
input hours
output "Enter hourly rate for ", name
input rate
gross = hours * rate
net = gross - DEDUCTION
while net > 0 then
output "Net pay for ", name, " is ", net
else
output "Deductions not covered. Net is 0."
endwhile
output "Enter next name or ", EOFNAME, " to quit"
input name
endif
output "End of job"
stop
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Odd Even Number Problem Description Even Numbers are integers that are exactly divisible by 2, whereas an odd number cannot be exactly divided by 2. Example of even numbers are 2,4,6,8 and odd numbers are 1, 3, 5, 7, 9. Input The first line input contains an integer, which determines the number of test cases. Each of following lines represent sequence of integers that ends with 0. 2 34 1 8 5 22 0 10 7 16 -2 0 Output For each test case, the output will present the size of oddQueue and evenQueue following with the integers of odd and even numbers. oddQueue 2: 1 5 evenQueue 3: 34 8 22 oddQueue 1: 7 evenQueue 3: 10 16 -2 ** Your task is to write a program that will read the input and identify whether it is an odd number or even number. /******************************************************************************* Compilation: javac Queue.java** The Queue class represents a first-in-first-out (FIFO) queue of generic items.* It supports the usual enqueue and dequeue…C# language MORSE CODE CONVERTERDesign a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code. Needs to be two labels, two text boxes and click button for conversionPEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. DEBUG03-03 // This pseudocode is intended to display// employee net pay values. All employees have a standard// $45 deduction from their checks.// If an employee does not earn enough to cover the deduction,// an error message is displayed.// This example is modularized.start Declarations string name string EOFNAME = ZZZZ while name not equal to EOFNAME housekeeping() endwhile while name not equal to EOFNAME mainLoop() endwhile while name not equal to EOFNAME finish() endwhilestop housekeeping() output "Enter first name or ", EOFNAME, " to quit "return mainLoop() Declarations num hours num rate num DEDUCTION = 45 num net output "Enter hours worked for ", name input hours output "Enter hourly rate for ", name input rate gross = hours * rate net = gross - DEDUCTION if net > 0 then output "Net pay for ", name, " is ", net…
- C# language MORSE CODE CONVERTER Design a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code.Geometric Progression Printer As you might recall, a Geometric Progression (or GP) is a sequence of elements in which the next number in the sequence is obtained by multiplying the previous number by the common ratio. The next number in the sequence is obtained by using this formula: a_na_1* r(n-1) While the sum of all numbers in the sequence is obtained using any of these formulae: If r 1, sum = a* n If r != 1 and r> 1, sum= a[(r¹-1)/(r - 1)] If r != 1 and r < 1, sum = a[(1 - r¹)/(1-r)] where a n = next number in the sequence, a_1 = first number in the sequence, r = common ratio, n = number of terms Your task is to write a Python program that 1. Accepts the necessary inputs from the user, i.e., start value (a_1), common ratio (r), and number of generate to generate (n). 2. Generates the Geometric Progression (GP) sequence starting from a_1 to n. 3. Prints out the GP HORIZONTALLY not VERTICALLY, e.g. 3, 9, 27, 81, 243, 729 .... 4. Calculates the sum of all numbers in the GP sequence 5.…PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 additionally Each multiplication problem must be displayed with a problem number. The program must prompt the user to enter an answer to each of the multiplication problems. The correct answer should be displayed after the user enters an answer. A message should be displayed informing the user that the answer entered was correct or incorrect followed by an appropriate motivating comment. A running record of the number of correct and incorrect responses must be kept. After all the problems have been presented the user must be informed of…
- Option #1: String Values in Reverse Order Assignment Instructions Write a Python function that will accept as input three string values from a user. The method will return to the user a concatenation of the string values in reverse order. The function is to be called from the main method. In the main method, prompt the user for the three strings.Capitalize initial keyword – This is a rule while writing a pseudo code. T/FTranscribed Image Text Write a program that asks for the principal, the annual interest rate, and the number of times the interest is compounded. It should display a report similar to the following: Interest Rate: 4.25% Times Compounded: 12 Principal: $ 1000.00 Interest: 43.33 Final balance: $ 1043.33
- c++ language Write three programs that ask the user to enter a box size, for example, 6, and then generate thefollowing patterns.Circle Properties Write a program that prompts for and accepts the diameter of a circle as a floating point number. The program should calculate and output the area and circumference of the circle. A sample run of the program should look like this: Enter circle diameter: 2.5 The area is 4.91 and the circumference is 7.85. Use 3.14159 as your constant for pi. global main ; exposes program entry point to the linkerextern printf ; declare external functionextern scanf section .text ; start of code segment main: push rbp ; preserve base pointer mov rbp,rsp ; copy stack pointer to base pointer pop rbp ; restore base pointer mov rax, 0 ; exit status (0 = success) ret section .data ; start of initialized data segment section .bss ; start of uninitialized data segment section .dataprompt db "Enter circle diameter: ", 0format db "The area is %0.2f and the circumference is %0.2f.", 0pi dq 3.14159…Additional Notes: USING C# You cannot add two flights with the same flight number When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown. When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must SPECIAL NOTE: A customer can only be deleted if there are no bookings for that customer. A flight can only be deleted if there are no customers booked on the flight. You must extend the core design and add the functionality to add customers and booking features to the system. The information that must be recorded on a customer is as follows: A customer ID must be assigned to each customer by the system. (NOT entered by the user) The customer’s first name The customer’s last name. The customer’s phone (a string type…