Module 1: Validating Credit Cards This module checks the validity of a credit card and determines in which bank it has been issued in Oman. Let us assume that credit card numbers in Oman follow specific patterns. To determine the origin of a credit card number, it must start with: 4 for Bank Muscat Visa Cards 5 for HSBC Visa Cards for Nizwa Visa Cards for OIB Visa cards To determine the validity of the card number, you should follow the following steps: 1. Prompt the user to enter a credit card number (must be between 13 and 16 digits) Example: 4388576018402626
Q: Activity Output 1. Create a program that will calculate the area of a given (chosen) shape using…
A: According to the information given:- We have to create an Area calculator wit featuring to the…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: Menu based programs are those where the user chooses one of several options and the program…
Q: Find the error in the following pseudocode: Module main() Call getCalories() End Module Module…
A: 1. The operator ^ probably doesn't do exponentiation. You need to do "number * number" instead.2.…
Q: Project in C language: PLEASE read the INSTRUCTIONS carefully: * The user who is playing this game…
A: INSTRUCTIONS carefully: * The user who is playing this game will have a small visible deck with a…
Q: Task 1 Description let's consider a case when you need a lot of coffee. Maybe you're hosting a…
A: Program description: n is the user input integer variable that is used to take how many cups of…
Q: Make a flow chart and a simple program.
A: FLOW CHART:
Q: Task 2: Grading A professor will give the number of students and their grades. You need to calculate…
A:
Q: ramming Exercise 2.6 Instructions momentum.py 1 # Modify the following code The kinetic energy of a…
A: The kinetic energy of a moving object is given by the formula KE = ½mv2 where m is the object’s mass…
Q: Using Java programming language Shopping Software: The software should allow a shopper to buy at…
A: import java.util.*; public class books { String[] book=new String[6]; float[] price=new float[6]; {…
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: A retail company assigns a $5000 store bonus if monthly sales are $100,000 or more. Additionally,…
A: Below are the modules and their description:
Q: Python Answer Required: A Rajesh teaches a cooking class. The course is attended by NN students,…
A: The Python code is given below with code and output screenshot. Happy Coding?
Q: Income Tax The original U.S. income tax of 1913 was quite simple. The tax was: ● 1 percent on the…
A: Program : income=float(input("Enter salary: ")) if(income<=50000):…
Q: Python Answer Required: A Rajesh teaches a cooking class. The course is attended by NN students,…
A: Let us consider there are N students attending Rajesh class each with a first name and a last name.…
Q: Q2: Wire a code for an Arduino Car Speed Detector shown in the schematic diagram below (IR…
A: We need to write Arduino code for calculating speed of a car.
Q: A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a…
A: Algorithm for Module printBonus(storeBonus, empBonus): 1. Start. 2. Print "storeBonus". 3. Print…
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: In an electronic commerce application, a module is created to add books to the ‘shopping basket’ and…
A: The answer is given on next step
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: Exercise 9-1m Write a simple program, that able to calculate profit from a sale for a store. Hint:…
A: language is not mentioned so i am doing in python #main functiondef main(): #global constant…
Q: Greatest Common Divisor (GCD) The greatest common divisor (GCD) of two integers is the largest…
A: Greatest Common Divisor (GCD) in Assembly Language (MIPS):
Q: Computer Science Using visual studio 2019 with a C# program create a WCF service to compute the body…
A: PROGRAM EXPLANATION: Create the main class. Define the main method. Ask the user to enter the…
Q: a). A cash register operates as follows: When the cash register receives the entry “new sale” (NS),…
A: a). A cash register operates as follows: When the cash register receives the entry “new sale”…
Q: 8. Lo Shu Magic Square The Lo Shu Magic Square is a grid with 3 rows and 3 columns shown in Figure…
A: I have given c++ code to find that the given array is a magic square or not.
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: #include <stdio.h> int main(){ int budget,m,n,p,d; printf("\n Menu\n Destination…
Q: Automobile Costs Problem: Design a modular program that asks the user to enter the monthly costs…
A: Here we will use the function to count each expanses.one use for counting monthly and another for…
Q: Design a parking lot that supports different types of vehicles, where spots are of different sizes.…
A: solution: The parking lot has multiple levels. Each level has multiple row of spots. The parking…
Q: Using C# and Windows Presentation Foundation (WPF) 1 , design and implement a standalone desktop…
A: Recursively explore all currency option In each recursive call pass the remaining amount as an…
Q: Car Service Maintenance Create a program for car service maintenance. Based on numbers of months /…
A: Given: Car Service MaintenanceCreate a program for car service maintenance. Based on numbers of…
Q: Dev C++ PROGRAM – DEFINED FUNCTION Instructions: Use conditional structure or if else • Once the…
A: I give the code in C++(as per your requirements) along with code screenshots and output screenshots.
Q: Savings Account The following steps calculate the balance at the end of three years when $100 is…
A: Hi. Let's move on to the code in the next step. I have included explanation in comments in the…
Q: write pseudocodes for these situations. The program contains housekeeping, detail loop, and…
A: Step 1 The answer is given in the below step
Q: Write a program that generates a two-column table showing Fahrenheit temperatures from -40F to 120F…
A: 1. declare variable Celsius initialized with 0.0 2. run loop from 0.0 to 120.0 with increment of 5…
Q: Module main() // Local variables Declare Real centigrade, fahrenheit // Set centigrade For…
A: BEGIN Declare centigrade, fahrenheit as REAL FOR centigrade = 0 to 20 CALL…
Q: Computer Science Code a Binomial Expansion Calculator in Visual Studio using Windows Forms.app…
A: Code: Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles…
Q: avg_gpa_.py NCT college management wants to compare IT students' performance with Business students.…
A: #function to find avergae of list def Average(lst): return sum(lst) / len(lst) #list to store…
Q: LAB TASK I. A polynomial in one variable is an arithmetic expression of the form anx +...+ a₂x² +…
A: //for same constant value#include <iostream>#include <math.h>using namespace std; int…
Q: // convert to Fahrenheit float tempF = [............................] .(7) //…
A: According to the explanation given:- Displaying degree Celsius on second row of the screen //…
Q: Code Example 4-1 def get_username(first, last): s = first + "." + last return s.lower()…
A: Ans: Code Example 4-1 def get_username(first, last): s = first + "." + last return s.lower()…
Q: 8. Property Tax A county collects property taxes on the assessment value of property, which is 0u…
A: Since here, no programming language is specified. So, we are providing a solution in C++. The…
Q: A flight of stairs has 10 steps numbered 1 to 10 as shown in the figure below. 10 i. How many ways…
A: According to the information given:- We have follow the instruction to get the way to climb the…
Q: A module can contain one or more definitions of other modules. Select one: OTrue OFalse
A: Solution :
Q: Data Generator Most application depends on data. In IoT data is collected/generate by sensors.…
A: Steps: Import Matplotlib to create the plot. Import random to generate random number in the range 0…
Q: Question 16
A: In the program you didn't mention any programming languages. So, I use C++. 16. Program: //include…
Q: Design a program using pseudocode that prompts the user to enter a number within the range of 1 -…
A: The following is the Pseudocode
Q: Constant Real CALORIES_PER_MINUTE = 3.9 // main module Module main() // Local variables…
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic…
Q: Design a modular program that asks the user to enter the monthly costs for the following expenses…
A: We are designing the program in C++ programming language. Given below is the program designed to…
Q: Mobile Phone Packages Dialog is a Mobile Phone company that offers the following mobile phone…
A: Program: def MobileCharges_4567(calls, time): amount = 40 if calls > 100 and time >…
Please I want answer of this question with Java Coding. Thanks
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
- Use C# Language Write a program that will compute and generate the monthly payslip of employees.Create 3 separate modules for this programThe 1st module: GrossSalary.py will handle the computing of gross salary.The 2nd module: SalaryDeductions.py will compute the deductionsThe 3rd module: NetSalary.py is responsible for computing the net salary.Create the necessary functions for each module.The user shall input the following:Employee NameContact HoursSSS ContributionPhilHealth ContributionOther LoanEach employee is subject for 12% tax and a flat rate of 550 per hourThis program deals with processing the results of a survey which was recently conducted. This survey was intended to determine the percentage of students who walk tocampus, the percentage who drive to campus and the percentage who live in residence on campus.The results of the survey are recorded as follows: WDDL... This data is to be interpreted as follows: the first person surveyed said that he walks – hence W isrecorded, the second person said that he drives – hence D, the third person said that he drives –hence D, and the fourth person said that he lives on campus – hence L. Write a C program to which inputs the response for each student and which computes / outputs therequired percentages. Assume that 25 students were surveyed. Your prompt should have the following format: Do you walk, drive or live on campus. UseW – if you walkD – if you driveL – if you live on campusUse the following data for the execution of your program: W D D L L W D D L L W W D D W L W L L D W L W L DThis program deals with processing the results of a survey which was recently conducted. This survey was intended to determine the percentage of students who walk tocampus, the percentage who drive to campus and the percentage who live in residence on campus.The results of the survey are recorded as follows: WDDL... This data is to be interpreted as follows: the first person surveyed said that he walks – hence W isrecorded, the second person said that he drives – hence D, the third person said that he drives –hence D, and the fourth person said that he lives on campus – hence L. Write a program to which inputs the response for each student and which computes / outputs therequired percentages. Assume that 25 students were surveyed. Your prompt should have the following format: Do you walk, drive or live on campus. UseW – if you walkD – if you driveL – if you live on campusUse the following data for the execution of your program: W D D L L W D D L L W W D D W L W L L D W L W L D
- Computer Science Provide a pseudocode and a flow chart for an application for Domicile Designs that gets sales transaction data, including an account number, customer name, and purchase price. The store charges 1.25 percent interest on the balance due each month. Output the account number and name, then output the customer’s projected balance each month for the next 12 months. Assume that when the balance reaches $25 or less, the customer can pay off the account. At the beginning of every month, 1.25 percent interest is added to the balance, and then the customer makes a payment equal to 7 percent of the current balance. Assume that the customer makes no new purchases. The application should execute continuously for any number of customers until a sentinel value is supplied for the account number. Pseudocode Flowchart1. Create a Salary Computation using python programming 2. Create 3 Modules 3. The first module is GrossSalary.py will handle the function for computing the gross salary. 4. The second module is SalaryDeductions.py will handle the function for computing the deductions 5. The last module NetSalary.py will be responsible for computing the net salary. 6. The user will input the following (Name, Hour, Loan, Health Insurance). 7. Tax(12% of the gross salary) and Rate(500/hr) is fixeda). A cash register operates as follows: When the cash register receives the entry “new sale” (NS), it waits and prepares for a new sale: set to 0 the totalizer, print shop logo and date of sale. The cash register then receives a series of articles. An item is either weight (WA) or Unit (UA) article, and the cash register recognizes that these are two different entries and provides a table of prices of different articles (WA, UA). For each item it calculates the total price taking into account the unit price and the quantity. At the end of the sale (ES), the cash register will print the contents of the totalizer and stops. Required: Create flowchart for this scenario.
- PLEASE CODE IN PYTHON Problem Description:In order to ensure peace and prosperity for future generations, the United Nations is creating the world’s largest candy. The ingredients must be taken in railway cars from the top of a mountain and poured into Lake Geneva. The railway system goes steeply from the mountaintop down to the lake, with a T-shaped branch in the middle as shown below. Right now, each of the N ingredients is in its own railway car. Each railway car is assigned a positive integer from 1 to N. The ingredients must be poured into the lake in the order 1, 2, 3, . . . , N but the railway cars are lined up in some random order. The difficulty is that, because of the especially heavy gravity today, you can only move cars downhill to the lake, or sideways on the branch line. Is it still possible to pour the ingredients into the lake in the order 1, 2, 3, . . . , N ? For example, if the cars were in the order 2, 3, 1, 4, we can slide these into the lake in order as described…A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a $500 store bonus is awarded. Additionally, they are doing away with the previous day off program and now using a percent of sales increase to determine if employees get individual bonuses. If sales increased by at least 4% then all employees get a $50 bonus. If they do not, then individual bonuses are 0. Step 7: The final step in completing the pseudocode is to call all the modules with the proper arguments. Complete the missing lines. Module main () //Declare local variables Declare Real monthlySales Declare Real storeAmount Declare Real empAmount Declare Real salesIncrease //Function calls Call getSales(monthlySales) Call getIncrease(salesIncrease) Call ______________(_______________, _____________) Call ______________(_______________, _____________) Call ______________(_______________, _____________) End ModuleDesign a retirement planning calculator for Skulling Financial Services. Allow a user to enter anumber of working years remaining in the user’s career and the annual amount of money the usercan save. Assume that the user earns 3 percent simple interest on savings annually. Programoutput is a schedule that lists each year number in retirement starting with year 0 and the user’ssavings at the start of that year. Assume that the user spends $60,000 per year in retirement andthen earns 3 percent interest on the remaining balance. End the list after 30 years, or when theuser’s balance is 0 or less, whichever comes first. create a solution algorithm using pseudocode create a flowchart using RAPTOR
- Part C: Function, for and plotting We did a project in the lecture on calculating the free fall speeds and plotting them on a graph. This part is similar to the project. An engineer has derived a relationship between the force applied to a material and the extension in length that the force would cause. The relationship between force f and extension e is given by: You are asked to plot a graph showing the relationship between force and extension. You are asked to complete the following tasks: Task 1 Write a Python function which returns the value of e for a given input f. Do not use literals (e.g. 5.5, 10) in the expressions for e in the function. Instead you should define constants and use them. Note that the relationship between e and f depends on whether f is bigger than 10 or not, this means you need a certain Python construction in your function. If you can't think of that, have a look at Part A of Lab03.(C++) A robot is initially located at position (0, 0) in a grid [−5, 5] × [−5, 5]. The robot can move randomly in any of the directions: up, down, left, right. For each move, print the direction of the move and the current position of the robot. If the robot makes a circle, which means it moves back to the original place, print “Back to the origin!” to the console and stop the program. If it reaches the boundary of the grid, print “Hit the boundary!” to the console and stop the program. A successful run of your code may look like: Down (0,-1) Down (0,-2) Up (0,-1) Left (-1,-1) Left (-2,-1) Up (-2,0) Left (-3,0) Left (-4,0) Left (-5,0) Hit the boundary! or Left (-1,0) Down (-1,-1) Right (0,-1) Up (0,0) Back to the origin!Design by C++ Using subroutines (VOID) write a program to perform numerical integration of f(x)=x^2*sin(x)*exp(x^2) over x=[0,Pi] having a choice of (i) rectangular rule (ii) the 1/3 Simpson’s rule Divide the domain into N subsections, where N=5,10,20,40. Compare your results.