Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

antenne

User
  • Registriert

  • Letzter Besuch

Lösungen

  1. antenne's Beitrag in Preis berechnen wurde als Antwort markiert.   
    achja zum Abschluss natürlich noch das fertige und wunderbar funktionierende Programm
                                                                                                                                                      
    import java.util.Scanner;
    public class RabattBerechnen {
        private static Scanner s;
        public static void main(String[] args) {
            s = new Scanner(System.in);
            
            String sk;
            double p,r,m,fr, fp,vk;
            {
            
    System.out.print("Bitte geben Sie die Menge an: ");
    m = s.nextDouble();
    System.out.print("Bitte geben Sie den Preis an: ");
    p = s.nextDouble();
    System.out.print("Bitte geben Sie den Rabatt an: ");
    r = s.nextDouble();
    System.out.print("Bekommen Sie Skonto? ");
    sk = s.next();
    System.out.print("Bitte geben Sie die Versandkosten ein: ");
    vk = s.nextDouble();
    System.out.println("Der Endpreis wird berechnet...");
        
        fr =m* p*r/100;
                
        if (sk.equals("ja"))
            fp= (m*p-fr)*0.98+vk;
        else
            fp=(m*p)-fr+vk;
    System.out.println("Der Preis inklusive Versandkosten beträgt "+fp);
            }}}

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.