Question

In: Computer Science

-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell...

-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell phone customer.

-List at least 10 separate modules that might be included. - For example, one module might calculate the charge for daytime phone minutes used. -

-Make a working version of this program using Python.

Need all of the above answered including the correct code for program using python

Solutions

Expert Solution

The question first of all requires 10 separate modules involved in producing monthly cell phone bill. The following image lists 10 different parts of cell phone bill.

For each of the module, the flowchart will contain a condition if the charges for each module is applicable or not. If they are applicable, add to overall cost else ignore that. For all modules, we will check a condition. Following image shows flowchart of 3 modules.

Pseudocode for 2 modules is shown and for other modules, similar code can be added.

The screenshot of working python code along with the code in text format is added below. The charges for each module are known previously and for each customer different inputs are taken based on his/her usage.

Text format :

total_monthly_bill = 0

monthly_call_minutes = float(raw_input("Enter monthly daytime call minutes : "))
call_minute_charge = 0.1
total_monthly_bill += monthly_call_minutes * call_minute_charge

monthly_sms = float(raw_input("Enter number of sms sent : "))
sms_charge = 0.5
total_monthly_bill += monthly_sms * sms_charge

monthly_data = float(raw_input("Enter monthly data consumed in Kb : "))
data_charge = 0.1
total_monthly_bill += monthly_data * data_charge

monthly_caller_subsription_charges = float(raw_input("Enter monthly caller subsription charges : "))
total_monthly_bill += monthly_caller_subsription_charges

monthly_night_call_minutes = float(raw_input("Enter monthly nighttime call minutes : "))
call_minute_charge = 0.05
total_monthly_bill += monthly_night_call_minutes * call_minute_charge

monthly_international_call_minutes = float(raw_input("Enter monthly international call minutes : "))
call_minute_charge = 2
total_monthly_bill += monthly_international_call_minutes * call_minute_charge

monthly_national_call_minutes = float(raw_input("Enter monthly national call minutes : "))
call_minute_charge = 1
total_monthly_bill += monthly_national_call_minutes * call_minute_charge

monthly_call_forwarding_charges = float(raw_input("Enter monthly call forwarding charges : "))
total_monthly_bill += monthly_call_forwarding_charges

monthly_validity_extension_charges = float(raw_input("Enter monthly validity extension charges : "))
total_monthly_bill += monthly_validity_extension_charges

monthly_game_subscription_charges = float(raw_input("Enter monthly game subsription charges : "))
total_monthly_bill += monthly_game_subscription_charges


print("The total monthly bill is " + str(total_monthly_bill))


Related Solutions

6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart...
6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart for each of the following problems: a) Obtain three numbers from the keyboard, compute their product and display the result. b) Obtain two numbers from the keyboard, and determine and display which (if either) is the smaller of the two numbers. c) Obtain a series of positive numbers from the keyboard, and determine and display their average (with 4 decimal points). Assume that the...
All program should be in C Write its pseudocode and draw its flowchart) to prompt the...
All program should be in C Write its pseudocode and draw its flowchart) to prompt the user to input the variables to solve the following problem: X2 + X×Y/Z - W*V3 Note 1: You should ask the user to input 5 numbers to be able to do this calculation. Note 2: You can use multiplication instead of power if you do not want to use it (as we have not officially covered it). Write a program (compile and run), pseudocode,...
i could use the flowchart and pseudocode solutions for the following: 1.       1.  Draw a structured flowchart describing...
i could use the flowchart and pseudocode solutions for the following: 1.       1.  Draw a structured flowchart describing the steps you would take to bake pancakes in a pan.  Include at least one decision. 2.       2.  Create the pseudocode to go along with the flowchart created in question above.
DESIGN A FLOWCHART IN FLOWGORITHM AND WRITE THE PSEUDOCODE Number Analysis Program Design a program that...
DESIGN A FLOWCHART IN FLOWGORITHM AND WRITE THE PSEUDOCODE Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: The lowest number in the array. The highest number in the array. The total of the numbers in the array. The average of the numbers in the array. PLEASE AND THANK YOU
Draw a structured flowchart or write pseudocode that describes the process of guessing a number between...
Draw a structured flowchart or write pseudocode that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number. Pick a number and have someone try to guess it by following your instructions. Submit the flowchart or pseudocode and the results of your test. Create a python program based on your flowchart or pseudocode....
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message...
Draw a flowchart and pseudocode that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third. Make a working version of this program in Python.
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the following requirements: Reads in a series of positive integers,  one number at a time;  and Calculate the product (multiplication) of all the integers less than 25,  and Calculate the sum (addition) of all the integers greater than or equal to 25. Use 0 as a sentinel value, which stops the input loop. [ If the input is 0 that means the end of the input list. ]...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure).
Design a program using a flowchart or pseudocode that accepts a person’s loyalty card number and...
Design a program using a flowchart or pseudocode that accepts a person’s loyalty card number and amount spent in the store last month. Display the data only if the customer is a high spender – a person who spent more than $1000 in the store. A program that accepts customer info continuously until a sentinel value is entered and displays a list of high spenders.
Need this program in Raptor. Post the pseudocode and the flowchart please! Brewster’s Used Car, Inc....
Need this program in Raptor. Post the pseudocode and the flowchart please! Brewster’s Used Car, Inc. employs several salespeople. Brewster, the owner of the company, has provided a file named sales.txt that contains the sales records for each salesperson for the past month. Each record in the file contains the following two fields: The salesperson’s ID number, as an integer The amount of a sale, as a real number The records are already sorted by salesperson ID. Design a program...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT