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...
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....
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).
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. ]...
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...
Write a Python class definition called CellPhone to represent a monthly cell phone bill. The bill...
Write a Python class definition called CellPhone to represent a monthly cell phone bill. The bill should contain the following information: customer name (default value is the empty string) account number (default value is 0) number of gigabytes (GB) used over the monthly limit (default value is 0) Include the following methods: a constructor which given a customer name, account number, and number of GB used in excess of the monthly limit, creates a CellPhone object (be sure to account...
[15 marks] Draw the flowchart of the following programming problem: You can draw the flowchart using...
[15 marks] Draw the flowchart of the following programming problem: You can draw the flowchart using a drawing tool, or draw the flowchart on a piece of paper, take a picture, insert it here or save it in the submission folder The program reads an unspecified number of integers until a zero is entered. While the program reads each number it counts the number of positive numbers and the number of negative numbers that have been entered and sum up...
Develop an Algorithm and java program using Design Recipe for the following problems. Draw a flowchart...
Develop an Algorithm and java program using Design Recipe for the following problems. Draw a flowchart to compute the largest and smallest of 4 numbers : Write a Java Program for the above flowchart, use methods(functions), and nested if-else statements. Take input from the user using the Scanner object. Use separate methods to compute the Largest and Smallest of the numbers. Method 1 Name: findLargest(param 1, param 2, param 3, param 4) Method 2 Name: findSmallest(param 1, param 2, param...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT