Question
PLEASE USE RAPTOR Raptor Program #1 Input a list of employee names and salaries stored in parallel arrays. The salaries should be floating point numbers
PLEASE USE RAPTOR
Raptor Program #1
Input a list of employee names and salaries stored in parallel arrays. The salaries should be floating point numbers in increments of 100. For example, a salary of $36,000 should be input as 36.0 and a salary of $85,900 should be input as 85.9. Find the mean (average) salary and display the names and salaries of employees who earn within a range of $5,000 from the mean. In other words, if the mean salary is $45,000, all employees who earn between $40,000 and $50,000 should be displayed. Please include Defensive Programming
Raptor Program #2
Using the below Raptor Program where can defensive programming be added? (Question program is based off of is Below)
Raptor Program #1Create a Raptor program to store a list of customer names and phone numbers entered by the user to a text file. Save your text file as Customers.txt. Raptor file must be uploaded to receive full credit for this question
Raptor Program #3
Using the below Raptor Program where can Defensive Programming be added? (Question program is based off of is Below)
- A lamp outside a front door comes on automatically when it is dark, and someone stands on the doormat outside the front door.
- A pressure sensor under the mat changes from OFF (0) to ON (1) when someone stands on the doormat.
- The light sensor is ON (1) when it is light and OFF (0) when it is dark.
- Design a program to show what would happen to the lamp. Account for all possible scenarios by determining whether the pressure sensor and light sensor are ON or OFF. (HINT: Ask the user Is it dark? and Is someone standing on the doormat outside the front door?)
- File Eart Scale View Run Mode Ink Window Generate Help 22 80% Symbols main Assignment Start Call Size = 0 Input Output Set Size to 01 Index=1 Selection "Enter customers list size GET Size Loop Redirect_Output Transfer data to notepad ("C:\Users noahb Documents customers1.tit) \ index size of list Loop index: 2 +-NAMESE #PHONENUMBER size: 1 B Yes index>Size NO "Enter Customers Name" GET Names [index] "Enter phone number" GET PhoneNumber [index] PUT Names [index] + " + PhoneNumber [index] add one to index index index + 1 Redirect_Output(no) Type here to search 1 O co W 11:43 PM 3/11/2021 - File Edit Scale View Run Mode Ink Window Generate Help 22 80% Symbols main Assignment Start Call Input Output "Is it dark? Press 1 for Yes Press 0 for No" GET LightSensor "Is someone standing on the door mat? 1 for yes o for no" GET Pressursenso LightSensor=l and Pressure Sensor=1 Selection Loop & 1 = on on $ PUT "Lamp is ONT LightSensor=l and PressureSensor=0 "lightsensor: 5 pressuresensor: 6 userinput 1 PUT "Lamp is off's LightSensor=0 and PressureSensor=) & 0 on/off & off of PUT "Lamp is off LightSensor=0 and Pressure Sensor=1 O & 1 on/off PUT "Lamp is OFF" PUT "Lamp is ONT End
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started