Tarea 3 Programacion 1 Uapa Rgr

  • Uploaded by: Roberto Guzman
  • 0
  • 0
  • February 2021
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Tarea 3 Programacion 1 Uapa Rgr as PDF for free.

More details

  • Words: 154
  • Pages: 2
Loading documents preview...
UNIVERSIDAD ABIERTA PARA ADULTOS Asignatura:

Programación I Tema:

Actividad de Estudio Independiente del Tema III Facilitador:

Geury Guzman Participante:

XXXX XXX Fecha:

20 noviembre, 2018

Saludos distinguido Participante: La empresa Ventas Del Norte, lo contrata a usted para que realice un programa en Lenguaje C, que determine las ganancias unitarias y generales de un producto. Los datos de entradas son los siguientes: Existencia: Costo: Precio: Ganancia Unitaria: Ganancia Total: Nota: Ganancia Unitaria: es el precio menos el costo. Ganancia Total: es el (precio menos el costo) multiplicado por la existencia.

El código es el siguiente: //Este programa es para determinar las ganancias unitarias y las ganancias totales de un producto. #include <stdio.h> #include <stdlib.h> int main() { float Existencia, Costo, Precio, Ganancia_Unitaria, Ganancia_Total; printf("Cual es la Existencia:"); scanf("%f",&Existencia); printf("Cual es el Costo:"); scanf("%f",&Costo); printf("Cual es el Precio:"); scanf("%f",&Precio); printf ("La Ganancia Unitaria es %f\n", Precio-Costo); printf ("La Ganancia Total es %f\n",(Precio-Costo)*Existencia); return 0; }

Related Documents

Programacion 1 Tarea 3
February 2021 3
Tarea De Fisica 1 Uapa
January 2021 2
Programacion 1 Tarea 4
February 2021 3
Programacion 1 Tarea 9
February 2021 1

More Documents from ""

January 2021 1
February 2021 2
February 2021 2