Problem 3: Create a program that takes 11 digits as input and checks whether what network does it belong. Note that the first 2 digits must start 09 and followed by a 2 key-digits. Network Key-digits Smart 13, 14, 20, 21, 28, 29, 30 TNT 09, 09, 10, 11, 12, 18, 19 Sun 22, 23, 32, 33 Globe 15, 16, 17, 25, 26, 27 03, 04, 05, 06, 07 01, 02, 24 TM Red Dito 91, 92, 93, 94, 95, 96, 97, 98 Sample Output Enter a mobile number: 0906 333 9104 The network of the mobile number is TM
Q: consider the code: import numpy speed = [100,86,88,88,111,86,103,87,94,78,77,85,99] x =…
A: Given python code And array of elements declared as speed import numpy…
Q: et C C Z be the code C = {23410, 34102, 44113, 21110, 01103}. Vhich of these scenarios shows that C…
A: The length of C is 5 The goal with error-correcting codes is to locate these errors and correct…
Q: Create a program in SFC for the following: A three way switch where the left position operates…
A: SFC : Sequential Function Chart is a graphical programming language that displays the process flow…
Q: 7. Write a program that generates the given pattern below on the terminal: 1 1 1 2 21 123 321 123 4…
A: Use one loop to print numbers in ascending order Use another loop to print spaces Use another loop…
Q: Suppose that the cellular phone bill of a client is computed according to the following rates table…
A: To determine the results of mathematical calculations, arithmetic operators are used such as +,-,*,/…
Q: 3. Write a program that calculates the root mean square value (rms) of the real numbers those will…
A: As the language is not given here, So I am answering this question using C++ language: We know that…
Q: A common measure of transmission for digital data is the baud rate, defined as the number of bits…
A: EXPLANATION: The baud rate is basically that rate at which the information is transmitted from one…
Q: Write an interactive C program that calculates a customer’s bill for the Jumbo telecommunication…
A: PROGRAM: //Header file #include <stdio.h> #include <stdlib.h> //Declaring the function…
Q: Write a program to calculate Routing table by using Dijkstra’s Algorithm. Your program should Ask…
A: Dijkstra’s Algorithm. The shortest path between nodes in a graph can be found using Dijkstra's…
Q: п/2 f (x) = [«(xz – x-1)? + (1 – x2i-1)°], i=1 re a is a parameter that you can vary (for example, 1…
A: The answer is
Q: Q4/ Write a program to find W? (Use: Do While) x2 +x + 8 x2 2 W = This program stopped when x-0
A: Following code is in c++: #include <iostream> using namespace std; int main() { long…
Q: 7) Given x = 1:10 and y = [3 1 5 6 8 2 9 4 7 0], find the results of the Following commands: a) (x >…
A:
Q: int n = 1; // global print1 (int x) { cout << x + n; plus_n () { n = n + 2; print1 (n); main() { int…
A: Static Scoping:- In static scoping, the compiler first searches for the variable in the current…
Q: Problem F. Cities Input file: Output file: Time limit: standard input standard output 1 second 256…
A: Let's understand step by step : To keep track of cities consisting of which country , here using…
Q: unction based on the following information: Your mission is to encrypt a secret message (text only,…
A: Cryptography is technique of securing information and communications through use of codes so that…
Q: t=(1,2,3,4,5,6,7,8) w=(t[2:5],t[:4],t[3:]) (x,y,z)=w After the program is executed, give the value…
A: Please upvote. I am providing you the correct answer below. Please please
Q: The sum of entries that are divisible by 8. For example if the input numbers are [-1, -8, -32, 16,…
A: As no programming language is mentioned. So I am using python to answer This.
Q: University of Babylon College of Information Technology Department of Information Security…
A: Question 1: C++ Code: #include <iostream> using namespace std; int main(){ int marks;…
Q: Q4/ Write a program to find W? (Use: Do While) x2 + x + 8 x2 2 w = This program stopped when x=0
A: We will solve the given problem in Java language.
Q: 21) Write a PHP program to find the sum of all natural numbers which are multiple of 7 in the range…
A: <?php//this method finds and returns//sum of all natural numbers which are multiple of 7 in the…
Q: A machine with a certain status, called an ATM, is responsible for making payments in the amounts…
A: Please find the code and output below
Q: a) f(x) = x{x-2) (x-)(x+1} b) f(x) =-(x-2) {x-1)(x+1) ) f(x) =-x{x-1){x+)(x- 2}' a) f(x)…
A: ALGORITHM:- 1. Take input for the value of x. 2. Calculate the function values using x. 3. Print the…
Q: Write a program that prompts the user to input a number. The program should then output the number…
A: According to bartleby guidelines we need to answer only the first question. Algorithm: 1.import…
Q: Problem: Write a program that outputs all multiples of C between A and B. A, B & C are user inputs.…
A: Programming language is missing in the question. So we will answer this program in C, and C++…
Q: (4) Assume the following code is executed, how many message boxes will there be? What will be…
A: The above question consists of a VB code implementation where the given snippet is the…
Q: Create a program in python which perform instruction as given below: you need to create a network of…
A: Types of Networking Topologies Two main types of network topologies in computer networks are 1)…
Q: onst d = 4 let a = 1 if (true) { let a = 4 var b = 2 if (a < 5) { var c = 1 b = 5 } } console.log(a…
A: According to the Question below the Complete Solution:
Q: Data travels over a network in the form of packets and packets are composed of bytes. Assuming that…
A: For checking the packets of data using C++, do the following: Create a function which accepts the…
Q: 40,250 40,100 to move from (270,100) to (40,100), we will write 270,250 270,100 @40,100 O @-40,100 O…
A: Please upvote. I am providing you the correct answer below. Please please please.
Q: [10 Minutes] What is the Baud rate (bps) in the following program? Assume XTAL = 19 MHz MOV TMOD,…
A: Solution: Given: XTAL = 19 MHz MOV TMOD, #20H MOV TH1, #-22 MOV SCON, #50H MOV A, PCON SETS ACC.7…
Q: Given vectors x= [22, 10, 27, 28] y=[30, 13, 5, 28] Write the output of the following MATLAB…
A: As per bartleby guideline: “Since you have asked multiple question, we will solve the first question…
Q: Write a program named FullName3.sce that includes the following lines X = linspace (0, 1, N); sin…
A: Solution:- Given data above question :- x = linspace(0,1,N); y = sin(%pi*x/2); xi =…
Q: Write a program which defines three integer variables, var1, var2 and var3, & initializing them to…
A: Write a program which defines three integer variables, var1, var2 and var3, & initializing them…
Q: 4. Let x = [3 1 5 7 9 2 6]. For each of the following commands first think about what the result…
A: a. x(3) will contain third element in given vector x. b. x(1:7) will contain first element to…
Q: the line command rem(5,3)==0 (4 :will return a. 1 O b. 0 O c. 2 O d. -1 O
A: ans: option b) 0 description: r= (rem(5,3)==0) output :- r=0 so answer is option b
Q: lst = [10, 20, 30, 40, 50, 60, 70, 80] def f(lst, seek): for i in range(len(lst)): if lst[i] ==…
A: Here first we create a list lst with elements lst = [10, 20, 30, 40, 50, 60, 70, 80] Then will call…
Q: I Give the Final Values of X and Y. L. 2 3. Engl-2) Degl Eng(100) Eng(33) x- Deq y- Dego Enq(6) x-…
A: Let's understand step by step : Queue : In queue elements gets added at end side and removed from…
Q: 2. Let f(x) = e*/7 sin(x + 3) for 0 < x < 10. Using any commands, find all critical points and…
A: Code: syms x f = exp(x/7)*sin(x+3); %plotting function fplot(f) hold on f1 =…
Q: Assume x value as x=15 and y value as y=26, give the output of below given script: 1 if [ $x -gt $y…
A: 1) We have value of x = 15 and value of y = 26. Lets evaluate the script Line 1 checks if value of…
Q: Write a C program to read temperature in centigrade and display a suitable message according to…
A: Algorithm: Start Read temp if(temp<0) print "Freezing weather" else if(temp>=0…
Q: f S = {1, 2, 3, 4, 5 }, A={2 ,4 } B={1, 3, 5 } C= {2, 5}. The sets corresponding to event (A’ or C)…
A: Given S = {1, 2, 3, 4, 5 } A={2 ,4 } B={1, 3, 5 } C= {2, 5}
Q: Instruction: A mathematician named Ulam proposed generating a sequence of numbers from any positive…
A: - We have to code and make flowchart for the Ulam pattern.
Q: Command line arguments are passed to int main(int argc, char** argv) as arguments argc and argv. You…
A: Answer is attached below
Q: Instruction: A mathematician named Ulam proposed generating a sequence of numbers from any positive…
A: PROGRAM EXPLANATION Import the java.util package. Create the main class. Define the main method.…
Q: let S: r1(x);r2(x): w1(x);r1(x);w2(x);w1(y). Schedule S is said to be Select one: a. no serial and…
A: Here in this question we have given a schedule and we have asked that weather this schedule is…
Q: In the MIPS Assembly language I need a program that Read two integers and outputs one of the…
A: In the MIPS Assembly language I need a program that Read two integers and outputs one of the…
Q: Write a program that asks for values from the user and find out which number was entered the most…
A: Find Your Code Below
Q: Suppose that the cellular phone bill of a client is computed according to the following rates table…
A: Program Explanation: Prompt for the minute and number of messages value Iterate for the 10 chances…
Q: 10. Create a function based on the following information: Your mission is to encrypt a secret…
A: This C++ program takes the input of the string.
Create a Python
Step by step
Solved in 2 steps with 2 images
- Suppose that the cellular phone bill of a client is computed according to the following ratestable for calls:First 5 min P100.00 (minimum charge)Next 10 min P8.00 per minNext 15 min P6.00 per minExcess over 30 min P1.50 per minText messages cost P1.00 per send. Write a program that computes the phone bill based onthe number of minutes used up and the number of text messages sent that are to be readfrom the keyboard. The program should be able to compute the bill for a maximum of 10clients. The user specifies the number of clients to be billed at the start of the program.An automobile insurance company provides accident insurance if the vebicle’s model year is greater ot equal to 2000 and the number of accidens is less or equal to 6, Write & program that prompts the user to cnter his/her vehicle’s model year and the number of accidents. The program then checks whether or not the client s elgible for an insurance and prints the messages as shown in the sample run. Sample Run 1 | Enter your vehicle’s model yea;x: 010 R A ‘( Enter the number of accidents: 3 I You are eligible for an insurance for your vehicle’s model 2010. Sample Run 2: Enter your vehicle's model year: 2005 Enter the number of accidents: 7 You are not eligible for an insurance for your vehicle's model 2005.Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your c.
- (This is for Cengage Mindtap, highly recommend using this. If not available, use devc++ version 5.11 but Cengage will be more precise sometimes.) Instructions Write a program that takes, as input, five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x₁, x₂, x₃, x₄, and x₅, then the mean is: x = (x₁+ x₂+ x₃+ x₄+x₅)/5 and the standard deviation is: s = √(((x₁-x)²+(x₂-x)²+(x₃-x)²+(x₄-x)²+(x₅-x)²)/5) Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation. Format your output with setprecision(2) to ensure the proper number of decimals for testing!Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your codes. We will pi.Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your codes. We .
- write a C program XYZ Telegram Company charges P18.50 for a telegram that do not exceed 12 words and P1.50 for every succeeding word, plus P5.00 service charge if type of delivery is special. Create a program that accepts the number of words in a telegram and the type of delivery ‘S’ for special if the customer desires for a special delivery. Compute and display the customer’s charge.Question 2: B – Write a program that prompts for an input string of variable length. Once input, your program will do the following: Output the length of the string Output the first and last characters of the string Output the middle character of the string (and its position) Transpose (switch) the two halves; 2nd half starts with the middle character. Print the string out in all upper case characters Example Sessions: Please input a string :>> Firewall Program Output: String length is: 8 First char is: F Last char is: l Middle char at position 4 is: w Transpose: wallFire Upper Case: FIREWALL Please input a string :>> Program Program Output: String length is: 7 First char is: P Last char is: m Middle char at position 3 is: g Transpose: gramPro Upper Case: PROGRAMuse ibm is400 series to answer the following question (the output should shown in screenshot) 1 - develop a new Library called MnnLIB1 (NN is your student login id number) using the command CRTLIB 2 - develop a new Jobq MnnJOBQ1 and Outq MnnOUTQ1 in the Library MnnLIB1 using the command crtjobq and crtoutq 3 - Grant *PUBLIC *USE Authority to your MnnLIB1 library using the command wrkobj MnnLIB1 and then option 2 4 - Submit 3 jobs using sbmjob in your MnnJOBQ1, these jobs will not run, since they are not attached to any sub-system. Check it out by using wrkjobq command 5 - Change the 3 jobs submitted in step #4 to run in sub-system QINTER and change the out to MnnOUTQ1. These jobs will run, and the results will be in MnnOUTQ1. Check it out by using wrkoutq command 6 - develop a new Source File called MnnSRC in your library MnnLIB1 using command crtsrcpf 7 - develop a new Save File called MnnSAVF in your library MnnLIB1 using command crtsavf 8 - Run DSPJOBLOG command and save the…
- One gallon is 3785.41 milliliters. Write a program that will read the volume ofa package of milk in milliliters, and output the volume in gallons, as well as the number of packets needed to yield one gallon of milk.Given a set of cities, the central city is the city that has the shortesttotal distance to all other cities. Write a program that prompts the user to enterthe number of cities and the locations of the cities (coordinates), and finds thecentral city and its total distance to all other cities. Enter the number of cities: 5 ↵EnterEnter the coordinates of the cities:2.5 5 5.1 3 1 9 5.4 54 5.5 2.1 ↵EnterThe central city is at (2.5, 5.0)The total distance to all other cities is 60.81C++ Write a program that simulates the minute-by-minute operation of a checkout line, such as one you might find in a retail store. Use the following parameters: Customers arrive at the checkout line and stand in line until the cashier is free. When they reach the front of the line, they occupy the cashier for some period of time (referred to as ServiceTime) measured in minutes. After the cashier is free, the next customer is served immediately. Customers arrive at the checkout line at ArrivalRate per minute. Use the function included below (customerArrived()) to return the number of customers arriving in a given minute, determined randomly. The line can only hold so many people, MaxLineSize, until new arriving customers get frustrated and leave the store without purchasing anything. The overall time of the simulation is SimulationTime, measured in minutes. The program should take 5 inputs (to be read from a text file named simtest.txt, one per line): SimulationName - a string…