1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leto [7]
3 years ago
14

How to do this question , please answer quickly , I’ll give branliest

Computers and Technology
1 answer:
timofeeve [1]3 years ago
7 0

Answer:

First you analyze all the data that your program needs. You can do this by drawing UML diagrams or whatever you find convenient.

In your case you'll model an item, a stock, supplier and user. You may not end up implementing all of that, but it's good to get a feel for the extent of your assignment.

You can then define use-cases, i.e., tasks or flows through your program, in your case these would simply be the tasks of your 5 menu options. You can write down what happens to the modeled data for each of those flows.

The combination of the use-cases and data modeling will make clear what data structures you'll actually need. For example, the role of the supplier name is unclear. From the requirements it doesn't say if that has to be stored somewhere.

Note that we haven't talked about programming yet at this stage. This is your analysis.

Then you choose a programming language and start implementing. Test corner cases and unexpected input (like empty lists, quantities of zero and negative).

You might be interested in
19. Squares. Write a program class named SquareDisplay that asks the user for a positive integer no greater than 15. The program
BaLLatris [955]

Answer:

Explanation:

import java.util.Scanner;

public class SquareDisplay {

   public static void main(String []args){

    // Scanner is used to get value from command line

       Scanner console = new Scanner(System.in);

       System.out.print("Enter an integer in the range of 1-15:");

       int number = console.nextInt();

   // check if number is greater then 15 or less then 1 then return error message

       if(number>0 && number<=15){

           System.out.println("Error :Wrong Input");

           return;

       }

       for( int i=0; i< number; i++){

           for( int j =0; j<number; j++){

               System.out.print("X");

           }

           System.out.print(" ");

       }

   }

}

Code Explanation

As we want to show the square of X's we need to execute 2 nested for loop to achieve the target result. Outer for loop will determine that how many times we need to show the group of X's.

And the inner for loop will actually display's number of X's for every outer loop iteration.

Output

Case 1:

Enter an integer in the range of 1-15:5

XXXXX XXXXX XXXXX XXXXX XXXXX

Case 2:

Enter an integer in the range of 1-15:16

Error :Wrong Input

Case 3:

Enter an integer in the range of 1-15:2

XX XX

4 0
3 years ago
Imagine that you are designing an application where you need to perform the operations Insert, DeleteMaximum, and Delete Minimum
fiasKO [112]

Answer:

A stack data structure should be used. The time complexity of the insert, delete minimum and maximum operation is O(1).

Explanation:

The stack data structure is an indexed structure that holds data in an easily retrievable way. Data is held in a first-in last-out method as elements in the structure are popped out from the end of the stack when retrieved sequentially.

The worst-case time complexity of getting the minimum and maximum elements in a stack and deleting it is O(1), this is also true for inserting elements in the stack data structure.

3 0
3 years ago
6. What are the two keyboard keys you can press at the same time to use the Copy command? (1.0 points)
Lapatulllka [165]

Answer:

CTRL and C

Explanation:

"press down the CTRL key with one finger and hold it down, then press the letter C with another finger, and then let both go"

6 0
3 years ago
Swapping Order of Vowels Write a program to swap the order of the vowels in a given word. For example, if the word is programmin
Georgia [21]

Answer:

Program is as follow:

Explanation:

#include<iostream.h>

#include < conio.h>

bool isVowel(char b)

{

return

( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');

For swaoing the vowels

string reverseVowel ( String str)

{

int j = 0;

string v ;

for ( int i= 0 ; str [i]]!='0'; i++)

if( isv(str[i]))

v[j++] = str[i[;

for ( int i = 0; str[i]! = '0' ; i++

if ( isv (str[i]))

str{i} = v [--j]

return str;

}

int main ()

{ string str = " Programming";

cout<<swapv(str);

return 0 ;

}

7 0
3 years ago
Because HTML was designed as a cross-platform language, it is the preferred method of communicating with back-end databases. Tru
zubka84 [21]

Answer:

False

Explanation:

HTML which stands for Hypertext Markup Language is a front-end formatting language, that is why it is referred to as a markup language. It handles everything you want to be displayed on the webpage such as images, videos, text including their arrangements.

It should be noted that HTML is not a programming language. The back-end contains all that is developed on the server side. Usually programming languages like PHP, NodeJS, Ruby, C# and many more.

These programming languages communicate with back-end databases while HTML formats the result to be displayed on the web page.

6 0
4 years ago
Other questions:
  • Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number an
    12·1 answer
  • Which if the following is an example of tangible property?
    7·1 answer
  • Which process refers to starting up a computer?
    13·2 answers
  • Draw a flowchart to accept two numbers, and then output the result as the first number
    11·1 answer
  • Which statement best describes desktop publishing?
    10·1 answer
  • Es costoso construir un robot
    6·1 answer
  • Help FAST PLS in complete sentences discuss the process used to determine your credit score. Do you think it is fair? Why or why
    14·1 answer
  • Which of the following is NOT present on the Title Bar?​
    7·1 answer
  • Question 1 of 10
    9·1 answer
  • Becuase privacy is personal customers, where should your data privacy efforts align?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!