COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program
Q: With the spreadsheet setup shown and if the user enters 2 in the input box, what value will result i...
A: Value will be 7.
Q: When a and b are natural numbers we usually say that "b fits q times in a and subtract r". This sent...
A: 1)Read a,b numbers 2)Assign r=a , q=0 3)use while loop until r>=b and increase count q to count...
Q: Are algorithms subject to patent protection?
A: Answer: It's possible to protect your work as either a copyright or a patent when you transform a "a...
Q: Consider the following Python program (note that Python uses indentation to specify scope): e1e X- 1...
A: Solution:
Q: 2. Write a program: A. That is able to compute some operations on an integer. The program writes the...
A: The program is a C++ program which demonstrates use of switch case and while loop.
Q: build a flowchart for this programming exercise the area of a rectangle is calculated according to t...
A: A flowchart is work flow of any logical program or algorithm which is represented using diagram. Flo...
Q: The is a part of a functi .header that identifies the fun function narameter:
A: The is a part of a function header that identifies the function function parameters function nam...
Q: 3. Write an algorithm and draw a flow chart to accept the weight and the height. Then calculate the ...
A: BMI ( body mass index ) is a measurement to check if a person is healthy, overweight, or underweight...
Q: With function: void swapNum(int n1, int n2) { int temp = n%; %3D n1 = n2; n2 = temp; %3D And with a=...
A: Swapping two number in C programming language means exchanging the values of two variables.
Q: Re-write this piece of code using recursion: You will ONLY output the value 15 to the screen, not in...
A: we need to provide c++ recursive function for sum of natural number .
Q: ry out algorithmic task
A: given - vent-driven programs: do they carry out algorithmic tasks
Q: convert 512 (base10) to equivalent base 26 number. Show your work.
A: A number can be denoted using a base notation. The types of notations are octal, decimal, binary, he...
Q: How can I find out the Wifi security for the type of security: It's possible to use WPA2-enterprise ...
A: You can undoubtedly know what security type yours wifi network utilizes, contingent on the gadget yo...
Q: public void toggleFirstSwitch() { firstSwitchState = (firstSwitchState == 1) ? (0) : (1); lampState ...
A: Answers class Circuit{ private int firstSwitchState = 0; private int secondSwitchState = 0; ...
Q: Implement a Java program for the class diagram given below. Use the concept of inheritance and write...
A: class Transaction{ String Type; void type(String Type) { this.Type=Type; Syst...
Q: It is a software library of numerical analysis routines, containing more than 1,700 mathematical and...
A: NAG Numerical Library: It is a software product developed and sold by The Numerical Algorithms Grou...
Q: Is it possible to define the aim of application software?
A: Yes it is possible to to define the aim of application software.
Q: int quiz-I Cint n) f int ij, sum = o; for li-2;, i en; i#) {. for Cjpe; je is; j#){ Sum"? sum ?; TG)...
A: Te answer is given below:--
Q: Transcribed Image Text:This is about radiated media communication, microwave communication vs satell...
A: Answer: Short-range communications are carried out using microwaves, whilst long-distance communica...
Q: Increased worker specialisation coupled with increased levels of production may result in worker de-...
A: Demotivation: Demotivation is a powerfully negative deed that may cause a person to lose interest in...
Q: Create the following SQL queries, referencing the university schema as a starting point. Find the lo...
A: Structural Query Language (SQL) is a language that is utilised by databases. Tables and associated o...
Q: NIMS has both strengths and weaknesses when it comes to crisis communication. No, I can't think of o...
A: Introduction: NIMS (National Event Management System) is a comprehensive, logical approach to incide...
Q: eate a firewall rule for sales to block a specific port. Which port are you blocking? Which protocol...
A: Lets see the solution.
Q: What is computer
A: A device that has the ability of storing information, playing audio and video, doing logical computa...
Q: Given, the language L={awa|wE{a,b}*}. Show that the language L2={aw1aaw2a|w1,w2E{a,b}*} is regular.
A: Answer: I have given answered in the handwritten format in brief explanation
Q: Write a program to find the area of circle. The radio "r" will be input by user. The program output ...
A: Assembly language: Assembly language is a low level programming language. Assembly language is used ...
Q: Explain why each of the three design goals for relational databases is desirable.
A: Answer: Schema design objectives for relational databases should include the following: In an effor...
Q: A balanced scorecard may help managers make informed decisions by providing them with information th...
A: A balanced scorecard is a strategic management performance metric that helps companies identify and ...
Q: The Google search engine has a capability that allows web sites to show Google adverts. The advertis...
A: Google Ads focuses at text, language, link structure, and page structure while evaluating web conten...
Q: What are virtual learning environments, and how do they differ from traditional classroom settings?
A: Introduction : Technology for Education: The use of software, hardware, and networks to support and ...
Q: ase Suppose that you defined the following activity in your project: public class FooActivity exte...
A: Lets see the solution.
Q: Show, with the help of timing diagrams, how the binary data 101101 will be transmitted using the fol...
A: Timing Diagram A timing diagram is a special form of a sequence diagram. The differences between t...
Q: Assume you're working on a new word processor with more functionality thán any of your rivais. What ...
A: INTRODUCTION: A word processor is software or a piece of hardware that lets people make, change, and...
Q: Why would we choose a non-BCNF design for a relational database?
A: Why would we choose a non-BCNF design for a relational database?
Q: What exactly is a heuristic, and how is it distinct from an algorithm?
A: Heuristic is a technique which is designed for solving problems more quickly and find the solution. ...
Q: When utilizing a logic programming language such as Prolog to tackle computing problems, what are th...
A: Prolog can solve many different problems efficiently and I have mentioned that below :
Q: If you want to work in finance, is mathematics a su
A: If you want to work in finance is mathematics a suitable major to pursue? Answer: Yes Mathematics a...
Q: Consider the following two entity sets: A and B, both of which have the attribute X. (among others w...
A: Introduction: An entity set is a group or collection of 'entities' with the same characteristics. I...
Q: When utilizing a logic programming language such as Prolog to tackle computing problems, what are th...
A: Prolog is the main protagonist of the rational program, the type of program that announces. In ratio...
Q: Why would we choose a non-BCNF design for a relational database?
A: Introduction: We pick a non-BCNF architecture for a relational database since, in many circumstances...
Q: Distinguish between divide-and-conquer tactics, dynamic programming, and greedy approaches
A: SUMMARY: - Hence, we discussed all the points.
Q: Alice and Bob use the ElGamal scheme with a common prime q = 131 and a primitive root a = 6. Let Bob...
A: Answer is given below-
Q: Define and explain the distinction between integrity restrictions and authorisation restrictions.
A: Introduction: Data integrity is the act of ensuring the correctness and consistency of data througho...
Q: True or false? An organization should periodically conduct an inspection of its systems and practice...
A: Introduction: True or false? An organization should periodically conduct an inspection of its system...
Q: Write a script which prompts the user to enter a date (day and month as integers) of the Gregorian c...
A: NOTE - I have used the Python programming language. I have created a function named validateDay(), t...
Q: What is the greatest trading technique for a rookie forex investor that is largely interested in alg...
A: the answer is given below:-
Q: NFAs for the following: The set set of strongs over alphabet (a, b, c) such that the last symbol in ...
A: The term, “NFA” stands for “Non-Finite Automata”. It is used to represent a language that is itself ...
Q: Give the advantage for each of the following. 1-M.O&M.O*. 2-Electronegativity. 3- Metalic bonds. 4-S...
A: Here, I have to write the advantages for the given question.
Q: (i) All comparison based sorting algorithms have the same worst case running time.
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other questions ...
Q: Instructions: Identify the following if it is UNIQUE IDENTIFIER or NOT. Company / Organization Name...
A: INTRODUCTION: A unique identifier is one that is guaranteed to be distinct from all other identifie...
For the following program :
Monthly Sales
Console
Specifications
- The program should use a map to store the sales data for each month with the three-letter abbreviation for the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec) as the key for each item.
- When the program starts, it should read the sales data inserted from the user.
- If the user edits the sales data, the program should edit the data.
Note: You didn't mention any programming language. So I use C language.
C program:
C is a middle level programming language because it combines both high level language and low level language.
C follows top-down approach.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.Create a program that allows you to view and edit the sales amounts for each month of the current year. Example of how the program should look: Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Requirements for the program: The program should use a list to store the sales…Monthly Sales Create a program that allows you to view and edit the sales amounts for each month of the current year. Example COMMAND MENU add - Add sales for specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to store the sales data for each month with the three-letter abbreviation for the month (Jan,…
- Monthly Sales Create a program that allows you to view and edit the sales amounts for each month of the current year. Console Monthly Sales program COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: view Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: totals Yearly total: 77,786.71 Monthly average: 6,482.23 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a map to store the sales data for each month with the three-letter abbreviation for the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec) as the key for each item. When the program starts, it should read the sales data inserted from the user. If the user edits the sales data, the program…Fix the errors in the Customer class and the Program. DATA FILE ThinkAbout Tech 344 Park Ave, NY, NY 10022 Kemp Technologies 3601 Broadway, NY, NY 10021 Verizon 6 Hudson Street, NY, NY 10001 Merrill Lynch 7 World Financial Center, NY, NY 10001 Philips Laboratories 345 Scarborough Rd, Briarcliff Manor, NY 10510 CODE #include <iostream> #include <fstream>#include <string>using namespace std; class Customer { // Constructorvoid Customer(string name, string address) : cust_name(name), cust_address(address){acct_number = this.getNextAcctNumber();} // Accessor to get the account numberconst int getAcctNumber() { return acct_number; } // Accessor to get the customer namestring getCustName(} const { return cust_name; } // Accessor to get the customer addressstring getCustAddress() const { return cust_address; } // Set a customer name and addressstatic void set(string name, string address); // Set a customer addressvoid setAddress(string cust_address) { cust_address =…Modify this program to open the file "Customers.dat" so that all data can be read, and data written or appended to this file. Add an option 2 and 3 to the menu so that the menu appears as below:Menu options '2' and '3' should now be considered a valid choice. 1. Add Data2. Update Data3. Display all dataX. Exit Program Create a method called "getLargestCustomerNumber" and call it after the "Customers.dat" file has been opened. Read all the existing customerNumbers and determine the largest customerNumber. Use this number as the base when adding new customer data. The program should be able to start multiple times and add data with increasing customerNumbers. There should be no duplicated customer numbers. Menu Option 2 should do the following tasks Prompt for a customer number to change. Enter the address information ( Street 1 & 2, City , State and Zipcode) Find the record for the customer number and replace the address information. Menu Option 3 should do the…
- Write a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book. Book Id (you may use index number as book ID) Book Code Book Name Author Name Publish Date Price No of copies in hand No of Copies sold Initialize 10 Books and initialize remaining with 0 and spaces. Create a menu, as given below, which should use above information to perform selected action from the given menu on the screen Add book (One book will be added. User will enter book id i.e. index number Record will be placed if code at that index is 0) Display book (Display Books in tabular format with nonzero codes only) Delete book (Place an empty record with 0 code and spaces at the selected index) Search book Sale book (First locate the book Id and check if code is not 0 then update No of Copies in hand and No of Copies sold accordingly) Exit Your assignment will be evaluated on the following basis:…I need help with this programming problem... Create a program that allows you to view and edit the sales amounts for each month of the current year. Example of how the program should look: Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye!…Simple Student Management System Build the following app using Python Tkinter library. Using this app, user can • add student information • view all students • search student(s) by name • remove student by id Add • First name, last name, date of birth cannot be blank while adding a specific student information. • However major can be blank, which gets set to "Undefined" if left out blank. • Student Id is automatically generated by the program (ex: 1001, 1002, 1003, 1004 ….) If the user keeps a mandatory field blank (ex: First name) and presses "Add Student" button, it displays the following message box: first name is required If the user successfully enters all the necessary information and presses the "Add Student" button, it displays the following confirmation message box: student added View All When the user presses the "View All" button, it displays all the student’s information (Id, First name, Last name, Date of birth, and Major) in a nice formatted way. Example below: • Must…
- A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your Eclipse Project.( If your Eclipse Project name is Assignment2, the text file is located under Assignment2, NOT src folder) It contains data for one movie on each line.Each Movie contains the following data items:Title(String), Year(int-4 digits), Runtime(double). Write Java program(s) to do the following:1) Read the movies.txt Text file and write the data as a Serialized file called movies.ser to the local directory(same as movies.txt).2) Read the movies.ser serialized file and output the data on to the Console in the format shown below. The spacing for the output is: Title(20), Year (8) and Runtime (10.2)Title and Year are left-justified, Runtime is right-justified.(You can use your own text file to test your program) Sample output: Title Year Runtime aaaaaaaaaaa aaaa aa.aa...... ...... ...........…In this project, you should develop a library management system application using structuresand files. More specifically, your application should enable a user to read and write bookdetails to a file (books.txt). The file should store the following information for the books. Oneline per book and each field to be separated by tab.• Book ISBN• Book title• Author first name• Author surname• Year• Availability for loan [yes/no]The user of this application should have the following options in the form of a nice presentedmenu.Add a book: The user should add all the details of each book by answering a set of questions(book isbn? Book title? author? year?). The availability for loan is randomly generated by theprogram (y: yes, n:no). The book should be added at the end of the file.Search for a book: The user should be given three options here.▪ Search by the title: The user will input a keyword and the program willsearch for all the titles that contain this keyword and display all…continue 1.2 on given code Create a COVID-19 support service application using Python named CovidSupportSystem that will provide the user with the below options:• Statistics,• Prevention,• Symptoms,• Treatment and Report case 1.2 Under Prevention place general COVID19 prevention information, as shown below: image attached import random; print("Welcome to the COVID support service.Please select an option below:"); print("1.Statistics"); print("2.Prevention"); print("3.Symptoms"); print("4.Treatment");1 print("5.Report case"); print("6.Exit"); majorCountriesNames=["SA","USA","China"]; majorCountriesCases=[27403,1700000,82995]; minorCountriesCases=[123, 234, 345, 456, 567, 678, 789, 890, 901, 1000]; while(True): choice=int(input("Enter choice(1/2/3/4/5/6): ")); if(choice==6): break; elif(choice==1): print(); for i in range(0,3): print("Currently in "+majorCountriesNames[i]+"…